This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]