You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by il...@apache.org on 2002/09/25 22:40:28 UTC
cvs commit: xml-xalan/test/tests/conf/copy copy62.xml copy62.xsl copy61.xml copy61.xsl
ilene 2002/09/25 13:40:28
Added: test/tests/conf/copy copy62.xml copy62.xsl copy61.xml
copy61.xsl
Log:
Moving testcases copyerr06, copyerr07 to the positive bucket as
copy62, copy61.
Revision Changes Path
1.1 xml-xalan/test/tests/conf/copy/copy62.xml
Index: copy62.xml
===================================================================
<?xml version="1.0"?>
<doc top="gotcha"></doc>
1.1 xml-xalan/test/tests/conf/copy/copy62.xsl
Index: copy62.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: copy62 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 11.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Try to copy an attribute, via copy-of, after child element. -->
<!-- Discretionary: name="add-attribute-after-children" choice="ignore" -->
<!-- ExpectedException: Attempt to write an attribute after child element -->
<xsl:output method="xml" encoding="UTF-8"/>
<xsl:template match="/">
<out>
<child/>
<xsl:copy-of select="doc/@*"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/copy/copy61.xml
Index: copy61.xml
===================================================================
<?xml version="1.0"?>
<doc top="gotcha"></doc>
1.1 xml-xalan/test/tests/conf/copy/copy61.xsl
Index: copy61.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: copy61 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 11.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Try to copy an attribute, via copy, after child element. -->
<!-- Discretionary: name="add-attribute-after-children" choice="ignore" -->
<!-- ExpectedException: Attempt to write an attribute after child element -->
<xsl:output method="xml" encoding="UTF-8"/>
<xsl:template match="/">
<out>
<child/>
<xsl:apply-templates select="doc/@*"/>
</out>
</xsl:template>
<xsl:template match="@*">
<xsl:copy/>
</xsl:template>
</xsl:stylesheet>
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org