RE: [xsl] I mean self::* doesn't select attributes :(

Subject: RE: [xsl] I mean self::* doesn't select attributes :(
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Wed, 25 Apr 2001 11:43:20 +0100
> and then you could do things like:
>
>   @attribute($attr)
>
> rather than:
>
>   @*[name() = $attr]
>
> The big trouble would be handling namespaces with this syntax - is the
> prefix in the name string resolved according to the current namespace
> declarations within the stylesheet or is it a match between the
> actual qualified name of the attribute in the source and the string
> that you have?

Not a problem if (following XML Schema) you add QName to the list of data
types recognized by XPath...

Mike Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread