dmarston 01/10/05 13:36:34
Modified: test/tests/conf/lre lre11.xsl lre03.xsl lre02.xsl
Added: test/tests/conf/lre lre22.xml lre22.xsl lre23.xml lre23.xsl
Log:
Needed more LRE tests for exclude-result-prefixes.
Bug-fix incomplete, so exclude tests for now.
Revision Changes Path
1.2 +4 -1 xml-xalan/test/tests/conf/lre/lre11.xsl
Index: lre11.xsl
===================================================================
RCS file: /home/cvs/xml-xalan/test/tests/conf/lre/lre11.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- lre11.xsl 2000/12/17 18:43:40 1.1
+++ lre11.xsl 2001/10/05 20:36:33 1.2
@@ -14,8 +14,11 @@
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 Stylesheet Element -->
<!-- Creator: Paul Dick -->
+ <!-- AdditionalSpec: 2.1 of XSLT for namespaces on attributes -->
<!-- Purpose: Testing the xsl:transform element and its attributes. english
- attribute and ped,bdd namespace nodes are all that should be output.
-->
+ attribute and #default,ped,bdd namespace nodes are all that should be
output.
+ (#default is used.) xsl:if must be assumed to be a directive to the
processor,
+ so it could raise an error. -->
<xsl:template match="doc">
<out xsl:if= "my if" english="to leave"/>
1.4 +2 -1 xml-xalan/test/tests/conf/lre/lre03.xsl
Index: lre03.xsl
===================================================================
RCS file: /home/cvs/xml-xalan/test/tests/conf/lre/lre03.xsl,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- lre03.xsl 2001/03/28 23:48:00 1.3
+++ lre03.xsl 2001/10/05 20:36:33 1.4
@@ -15,7 +15,8 @@
that were present on the element node in the stylesheet tree with the
exception
of any namespace node whose string-value is the XSLT namespace URI, a
namespace
URI declared as an extension namespace, or a namespace URI designated
as an
- excluded namespace. (Can't exclude namespaces that are used,
however.) -->
+ excluded namespace. (Can't exclude namespaces that are used, however.)
+ The default namespace is used, and so can't be excluded. -->
<xsl:template match="doc">
<out english="to leave" xsl:exclude-result-prefixes="java jad #default"/>
1.4 +2 -1 xml-xalan/test/tests/conf/lre/lre02.xsl
Index: lre02.xsl
===================================================================
RCS file: /home/cvs/xml-xalan/test/tests/conf/lre/lre02.xsl,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- lre02.xsl 2001/03/28 23:48:00 1.3
+++ lre02.xsl 2001/10/05 20:36:33 1.4
@@ -16,7 +16,8 @@
that were present on the element node in the stylesheet tree with the
exception
of any namespace node whose string-value is the XSLT namespace URI, a
namespace
URI declared as an extension namespace, or a namespace URI designated
as an
- excluded namespace. (Can't exclude namespaces that are used,
however.) -->
+ excluded namespace. (Can't exclude namespaces that are used, however.)
+ The default namespace is used, and so can't be excluded. -->
<xsl:template match="doc">
<out english="to leave"/>
1.1 xml-xalan/test/tests/conf/lre/lre22.xml
Index: lre22.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/lre/lre22.xsl
Index: lre22.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:ped="http://tester.com"
xmlns="www.lotus.com"
exclude-result-prefixes="#default">
<!-- FileName: lre22 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.1 Literal Result Elements-->
<!-- Creator: David Marston -->
<!-- Purpose: Test exclusion of #default, stylesheet level. -->
<!-- Elaboration: The created element node will also have a copy of the
namespace nodes
that were present on the element node in the stylesheet tree with the
exception
of any namespace node whose string-value is the XSLT namespace URI, a
namespace
URI declared as an extension namespace, or a namespace URI designated
as an
excluded namespace. (Can't exclude namespaces that are used, however.)
-->
<xsl:template match="doc">
<ped:out ped:english="to leave"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/lre/lre23.xml
Index: lre23.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/lre/lre23.xsl
Index: lre23.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:bdd="http://buster.com"
xmlns="www.lotus.com">
<!-- FileName: lre23 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.1 Literal Result Elements-->
<!-- Creator: David Marston -->
<!-- Purpose: Test exclusion of #default as an attribute on an LRE. -->
<!-- Elaboration: The created element node will also have a copy of the
namespace nodes
that were present on the element node in the stylesheet tree with the
exception
of any namespace node whose string-value is the XSLT namespace URI, a
namespace
URI declared as an extension namespace, or a namespace URI designated
as an
excluded namespace. (Can't exclude namespaces that are used, however.)
-->
<xsl:template match="doc">
<bdd:out bdd:english="to leave" xsl:exclude-result-prefixes="#default"/>
</xsl:template>
</xsl:stylesheet>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]