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: Working with QNames in values


> 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


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