RE: [xsl] Working with QNames in values

Subject: RE: [xsl] Working with QNames in values
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Mon, 5 Mar 2001 10:13:19 -0000
> I'm working with WSDL, which uses QNames in attribute values, but i'm
> having a hard time resolving the namespace-uri's from these, e.g.
> 
> <foo xmlns:xsd="http://...";>
> <bar type="xsd:string" />
> </foo>
> 
> In my XSLT (or more correctly, my schematron based schema), i want to
> be able to resolve the namespace uri of the xsd:string QName.

Try 
  string(namespace::*[name()=substring-before(@type, ':')])

Mike Kay

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


Current Thread