You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Davanum Srinivas <di...@yahoo.com> on 2000/10/15 22:55:23 UTC

[Xalan2] Namespaces Problem

Scott,

Here's a simple sample that fails with the newest Xalan2J. But works with the version of Xalan2J
just before the trax and serialize packages were renamed. Please let us know when this is fixed.

You can use the following command line.
"java org.apache.xalan.xslt.Process -IN foo.xml -XSL echo.xsl -XML"

Thanks,
dims

--------- Begin foo.xml ---------
<?xml version='1.0'?>
<foo:document 
	 xmlns:foo="http://apache.org/foo"
	 xmlns:bar="http://apache.org/bar"
	 file-name="test"
         file-path="work"
	 creation-date="971255692078">
  <bar:element>MyBar</bar:element>
</foo:document>
--------- End foo.xml ---------

--------- Begin echo.xsl ---------
<xsl:stylesheet 
      xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'>
  <xsl:template 
      match="@*|*|text()|processing-instruction()">
    <xsl:copy>
      <xsl:apply-templates 
         select="@*|*|text()|processing-instruction()"/>
    </xsl:copy>
  </xsl:template>
</xsl:stylesheet>
--------- End echo.xsl ------------



=====
Davanum Srinivas, JNI-FAQ Manager
http://www.jGuru.com/faq/JNI

__________________________________________________
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf!  It's FREE.
http://im.yahoo.com/