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/11/15 22:18:50 UTC
cvs commit: xml-xalan/test/tests/conf/whitespace whitespace35.xsl whitespace35.xml docws35.xml
dmarston 01/11/15 13:18:50
Added: test/tests/conf/whitespace whitespace35.xsl whitespace35.xml
docws35.xml
Log:
A new test from Maynard Demmons. Note that we are relying on
reading the words "a source document" in section 3.4 in a
particular way, but there seems to be consensus on this.
Revision Changes Path
1.1 xml-xalan/test/tests/conf/whitespace/whitespace35.xsl
Index: whitespace35.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: whitespace35 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 3.4 -->
<!-- Creator: Maynard Demmons (maynard@organic.com) -->
<!-- Purpose: Test for whitespace stripping from source documents retrieved
with the document() function. The spec is a little vague on this. -->
<!-- Elaboration: doc/* would contain several whitespace nodes if not stripped.
The built-in template for text would cause them to be emitted. -->
<xsl:strip-space elements="*" />
<xsl:template match="/">
<out>
<xsl:apply-templates/>
<xsl:apply-templates select="document('docws35.xml')/doc"/>
</out>
</xsl:template>
<xsl:template match="element">
<xsl:element name="{(.)}"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/whitespace/whitespace35.xml
Index: whitespace35.xml
===================================================================
<?xml version="1.0"?>
<doc>
<element>abc</element> <element>def</element>
</doc>
1.1 xml-xalan/test/tests/conf/whitespace/docws35.xml
Index: docws35.xml
===================================================================
<?xml version="1.0"?>
<doc>
<element>ghi</element> <element>jkl</element>
</doc>
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org