<xsl:value-of select="p/c[(_at_)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[(_at_)*[name()=$param]]/@y
(May need a bit more care if the attribute can be in a namespace)
Michael Kay
http://www.saxonica.com/
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--