Hi Xalan community,

about my setup: Cocoon 2.1.12-dev with Xalan 2.7.1

I'm having trouble getting rid of the xmlns:xml="http://www.w3.org/XML/1998/namespace"; declarations in my output. Here's the corresponding part of the stylesheet:


<xsl:stylesheet version="1.0" [...]
  exclude-result-prefixes="[...] xml">

  <xsl:template match="col:document[xhtml:html]">
    <item>
<title><meta:value element="title" ns="http://purl.org/dc/elements/1.1/"; uuid="[EMAIL PROTECTED]" lang="[EMAIL PROTECTED]:lang}"/></title>
      ...
    </item>
  </xsl:template>


As you can see, the original element contained an xml:lang attribute:

  <col:document xml:lang="en"/>


Unfortunately, the xmlns:xml declaration shows up in the output. exclude-result-prefixes doesn't seem to have any effect:


    <item xmlns:xml="http://www.w3.org/XML/1998/namespace";>
      <title>
         OpenExpo 2008
      </title>
      ...
    </item>


Any hints about how to get rid of the declarations are very welcome, since IE doesn't accept them in the RSS feed.

Thanks a lot in advance!

-- Andreas



--
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01

Reply via email to