dmarston 01/11/14 12:36:44 Modified: test/tests/conf/namespace namespace22.xsl namespace02.xsl Added: test/tests/conf/namespace namespace47.xsl namespace47.xml Log: Fill out the namespace/element test matrix a little more. Revision Changes Path 1.3 +8 -14 xml-xalan/test/tests/conf/namespace/namespace22.xsl Index: namespace22.xsl =================================================================== RCS file: /home/cvs/xml-xalan/test/tests/conf/namespace/namespace22.xsl,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- namespace22.xsl 2000/12/29 19:52:21 1.2 +++ namespace22.xsl 2001/11/14 20:36:44 1.3 @@ -1,26 +1,20 @@ <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" - xmlns:lotus="http://www.lotus.com" - xmlns="http://www.w3.org/TR/REC-html40"> + xmlns="spacename.com"> <!-- FileName: namespace22--> <!-- Document: http://www.w3.org/TR/xpath --> <!-- DocVersion: 19991116 --> - <!-- Section: 7.1 Creating Elements (Namespace Node Inhertiance) --> + <!-- Section: 7.1 Creating Elements (Namespace Node Inheritance) --> <!-- Creator: Paul Dick --> - <!-- Purpose: Determine how namespaces are inherited down to succeeding elements. - Currently this is not an atomic test. This needs more investagation. --> + <!-- Purpose: Show how namespaces are inherited down to succeeding elements. --> <xsl:template match = "doc"> - <root> + <out> <xsl:text>
</xsl:text> - <Out1/> - <xsl:element name="Element1" namespace="http://www.element1.com"/><xsl:text>
</xsl:text> - <Out2/> - <xsl:element name="Element2"/><xsl:text>
</xsl:text> - <Out3/> - <xsl:element name="Element3"/> - </root> + <middle/> + <xsl:element name="element2"/> + </out> </xsl:template> -</xsl:stylesheet> +</xsl:stylesheet> \ No newline at end of file 1.3 +9 -8 xml-xalan/test/tests/conf/namespace/namespace02.xsl Index: namespace02.xsl =================================================================== RCS file: /home/cvs/xml-xalan/test/tests/conf/namespace/namespace02.xsl,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- namespace02.xsl 2000/12/29 19:52:20 1.2 +++ namespace02.xsl 2001/11/14 20:36:44 1.3 @@ -1,22 +1,23 @@ <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> -<xsl:output indent="yes"/> <!-- FileName: namespace02 --> <!-- Document: http://www.w3.org/TR/xslt --> <!-- DocVersion: 19991116 --> <!-- Section: 2.4 --> <!-- Creator: Paul Dick --> - <!-- Purpose: Apply namespaces to elements. Location of declaration is - allowed to vary, as long as it's in scope when needed. --> + <!-- Purpose: Basic test of applying namespaces to elements. --> +<xsl:output method="xml" encoding="UTF-8" indent="yes" /> + <xsl:template match="/"> <out xmlns:anamespace="foo.com"> - <p><xsl:element name="test" namespace="foo.com"/></p> - <p><xsl:element name="test" namespace="baz.com"/> - <xsl:element name="foo" namespace="baz.com"/> - </p> + <xsl:element name="test" namespace="foo.com"> + <inner/> + </xsl:element> + <later/> + <anamespace:anelement/> </out> </xsl:template> -</xsl:stylesheet> +</xsl:stylesheet> \ No newline at end of file 1.1 xml-xalan/test/tests/conf/namespace/namespace47.xsl Index: namespace47.xsl =================================================================== <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <!-- FileName: namespace47 --> <!-- Document: http://www.w3.org/TR/xslt --> <!-- DocVersion: 19991116 --> <!-- Section: 7.1.2 Creating Elements --> <!-- Creator: Scott Boag --> <!-- Purpose: Test for resetting of an unspecified default namespace by a LRE. --> <xsl:template match = "/"> <out> <xsl:element namespace="bug" name="foo"> <yyy/> </xsl:element> </out> </xsl:template> </xsl:stylesheet> 1.1 xml-xalan/test/tests/conf/namespace/namespace47.xml Index: namespace47.xml =================================================================== <?xml version="1.0"?> <doc>x</doc>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
