[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: What is wrong with this key element?
> <xsl:key name="prodCat" match="@ProdCode" > use="substring(@ProdCode,1,3)"/> Either index the attributes, using <xsl:key name="prodCat" match="@ProdCode" use="substring(.,1,3)"/> or index their containing elements, using <xsl:key name="prodCat" match="z" use="substring(@ProdCode,1,3)"/> The use expression is evaluated with the matched node as context node; with @ProdCode as the context node the expression @ProdCode gives you nothing. I prefer to index the element nodes rather than their attribute nodes, but both should work perfectly well. Mike Kay 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
|