You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Henry Zongaro (JIRA)" <xa...@xml.apache.org> on 2004/12/15 20:59:01 UTC

[jira] Updated: (XALANJ-1725) Xalan 2.5.2 XSLTC: loses both ATTRIBUTES & NAMESPACES

     [ http://nagoya.apache.org/jira/browse/XALANJ-1725?page=history ]

Henry Zongaro updated XALANJ-1725:
----------------------------------

    Priority: Critical

> Xalan 2.5.2 XSLTC: <xsl:copy-of> loses both ATTRIBUTES & NAMESPACES
> -------------------------------------------------------------------
>
>          Key: XALANJ-1725
>          URL: http://nagoya.apache.org/jira/browse/XALANJ-1725
>      Project: XalanJ2
>         Type: Bug
>   Components: XSLTC
>     Versions: 2.0.0
>  Environment: Operating System: Other
> Platform: Other
>     Reporter: Oleg Mürk
>     Assignee: Xalan Developers Mailing List
>     Priority: Critical
>  Attachments: bug.xalan.xml, bug.xsl, bug.xsltc.2.5.1.xml, bug.xsltc.2.5.2.xml
>
> Description of the problem:
> - First have a look at the xsl in the end of this message.
> - Note that variables $fragment1 and $fragment2 should be equal to:
> 	<ns:tag ns:attribute="xxx">
> 		stuff
> 	</ns:tag>
> - Xalan Interpreter works fine
> - Bot Xalan Interpreter & XSLTC work fine for 
> 	<xsl:copy-of select="$fragment1"/> 
> - But for instruction
> 	<xsl:copy-of select="$fragment2"/>
>   XSLTC 2.5.2 gives (attributes, namespace are lost):
> 	<tag>
> 		stuff
> 	</tag>
>   XLSTC 2.5.1 gives (namespace is lost):
> 	<tag xmlns:ns="ns" ns:attribute="xxx">
> 		stuff
> 	</tag>
>   Note that default namespace is not defined in the output.
> Versions:
> 	$java org.apache.xalan.xslt.Process -V
> 	Xalan Version Xalan Java 2.5.2
> 	$java org.apache.xerces.impl.Version
> 	Xerces-J 2.4.0
> 	$ver
> 	Microsoft Windows 2000 [Version 5.00.2195]
> 	$java -version
> 	java version "1.4.1_02"
> 	Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_02-b06)
> 	Java HotSpot(TM) Client VM (build 1.4.1_02-b06, mixed mode)
> Command line to reproduce:
> 	Normal behaviour:
> 		$java org.apache.xalan.xslt.Process -xsl bug.xsl -in 
> [arbitrary].xml
> 		
> 	Faulty behaviour:
> 		$java org.apache.xalan.xslt.Process -xsl bug.xsl -in 
> [arbitrary].xml -XSLTC
> Attached files:
> 	bug.xsl
> 		XSL to reproduce the problem
> 	bug.xalan.xml
> 		Output of Xalan interpreter
> 	bug.xsltc.2.5.2.xml
> 		Output of XSLTC 2.5.2
> 	bug.xsltc.2.5.1.xml
> 		Output of XSLTC 2.5.1
> ----------------------  bug.xsl ----------------------------
> <?xml version="1.0" encoding="utf-8"?>
> <xsl:stylesheet 
> 	xmlns:ns="http://www.site.org/namespace" 
> 	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
> 	version="1.0"
> 	>
> <xsl:template match="/">
> 	<xsl:variable name="fragment1">			
> 			<ns:tag ns:attribute="xxx">
> 				stuff
> 			</ns:tag>
> 	</xsl:variable>
> 	<xsl:variable name="fragment2">
> 		<xsl:call-template name="get-data"/>
> 	</xsl:variable>
> 		
> 	<ns:start>	
> 	
> 	  Fragment 1:
> 	---
> 	<xsl:copy-of select="$fragment1"/>
> 	---
> 	
> 	Fragment 2:
> 	---
> 	<xsl:copy-of select="$fragment2"/>
> 	---
> 		
> 	</ns:start>
> 		
> </xsl:template>
> <xsl:template name="get-data">
> 	<ns:tag ns:attribute="xxx">
> 		stuff
> 	</ns:tag>
> 				
> </xsl:template>
> 	
> </xsl:stylesheet>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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