|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] test expression in predicates - is this one legal???
xml: <?xml version="1.0" encoding="UTF-8" ?> <root> <bar>test</bar> </root> xsl: <xsl:param name="foobar" select="'number'"/> <xsl:template match="/"> <xsl:apply-templates select="root/bar"/> </xsl:template> <xsl:template match="bar[$foobar='number']"> number </xsl:template> <xsl:template match="bar"> text </xsl:template> it gives: number i expected it not to work. but it works just fine. is it legal? is this way considered a normal way of working? althou i'd prefer to use <xsl:choose/> jian 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
|

Cart








