You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by bu...@apache.org on 2004/02/10 10:50:23 UTC

DO NOT REPLY [Bug 26820] New: - clean up namespace serialization

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26820>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26820

clean up namespace serialization

           Summary: clean up namespace serialization
           Product: Lenya
           Version: HEAD
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Miscellaneous
        AssignedTo: gregor@apache.org
        ReportedBy: gregor@apache.org
                CC: lenya-dev@cocoon.apache.org


we sometimes have superflous namespaces in the output, this can be fixed with:

  <!--
     - Namespace removing templates
     - from http://outerthought.net/wiki/Wiki.jsp?page=RemoveNamespaces
  -->
  <xsl:template match="*" priority="-1" mode="copy">
    <xsl:element name="{local-name()}">
      <xsl:copy-of select="@*"/>
      <xsl:apply-templates mode="copy"/>
    </xsl:element>
  </xsl:template>

  <xsl:template match="text()" mode="copy">
    <xsl:value-of select="."/>
  </xsl:template>

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-dev-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-dev-help@cocoon.apache.org