![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: Where are these pesky and superfluous xmlns="" coming from? [Thread Next] Re: Where are these pesky and superfluous xmlns="" coming from?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/
| ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||
|
