This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Working with QNames in values
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: Re: [xsl] Working with QNames in values
- From: "Curt Arnold" <carnold at houston dot rr dot com>
- Date: Sat, 3 Mar 2001 02:49:19 -0600
- References: <n381atoi49k23t380nvf3lg3c9nivj4q3l@4ax.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
I needed to resolve qname references on XML Schema Compiler back in April
2000(http://sourceforge.net/projects/xsdcomp). Unfortunately, I didn't
update the public code after I fixed the problem. I will try to update the
code tomorrow (but I have said that before) which does a whole lot of qname
link resolution.
Basically, the secret is the Section 5.4, Namespace Nodes, in the XSLT spec.
You'd do something like:
<xsl:template match="bar">
<bar namespace="{namespace:*[local-name()=substring-before(@type)]}"
local-name="{substring-after(@type)}"/>
</xsl:template>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list