Re: What is the best approach for doing.....
Hi, > [M. David Peterson] Will the user be updating the raw XHTML? No, they will have an WYSIWYG editor that they will be using for editing the final document. > [M. David Peterson] Ok, so in essence what you are looking at is a > possible increase in the paragraphs and as such an increase in the > paragraph numbering affecting the index for the entire document? Sort of. My main concern is that if they add or delete a paragraph that will 'break the cross referencing. For example there are four paragraphs, 2(i)(a), 2(i)(b), 2(i)(c) and 2 (i)(d). Paragraph 2(i)(d) contains a reference to 2(i)(b). Now if they add another paragraph between 2(i)(b) and 2(i)(d) or delete one, it will break the cross referencing. Thinking about it I need to do something like give each para an ID and then where there is a cross reference use some sort of custom markup to indicate which paragraph number should be displayed. Then parse through the document to make sure that the correct numbers are displayed. > I will mention that if this is what > you are looking for then yes, XSLT can do this... but you're in for a > good day if not more of coding to make it work right. I don't mind that - it is now the number 1 priority of the project to get this working! -- Cheers, Julian Voelcker United Kingdom
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format