General XMetaL Discussion

XMetaL Community Forum General XMetaL Discussion Autonumbering in XMAX 5.5

  • craig_83

    Autonumbering in XMAX 5.5

    Participants 1
    Replies 2
    Last 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?



    Derek Read

    Reply to: Autonumbering in XMAX 5.5

    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).



    Reply to: Autonumbering in XMAX 5.5

    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.

Lost Your Password?