[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: how can i get a sub-tree(between two chapter)
Hi, ... > > and i want for each chapter get its length,so how can i get a > > sub-tree(between two chapter) in this file like: > > > > -for chapter1: > > > > chap1 > > |---ht > > |---(para|list|notesect)* > > > > -for chapter2: > > > > |---chap2 > > |---ht > > |---(para|list|notesect)* > > > > -for chapter3: > > > > |---chap3 > > |---ht > > |---(para|list|notesect)* I have to admit I don't understand the notation you use above, or rather your question, but if you're trying to flatten the structure, see <http://www.dpawson.co.uk/xsl/sect2/flatten.html>. In the future, it might be easier for people if you showed your source document as a plain, stripped-down, XML document, or e.g. your RelaxNG schema instead of ASCII art hierarchy picture. Cheers, Jarno - VNV Nation: Honour 2003 <http://synthetic.org/play.html> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|