[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Cascading ( Or processing twice?) how to apply-templates to
Matt Sergeant wrote: > > Sorry - I know this isn't particularly an XSL or XPath question, but it is > particularly relevant... ... And I don't know if my issue has anything to do with yours but it sounded similar at first... I'm wondering what to call to get two transformations applied to one XML document, one after the other. In my current case I have a sitemap, and an XSL which can turn the sitemap into a new menu-style logical arrangement. I also have an XSL which will translate this menu-style data into an HTML Menu Display. I choose to have these two processes modular, as I have other uses for the menu->HTML process. The thing is, that after apply-templates has dealt with my nodes, they are part of the result tree, and will not be parsed again. Is there an XSLT invocation to re-interpret the results? XML -> XML -> HTML ^ ^ | | XSLa XSLb I have no problem with the two XSLs co-existing simultaniously using import or namespaces or suchlike. Sorry if the answer is obvious, but I can't imagine the term for what it is I'm trying to do. .dan. ------------------------------ Further illustration. The real thing is exponentially more complex than this docile illustration. The Menus in fact generate nested DHTML pop-ups using a Turing-like recursion. The Q is how to get my <xsl:template match="Menu">... to fire. <item name="page 1"> <item name="page 1A"/> <item name="page 1B"/> </item> | V <Menu name="page 1"> <MenuItem name="page 1A"/> <MenuItem name="page 1B"/> </Menu> | V <blockquote> <h2>page 1</h2> <h3>page 1A</h3> <h3>page 1A</h3> </blockquote> :=====================:====================: : Dan Morrison : The Web Limited : : http://here.is/dan : http://web.co.nz : : dman@xxxxxxxx : danm@xxxxxxxxx : : 04 384 1472 : 04 495 8250 : : 025 207 1140 : : :.....................:....................: : If ignorance is bliss, why aren't more people happy? :.........................................: 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
|