Subject: Re: [xsl] Why doesn't <xsl:copy> copy xmlns=""? From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Sat, 17 Nov 2012 08:54:21 -0500 |
I want to do an identity transform of this: ---------------------------------------------------------------------------- <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.bar.com" xmlns:bar="http://www.bar.com" xmlns="" elementFormDefault="qualified">
...
</xs:schema> ----------------------------------------------------------------------------
Notice the default namespace declaration, xmlns=""
Here is the output from transforming the <xs:schema> with my code: ---------------------------------------------------------------------------- <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.bar.com" xmlns:bar="http://www.bar.com" elementFormDefault="qualified">
What happened to the default namespace declaration?
Questions:
1. Why is my code not copying over the default namespace declaration?
2. What change can I make to my code to ensure that it copies over the default namespace declaration?
-- Contact us for world-wide XML consulting and instructor-led training Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Google+ profile: https://plus.google.com/116832879756988317389/about Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Why doesn't <xsl:copy> co, Martin Honnen | Thread | Re: [xsl] Why doesn't <xsl:copy> co, Michael Kay |
Re: [xsl] Why doesn't <xsl:copy> co, Martin Honnen | Date | Re: [xsl] Hanging regex, Liam R E Quin |
Month |