Subject: RE: Changing the value of a variable From: "joseph, Gershon" <Gershon_joseph@xxxxxxxxxxxxx> Date: Thu, 29 Jul 1999 11:32:54 +0300 |
I appear to have solved my problem regarding resetting the numbering when a specific element is encountered. For fellow newbies, the following is my code. Experts will undoubtedly suggest improvements ;-) (element (table ti) (make paragraph space-before: 12pt quadding: 'start font-family-name: *headingFontFamily* font-weight: 'bold keep-with-next?: #t (literal ; Generated text on table title "Table " (format-number (ancestor-child-number "chap") "1") "-" (format-number (list-ref (element-number-list (list "chap" "table") (current-node)) 1) "1") ": " ) (process-children) ) ) The key is in getting the element-number-list procedure to work correctly. I have used a similar procedure to process cross references to the tables and figures, which use a different processing mode to generate the cross references. If there's interest, I'll post details. Gershon Leib Joseph DOCUMENTATION TECHNOLOGIES MANAGER Comverse Network Systems Tel: +972-3-645-2001 Fax: +972-3-645-4088 email: gershon_joseph@xxxxxxxxxxxxx -----Original Message----- From: joseph, Gershon [mailto:Gershon_joseph@xxxxxxxxxxxxx] Sent: Thursday, 29 July 1999 09:42 To: 'dssslist@xxxxxxxxxxxxxxxx' Subject: RE: Changing the value of a variable <Brandon Ibach [mailto:bibach@xxxxxxxxxxxxxx]> [...] I believe the query language (SDQL) provides functions that will accomplish what you want. Read through chapter 10 of the standard to see what's available. If you can't find a solution there, check back, and we may be able to help you craft a solution. </> My problem occurs with table and figure numbering. These can occur inside <chap>, <sect1>, <sect2>, or <sect3> elements. If I use either child-number or ancestor-child-number, I get the number of elements inside the current parent element. This means that the first table in every <sect1>, <sect2>, and <sect3> is numbered 1-1, instead of running continuously until the next <chap> (1-1, 1-2, 1-3, etc.). I need the number of elements inside the <chap> element. Perhaps I could use the element-number-list procedure, though it is not clear to me how to use it. How do people generally generate numbering when the numbering has to be reset when a particular element is encountered? Gershon DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: Changing the value of a variabl, joseph, Gershon | Thread | Re: Changing the value of a variabl, Brandon Ibach |
RE: Changing the value of a variabl, joseph, Gershon | Date | Re: Changing the value of a variabl, Brandon Ibach |
Month |