View Single Post
  #2 (permalink)  
Old October 15th, 2007, 05:29 PM
mhkay's Avatar
mhkay mhkay is offline
Wrox Author
Points: 18,438, Level: 59
Points: 18,438, Level: 59 Points: 18,438, Level: 59 Points: 18,438, Level: 59
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
Posts: 4,954
Thanks: 0
Thanked 290 Times in 285 Posts
Default

Your post suggests that you're playing with parallel or overlap markup structures and I'm afraid that's not a game for beginners.

However, you really haven't described your problem clearly enough. I can only guess at the relationship of terms like "chapter" and "section" to elements in your source; I can't tell what the level numbers or ids mean; and I can't work out the logic that makes you put ids 5919 and 5923 at the start of your output but not 5920. Superficially, though, there seems to be a very direct mapping from the <v> and <q> elements in your input to <span> elements in your output.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
Reply With Quote