Try the following.
<xsl:template match="/">
<xsl:copy-of select="*"/>
</xsl:template>
This is what conformance test copy04 does and XSLTC gives the
correct output, except for some extra blank lines.
Tom
[EMAIL PROTECTED] wrote:
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2249
>
> *** shadow/2249 Wed Jun 20 07:35:46 2001
> --- shadow/2249.tmp.3443 Wed Jun 20 07:35:46 2001
> ***************
> *** 0 ****
> --- 1,31 ----
> + +============================================================================+
> + | failed to do identity transformation |
> + +----------------------------------------------------------------------------+
> + | Bug #: 2249 Product: XalanJ2 |
> + | Status: NEW Version: 2.0.0 |
> + | Resolution: Platform: Sun |
> + | Severity: Critical OS/Version: Solaris |
> + | Priority: Other Component: org.apache.xalan.xsltc |
> + +----------------------------------------------------------------------------+
> + | Assigned To: [EMAIL PROTECTED] |
> + | Reported By: [EMAIL PROTECTED] |
> + +----------------------------------------------------------------------------+
> + | URL: |
> + +============================================================================+
> + | DESCRIPTION |
> + It seemed to me that XSLTC cannot handle identity transformation that is a
> + transformation from a document into itself. such a transformation looks like
> + this:
> + <!-- identity transformation -->
> + <xsl:template match="*|@*">
> + <xsl:copy>
> + <xsl:apply-templates select="*|@*"/>
> + </xsl:copy>
> + </xsl:template>
> +
> + Identity transformation is very useful in situations when destination doc has
> + only small variation to source doc.
> +
> + Thanks for your help. Please let me know when you have a solution or get-around.
> +
> + Yuan
> \ No newline at end of file