General XMetaL Discussion
craig_83 February 17, 2010 at 8:36 am
Autonumbering in XMAX 5.5February 17, 2010 at 8:36 amParticipants 1Replies 2Last Activity 12 years, 11 months ago
I am using counters and autonumbering in my application provided by the CSS.
I know it is unlikely, but is there anyway to include the numbers generated by the autonumbering in the XML output?
ThanksDerek Read February 17, 2010 at 9:46 pm
Reply to: Autonumbering in XMAX 5.5February 17, 2010 at 9:46 pm
The only way I can think of doing this would be to create a script that fires at the appropriate time and walks the document inserting them as actual content, or by doing this via post processing in XSLT or similar (which is likely the more elegant and possibly simpler solution as you are probably doing a transform at some point already I suspect).
I have seen something similar done to add special numbering into the XML source during editing. Several of our US gov't clients have scripts that insert numbering as part of the XML content both for legal requirements (specific numbers must be fixed for all time to certain sections of legal documents, and they may not necessarily trust auto-numbering to function the same way in all systems) and in at least one case the numbering scheme is too complex to be handled automatically using CSS because they have complex mixtures of alternating roman/arabic/alpha). Unfortunately, as we don't own this code I am unable to share it and it would likely not be the best solution in your case anyway (I really think for most people handling this in post processing is really the way to go).craig_83 February 18, 2010 at 8:11 am
Reply to: Autonumbering in XMAX 5.5February 18, 2010 at 8:11 am
Thanks for the advice.
I think I am going to go with a C# coding option for the application. In any case, I need greater control over the numbering that the CSS option wouldn't have provided.
- You must be logged in to reply to this topic.