cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <d...@yahoo.com>
Subject [Xalan2] Namespaces Problem
Date Sun, 15 Oct 2000 20:55:23 GMT
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/

Mime
View raw message