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 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


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