Differentiated rendering of nodes from multi node tree picker
I have a multi node tree picker on my front page. This is used for picking "Teaser Boxes" These boxes are of different document types, and need to have radically different rendering. Doing this in one large xslt with "xsl:choose/xsl:if" is surely gonna get way to messy over time. So im looking for a way to split it into a logical structure, thats easy to maintain.
Listing the nodes selected with the mulit node tree picker goes like this:
Differentiated rendering of nodes from multi node tree picker
I have a multi node tree picker on my front page.
This is used for picking "Teaser Boxes" These boxes are of different document types, and need to have radically different rendering. Doing this in one large xslt with "xsl:choose/xsl:if" is surely gonna get way to messy over time.
So im looking for a way to split it into a logical structure, thats easy to maintain.
Listing the nodes selected with the mulit node tree picker goes like this:
What im looking to do, is to have templates for each "Teaser" type, and then "magically" join them in a "Render" Xslt file.
Something like this: (Excuse the absolute lack of any correct syntax)
Hi Claus,
If they are different Document Types, the only magic needed is the built-in magic of match templates. Really!
Here's the long explanation :-)
And here's the shorter one - change the almost correct one you included above, to this one:
/Chriztian
Once again sir, you show yourself as the master of disaster, the jedi master of the XSLT-alliance. Thanks
Funny thing is i got the concept of <xsl:include> from pimp my xslt, i just didnt spot the article on multi-node-tree-picker :). soooooo close :)
is working on a reply...