sboag 01/07/05 13:22:01
Added: test/tests/conf/whitespace whitespace23.xml whitespace23.xsl
Log:
Another test for the normalize-space function, this one really testing
handling of the newline.
(in response to problem reported by "Carsten Ziegeler" <[EMAIL PROTECTED]>).
Revision Changes Path
1.1 xml-xalan/test/tests/conf/whitespace/whitespace23.xml
Index: whitespace23.xml
===================================================================
<?xml version="1.0"?>
<doc>
<link>
<url>
value
xx
</url>
</link>
<link>
<url>
value
</url>
</link>
<link>
<url>
value zz
</url>
</link>
<link>
<url>
value yy
</url>
</link>
</doc>
1.1 xml-xalan/test/tests/conf/whitespace/whitespace23.xsl
Index: whitespace23.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
xmlns:ns1="www.ns1.com" xmlns:ns2="www.ns2.com"
exclude-result-prefixes="ns1 ns2">
<!-- FileName: whitespace23 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 3.4 Whitespace Stripping -->
<!-- Creator: Scott Boag (in response to problem reported by "Carsten
Ziegeler" <[EMAIL PROTECTED]>) -->
<!-- Purpose: Another test for the normalize-space function, this one
really testing handling of the newline. -->
<xsl:template match = "doc">
<html>
<xsl:for-each select="link">
<a>
<xsl:attribute name="href"><xsl:value-of
select="normalize-space(url)"/></xsl:attribute>
<xsl:value-of select="normalize-space(url)"/>
</a>
<xsl:text> </xsl:text>
</xsl:for-each>
<xsl:for-each select="link">
<a href="{normalize-space(url)}">
<xsl:value-of select="normalize-space(url)"/>
</a>
<xsl:text> </xsl:text>
</xsl:for-each>
</html>
</xsl:template>
</xsl:stylesheet>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]