Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Where are these pesky and superfluous xmlns="" coming from?

From: Martin Honnen <mahotrash@-----.-->
To: NULL
Date: 8/6/2008 5:56:00 PM

Siegfried Heintze wrote:
> That fixed it! Why is this only a problem with Rectangles? I emit labels and 
> paths without this problem.

It is certainly not a problem of 'Rectangle' elements, it is rather a 
question on how you organize your stylesheet and its namespace 
declarations. If you do e.g.

   <xsl:template match="/">
      <Window xmlns="http://example.com/">
        <Label/>
        <Path/>
        <xsl:apply-templates/>
      </Window>
   </xsl:template>

   <xsl:template match="key">
      <Rectangle/>
   </xsl:template>

then the Window element and its children, the Label and the Path element 
have the namespace declaration in scope while the Rectangle element in 
the other template does not have it.

That is just a guess on how your stylesheet structure might look, you 
did not share much of your stylesheet so I can't give a more specific 
explanation.



-- 

	Martin Honnen --- MVP XML
	http://JavaScript.FAQTs.com/


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent