Subject: Re: [xsl] Help namespacing an attribute From: "G. Ken Holman g.ken.holman@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Wed, 20 Sep 2017 17:11:08 -0000 |
I'm having some trouble getting a namespace attached to an attribute -- instead the attribute's namespace is getting attached to the element.
I worked up a minimized example that worked the way I expected it to work, but when trying to implement my expectations I'm failing.
I'm roundly convinced that this doesn't work in my real data
because I'm missing something with namespaces but I'm not sure what.
Despite trying both serialization methods (literal and programmatic), both return the same result.
I'm using XSLT 2.0, but the application is using Saxon 8.7.
I'm looking for
<accessCondition type="use and reproduction" xlink:href="<http://some.uri>http://some.uri"/>
but what I'm getting in my real work is
<accessCondition xmlns:xlink="<http://www.w3.org/1999/xlink>http://www.w3.org/1999/xlink" type="use and reproduction" xlink:href="<http://some.uri>http://some.uri"/>
Thanks in advance for any light you can shed on this.
-- Contact info, blog, articles, etc. http://www.CraneSoftwrights.com/s/ | Check our site for free XML, XSLT, XSL-FO and UBL developer resources | Streaming hands-on XSLT/XPath 2 training class @ US$45 (5 hours free) |
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Help namespacing an attribute, Bridger Dyson-Smith | Thread | Re: [xsl] Help namespacing an attri, Bridger Dyson-Smith |
[xsl] Help namespacing an attribute, Bridger Dyson-Smith | Date | Re: [xsl] Help namespacing an attri, Bridger Dyson-Smith |
Month |