[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] Newbie Question: Convert "flat" hierarchy to nested hierarchy
Subject: RE: [xsl] Newbie Question: Convert "flat" hierarchy to nested hierarchy From: "Watch-O-Matic" <watchomatic@xxxxxxxxxxx> Date: Sat, 14 Oct 2006 09:28:45 -0700 |
Michael Kay wrote: > You'll find a paper that tackles this problem (using XSLT 2.0) at > > http://www.idealliance.org/proceedings/xml04/papers/111/mhk-paper.html > > The reverse transformation is much easier: you just process all the > elements in document order (//nest) and for each one compute its > level number as count(ancestor::*). Thank you for your prompt answer. Since I am a newbie at this, it'll take me a while to understand your paper (and XSLT in general.) But I assume from your reply that the transformation from 'flat' to 'nested' (which is of most interest to me at the moment) is doable with XSLT 2.0. Of course, would love to see an XSLT 2.0 transformation specific to the 'flat' to 'nested' example, if someone here has the interest -- and a moment to spare. That will greatly help. It also seems "generic" enough that the transformation may be useful to someone else in the future. Again, much thanks. Mark -- Watch-O-Matic watchomatic@xxxxxxxxxxx -- http://www.fastmail.fm - Same, same, but different
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Newbie Question: Convert , Michael Kay | Thread | RE: [xsl] Newbie Question: Convert , Michael Kay |
RE: [xsl] Newbie Question: Convert , Michael Kay | Date | [xsl] Problem with matches in XPath, Joe Fawcett |
Month |
Keywords