You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by dm...@apache.org on 2001/01/11 22:44:03 UTC
cvs commit: xml-xalan/test/tests/conf/select select73.xsl select73.xml
dmarston 01/01/11 13:44:03
Added: test/tests/conf/select select73.xsl select73.xml
Log:
Test for integrity of text nodes
Revision Changes Path
1.1 xml-xalan/test/tests/conf/select/select73.xsl
Index: select73.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: select73 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test that entity does not cause splitting of one text node into many. -->
<xsl:output method="xml" encoding="ISO-8859-1"/>
<!-- With this output encoding, should get one byte of xE9 for the é -->
<xsl:template match="doc">
<out>
<xsl:apply-templates select="A"/>
</out>
</xsl:template>
<xsl:template match="A">
<xsl:text>
A...</xsl:text>
<xsl:for-each select="child::node()">
<xsl:value-of select="position()"/><xsl:text>. </xsl:text><xsl:value-of select="."/>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/select/select73.xml
Index: select73.xml
===================================================================
<?xml version="1.0"?>
<!DOCTYPE doc
[
<!ELEMENT doc ANY>
<!ELEMENT A ANY>
<!ELEMENT K ANY>
<!ENTITY eacute "é">
]>
<doc>
<A>adresse1 <K>AFTER</K></A>
<A>adéresse2 <K>after</K></A>
<A>adresse3 </A>
<A><K>BEFORE </K>adresse4</A>
<A><K>before </K>adéresse5</A>
</doc>