[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: xsl which template
> That is, I'd like to apply 2 different templates to the SAME xml file. Mike Kay suggested using JScript but an alternative would be to use a combination of template matches and call templates. ie Sample XML <root> <level1> <level2></level2> </level1> <level1> <level2></level2> </level1> </root> Sample XSL <xsl:apply-templates select="root/level1"/> <xsl:call-template name="JoeBloggs"/> <xsl:template match="level1"> <!-- some form of processing --> </xsl:template> <xsl:template name="JoeBloggs"> <!-- some form of processing --> </xsl:template> Thus in one template you can carry out processing on the XML and in the named template you can do something else. Saves having to use JScript. Just a thought Matt www.mattelder.com 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
|