🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.framemaker.sgml
Article #60

Re: EDD and Autonumber

#60
From: Jon_White
Date: Fri, 27 Feb 2009 09:44
37 lines
1708 bytes
Hi Macweaz,

This is normally done by using a {first} context rule in your list item element. The context rule states that if the list item is the first in its parent (the list), then apply an autonumber with the counter set to one. Then you have another rule that specifies an incrementing number if the item is not the first occurrence in its parent (the list).

Here's a sample fragment of an EDD that demonstrates this approach:

Element (Container): randlist
General rule:	listitem+
Attribute list
Name: prefix 	Choice 	Required
Choices:	char, num


Element (Container): listitem
General rule:	
Format rules for first paragraph in element

If context is: {first}
If context is: randlist[prefix = �char�]
Numbering properties
Autonumber format: F:<a=1>)\t
Else, if context is: randlist[prefix = �num�]
Numbering properties
Autonumber format: F:<n=1>)\t

Else
If context is: randlist[prefix = �char�]
Numbering properties
Autonumber format: F:<a+>)\t
Else, if context is: randlist[prefix = �num�]
Numbering properties
Autonumber format: F:<n+>)\t


Good luck,

Jon
Technical Details
Message-ID: <59b81082.0@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing
References: <59b81082.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: fcc08,20734d20c20c217a
X-Google-Attributes: gidfcc08,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII
From: Jon_White@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.framemaker.sgml
Subject: Re: EDD and Autonumber
Message-ID: <59b81082.0@webcrossing.la2eafNXanI>
Date: Fri, 27 Feb 2009 01:44:39 -0800
References: <59b81082.-1@webcrossing.la2eafNXanI>
Lines: 40
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit