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 2002/05/28 20:43:53 UTC
cvs commit: xml-xalan/test/tests/conf/string string140.xsl string140.xml
dmarston 02/05/28 11:43:53
Added: test/tests/conf/string string140.xsl string140.xml
Log:
New case derived from bugzilla #9441.
Revision Changes Path
1.1 xml-xalan/test/tests/conf/string/string140.xsl
Index: string140.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: string140 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.2 String Functions -->
<!-- Creator: David Marston -->
<!-- Purpose: Test of 'normalize-space()' function. Watch for space being removed when it shouldn't be -->
<xsl:template match="doc">
<out>
<xsl:for-each select="a">
<xsl:text>
</xsl:text>
<xsl:element name="A">
<xsl:attribute name="size"><xsl:value-of select="string-length(normalize-space(.))"/></xsl:attribute>
<xsl:value-of select="normalize-space(.)"/>
</xsl:element>
</xsl:for-each>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/string/string140.xml
Index: string140.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>
<a>a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z</a>
<a >a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z</a>
<a>a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z</a >
<a >a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z</a>
<a>a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z</a >
<a >a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z</a>
<a>a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z</a >
<a>a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z</a>
<!-- Now try padding out each line at the front. -->
<a>a! b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z</a>
<a>a!! b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z</a>
<a>a!!! b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z</a>
<a>a!!!! b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z</a>
</doc>
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org