dmarston 02/03/18 10:14:18
Added: test/tests/conf/output output99.xsl output100.xsl
output101.xml output101.xsl output102.xml
output102.xsl output103.xml output103.xsl
output104.xml output104.xsl output105.xml
output105.xsl output106.xml output106.xsl
output107.xml output107.xsl output91.xml
output91.xsl output92.xml output92.xsl output93.xml
output93.xsl output94.xml output94.xsl output95.xml
output95.xsl output96.xml output96.xsl output97.xml
output97.xsl output98.xml output98.xsl output99.xml
output100.xml
Log:
Vastly expand coverage of cdata-section-elements
Revision Changes Path
1.1 xml-xalan/test/tests/conf/output/output99.xsl
Index: output99.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:baz="http://baz.com">
<!-- FileName: OUTPUT99 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 16.1 -->
<!-- Creator: David Bertoni -->
<!-- Purpose: Show that namespaced LRE does not match unprefixed element in
cdata-section-elements list. -->
<xsl:output method="xml" cdata-section-elements="out" encoding="UTF-8"/>
<xsl:template match="/">
<baz:out>should NOT be wrapped</baz:out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/output/output100.xsl
Index: output100.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:baz="http://baz.com"
exclude-result-prefixes="baz">
<!-- FileName: OUTPUT100 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 16.1 -->
<!-- Creator: David Marston -->
<!-- Purpose: Show that non-namespaced LRE does not match namespaced
element in cdata-section-elements list. -->
<xsl:output method="xml" cdata-section-elements="baz:out" encoding="UTF-8"/>
<xsl:template match="/">
<out>should NOT be wrapped</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/output/output101.xml
Index: output101.xml
===================================================================
<?xml version="1.0"?>
<doc/>
1.1 xml-xalan/test/tests/conf/output/output101.xsl
Index: output101.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:baz="http://baz.com" xmlns="http://baz.com"
exclude-result-prefixes="baz">
<!-- FileName: OUTPUT101 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 16.1 -->
<!-- Creator: David Marston -->
<!-- Purpose: Show that LRE in default namespace can match namespaced
element in cdata-section-elements list. -->
<xsl:output method="xml" cdata-section-elements="baz:out" encoding="UTF-8"/>
<xsl:template match="/">
<out>should be wrapped</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/output/output102.xml
Index: output102.xml
===================================================================
<?xml version="1.0"?>
<doc/>
1.1 xml-xalan/test/tests/conf/output/output102.xsl
Index: output102.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:baz="http://baz.com" xmlns="http://baz.com"
exclude-result-prefixes="#default">
<!-- FileName: OUTPUT102 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 16.1 -->
<!-- Creator: David Marston -->
<!-- Purpose: Show that namespaced LRE can match element in
cdata-section-elements list when default is set. -->
<xsl:output method="xml" cdata-section-elements="out" encoding="UTF-8"/>
<xsl:template match="/">
<baz:out>should be wrapped</baz:out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/output/output103.xml
Index: output103.xml
===================================================================
<?xml version="1.0"?>
<doc/>
1.1 xml-xalan/test/tests/conf/output/output103.xsl
Index: output103.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:baz="http://baz.com" xmlns:extra="http://baz.com"
exclude-result-prefixes="extra">
<!-- FileName: OUTPUT103 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 16.1 -->
<!-- Creator: David Marston -->
<!-- Purpose: Show that namespaced LRE can match differently-prefixed
element in cdata-section-elements. -->
<xsl:output method="xml" cdata-section-elements="extra:out" encoding="UTF-8"/>
<xsl:template match="/">
<baz:out>should be wrapped</baz:out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/output/output104.xml
Index: output104.xml
===================================================================
<?xml version="1.0"?>
<baz:out xmlns:baz="http://baz.com">should be wrapped</baz:out>
1.1 xml-xalan/test/tests/conf/output/output104.xsl
Index: output104.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:baz="http://baz.com">
<!-- FileName: OUTPUT104 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 16.1 -->
<!-- Creator: David Bertoni -->
<!-- Purpose: Use cdata-section-elements with xsl:copy-of, namespaces
match. -->
<xsl:output method="xml" cdata-section-elements="baz:out" encoding="UTF-8"/>
<xsl:template match="/">
<xsl:copy-of select="*"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/output/output105.xml
Index: output105.xml
===================================================================
<?xml version="1.0"?>
<out xmlns="http://baz.com">should be wrapped</out>
1.1 xml-xalan/test/tests/conf/output/output105.xsl
Index: output105.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:baz="http://baz.com">
<!-- FileName: OUTPUT105 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 16.1 -->
<!-- Creator: David Bertoni -->
<!-- Purpose: Use cdata-section-elements with xsl:copy-of, default in input
matches prefixed here. -->
<xsl:output method="xml" cdata-section-elements="baz:out" encoding="UTF-8"/>
<xsl:template match="/">
<xsl:copy-of select="*"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/output/output106.xml
Index: output106.xml
===================================================================
<?xml version="1.0"?>
<baz:out xmlns:baz="http://baz.com">should be wrapped</baz:out>
1.1 xml-xalan/test/tests/conf/output/output106.xsl
Index: output106.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns="http://baz.com">
<!-- FileName: OUTPUT106 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 16.1 -->
<!-- Creator: David Marston -->
<!-- Purpose: Use cdata-section-elements with xsl:copy-of, prefix in input
matches default here. -->
<xsl:output method="xml" cdata-section-elements="out" encoding="UTF-8"/>
<xsl:template match="/">
<xsl:copy-of select="*"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/output/output107.xml
Index: output107.xml
===================================================================
<?xml version="1.0"?>
<baz:out xmlns:baz="http://baz.com">should be wrapped</baz:out>
1.1 xml-xalan/test/tests/conf/output/output107.xsl
Index: output107.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:snaz="http://baz.com">
<!-- FileName: OUTPUT107 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 16.1 -->
<!-- Creator: David Marston -->
<!-- Purpose: Use cdata-section-elements with xsl:copy-of, namespaces match
URIs but prefixes are different. -->
<xsl:output method="xml" cdata-section-elements="snaz:out" encoding="UTF-8"/>
<xsl:template match="/">
<xsl:copy-of select="*"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/output/output91.xml
Index: output91.xml
===================================================================
<?xml version="1.0"?>
<out>foo</out>
1.1 xml-xalan/test/tests/conf/output/output91.xsl
Index: output91.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0" >
<!-- FileName: OUTPUT91 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 16.1 -->
<!-- Creator: David Bertoni -->
<!-- Purpose: Test effect of cdata-section-elements on xsl:copy. -->
<xsl:output method="xml" cdata-section-elements="out" encoding="UTF-8"/>
<xsl:template match="/">
<xsl:copy-of select="*"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/output/output92.xml
Index: output92.xml
===================================================================
<?xml version="1.0"?>
<doc/>
1.1 xml-xalan/test/tests/conf/output/output92.xsl
Index: output92.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0" >
<!-- FileName: OUTPUT92 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 16.1 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test effect of cdata-section-elements on xsl:element. -->
<xsl:output method="xml" cdata-section-elements="example" encoding="UTF-8"/>
<xsl:template match="/">
<out>
<xsl:element name="example">Text that should be enclosed</xsl:element>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/output/output93.xml
Index: output93.xml
===================================================================
<?xml version="1.0"?>
<doc/>
1.1 xml-xalan/test/tests/conf/output/output93.xsl
Index: output93.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: OUTPUT93 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 16.1 XML Output Method-->
<!-- Creator: David Marston -->
<!-- Purpose: Test effect of cdata-section-elements when text-node children
are created by xsl:text. -->
<xsl:output method="xml" cdata-section-elements="example" encoding="UTF-8"/>
<xsl:template match="doc">
<out>
<example><xsl:text>this is a section</xsl:text></example>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/output/output94.xml
Index: output94.xml
===================================================================
<?xml version="1.0"?>
<doc/>
1.1 xml-xalan/test/tests/conf/output/output94.xsl
Index: output94.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: OUTPUT94 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 16.1 XML Output Method-->
<!-- Creator: David Marston -->
<!-- Purpose: Test effect of cdata-section-elements on multiple text-node
children, created by xsl:text. -->
<xsl:output method="xml" cdata-section-elements="example" encoding="UTF-8"/>
<xsl:template match="doc">
<out>
<example>
<xsl:text>this is a section</xsl:text>
<xsl:comment>Comment in between</xsl:comment>
<xsl:text>another section</xsl:text>
</example>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/output/output95.xml
Index: output95.xml
===================================================================
<?xml version="1.0"?>
<doc/>
1.1 xml-xalan/test/tests/conf/output/output95.xsl
Index: output95.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: OUTPUT95 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 16.1 XML Output Method-->
<!-- Creator: David Marston -->
<!-- Purpose: Test effect of cdata-section-elements when text-node children
are created by xsl:value-of. -->
<xsl:output method="xml" cdata-section-elements="example" encoding="UTF-8"/>
<xsl:template match="doc">
<out>
<example><xsl:value-of select="'should be wrapped'"/></example>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/output/output96.xml
Index: output96.xml
===================================================================
<?xml version="1.0"?>
<doc/>
1.1 xml-xalan/test/tests/conf/output/output96.xsl
Index: output96.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: OUTPUT96 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 16.1 XML Output Method-->
<!-- Creator: David Marston -->
<!-- Purpose: Test that cdata-section-elements applies to text-node
children, not descendants. -->
<xsl:output method="xml" cdata-section-elements="example" encoding="UTF-8"/>
<xsl:template match="doc">
<out>
<example>
<xsl:text>a section</xsl:text>
<sub>descendant text node</sub>
<xsl:text>one more section</xsl:text>
</example>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/output/output97.xml
Index: output97.xml
===================================================================
<?xml version="1.0"?>
<out>a section<sub>descendant text node</sub>one more</out>
1.1 xml-xalan/test/tests/conf/output/output97.xsl
Index: output97.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0" >
<!-- FileName: OUTPUT97 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 16.1 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test effect of cdata-section-elements on xsl:copy, with
descendants in tree. -->
<xsl:output method="xml" cdata-section-elements="out" encoding="UTF-8"/>
<xsl:template match="/">
<xsl:copy-of select="*"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/output/output98.xml
Index: output98.xml
===================================================================
<?xml version="1.0"?>
<doc/>
1.1 xml-xalan/test/tests/conf/output/output98.xsl
Index: output98.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:baz="http://baz.com">
<!-- FileName: OUTPUT98 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 16.1 -->
<!-- Creator: David Bertoni -->
<!-- Purpose: Test of QName for cdata-section-elements attribute of
xsl:output. -->
<xsl:output method="xml" cdata-section-elements="baz:out" encoding="UTF-8"/>
<xsl:template match="/">
<baz:out>foo</baz:out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/output/output99.xml
Index: output99.xml
===================================================================
<?xml version="1.0"?>
<doc/>
1.1 xml-xalan/test/tests/conf/output/output100.xml
Index: output100.xml
===================================================================
<?xml version="1.0"?>
<doc/>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]