RE: Dynamic attribute selection
> <xsl:value-of select="p/c[@x]/@y]" /> > > That will display 27 as expected and required, and this is > exactly the effect I want, however I am having trouble > porting it to a template where you can specify as a parameter > the name of the attribute you want to ensure is present. p/c[@*[name()=$param]]/@y (May need a bit more care if the attribute can be in a namespace) Michael Kay http://www.saxonica.com/
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