Re: [xsl] Namespace Aliasing without xsl:namespace-alias

Subject: Re: [xsl] Namespace Aliasing without xsl:namespace-alias
From: mazerunner@xxxxxx
Date: Tue, 24 Jan 2006 21:23:47 +0100 (MET)
Hi David,

>the behaviour you describe doesn't fit with the way XSLT works, so most
>likely the results you are seeing are from some other part of your
>stylesheet. Can you post a small example of a complete 5 or six line
>document and a similar sized stylesheet that shows the effect, and say
>what result you wanted.

"exclude-result-prefixes" works fine - as Mike Haarman suggested. Thanks!

What is wrong with it? Here an example: I want to transform <root
xmlns="urn">text</root> to <b>text</b>. I can do it with following

<xsl:stylesheet version="1.0" 
  xmlns:xsl=""; xmlns:B="urn"
  <xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
    <xsl:template match="*">
        <xsl:value-of select="text()"/>
      <xsl:apply-templates select="*"/>

If I don't exclude the namespace I will get following result:
<b xmlns:B="urn">text</b> .

Best regards

Current Thread