xsl-list
[Top] [All Lists]

Re: [xsl] Help namespacing an attribute

2017-09-20 13:04:27
Ken,

That is absolutely brilliant! I don't think I've ever encountered this
before (or, rather, I probably have encountered it, but didn't recognize it
for what it was).

On Wed, Sep 20, 2017 at 1:48 PM, G. Ken Holman 
g(_dot_)ken(_dot_)holman(_at_)gmail(_dot_)com <
xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> wrote:

At 2017-09-20 17:43 +0000, Bridger Dyson-Smith 
bdysonsmith(_at_)gmail(_dot_)com
wrote:

As I mentioned to Ken, I've done this on both the test transform and the
'real world' transform but the difference in serialization behavior is what
prompted the question.
Is there anything else I could try with this? Am I adding the xmlns:xlink
declaration on the wrong document element?


No, you have this:

                exclude-result-prefixes="#all"

... which is stripping (excluding) the namespace from the <mods> document
element.

In your test stylesheet you aren't stripping it off of the document
element.

I did not realize that exclude-result-prefixes would have this impact. How
can I send you a beer (or some other beverage of your choice)?

. . . . . Ken

Best,
Bridger


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


--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--
<Prev in Thread] Current Thread [Next in Thread>