dmarston 01/11/14 12:10:43 Modified: test/tests/conf/attribset attribset41.xsl attribset41.xml Added: test/tests/conf/attribset attribset44.xsl attribset44.xml Log: These tests seem ready for prime time Revision Changes Path 1.2 +37 -38 xml-xalan/test/tests/conf/attribset/attribset41.xsl Index: attribset41.xsl =================================================================== RCS file: /home/cvs/xml-xalan/test/tests/conf/attribset/attribset41.xsl,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- attribset41.xsl 2001/06/14 21:04:36 1.1 +++ attribset41.xsl 2001/11/14 20:10:43 1.2 @@ -1,39 +1,38 @@ -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> - -<xsl:output indent="yes"/> - - <!-- FileName: attribset41 --> - <!-- Document: http://www.w3.org/TR/xslt --> - <!-- DocVersion: 19991116 --> - <!-- Section: 7.1.4 Named Attribute Sets --> - <!-- Creator: Morten Jorgensen --> - <!-- Purpose: Test inheritance of attribute sets. A literal result element - is referring an attribute set that is defined by two separate - <xsl:attribute-set.../> elements with the same name. Both - these elements have a use-attribute-sets attribute, which - means that we have a single attribute set that inherits from - two other attribute sets. --> - -<xsl:template match="/"> - <out xsl:use-attribute-sets="child"> - <xsl:attribute name="location">Wonderland</xsl:attribute> - </out> -</xsl:template> - -<xsl:attribute-set name="child" use-attribute-sets="rabbit"> - <xsl:attribute name="follow">yellowbrickroad</xsl:attribute> -</xsl:attribute-set> - -<xsl:attribute-set name="child" use-attribute-sets="alice"> - <xsl:attribute name="wife">thumbelina</xsl:attribute> -</xsl:attribute-set> - -<xsl:attribute-set name="rabbit"> - <xsl:attribute name="rabbithole">deep</xsl:attribute> -</xsl:attribute-set> - -<xsl:attribute-set name="alice"> - <xsl:attribute name="Alice">intoxicated</xsl:attribute> -</xsl:attribute-set> - +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> + +<xsl:output indent="yes"/> + + <!-- FileName: attribset41 --> + <!-- Document: http://www.w3.org/TR/xslt --> <!-- DocVersion: 19991116 --> + <!-- Section: 7.1.4 Named Attribute Sets --> + <!-- Creator: Morten Jorgensen --> + <!-- Purpose: Test inheritance of attribute sets. A literal result element + is referring an attribute set that is defined by two separate + <xsl:attribute-set.../> elements with the same name. Both + these elements have a use-attribute-sets attribute, which + means that we have a single attribute set that inherits from + two other attribute sets. --> + +<xsl:template match="/"> + <out xsl:use-attribute-sets="child"> + <xsl:attribute name="location">Wonderland</xsl:attribute> + </out> +</xsl:template> + +<xsl:attribute-set name="child" use-attribute-sets="rabbit"> + <xsl:attribute name="follow">yellowbrickroad</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="child" use-attribute-sets="alice"> + <xsl:attribute name="wife">thumbelina</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="rabbit"> + <xsl:attribute name="rabbithole">deep</xsl:attribute> +</xsl:attribute-set> + +<xsl:attribute-set name="alice"> + <xsl:attribute name="Alice">intoxicated</xsl:attribute> +</xsl:attribute-set> + </xsl:stylesheet> 1.2 +4 -5 xml-xalan/test/tests/conf/attribset/attribset41.xml Index: attribset41.xml =================================================================== RCS file: /home/cvs/xml-xalan/test/tests/conf/attribset/attribset41.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- attribset41.xml 2001/06/14 21:04:36 1.1 +++ attribset41.xml 2001/11/14 20:10:43 1.2 @@ -1,5 +1,4 @@ -<?xml version="1.0"?> - -<doc> - <foo>a</foo> -</doc> +<?xml version="1.0"?> +<doc> + <foo>a</foo> +</doc> \ No newline at end of file 1.1 xml-xalan/test/tests/conf/attribset/attribset44.xsl Index: attribset44.xsl =================================================================== <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <!-- FileName: attribset44 --> <!-- Document: http://www.w3.org/TR/xslt --> <!-- DocVersion: 19991116 --> <!-- Section: 7.1.4 Named Attribute Sets --> <!-- Creator: David Bertoni --> <!-- Purpose: Only top-level variables and params are visible within the declaration of an attribute set. --> <xsl:output indent="yes"/> <xsl:variable name="foo" select="'correct'"/> <xsl:template match="/"> <xsl:variable name="foo" select="'incorrect'"/> <out xsl:use-attribute-sets="attrs"/> </xsl:template> <xsl:attribute-set name="attrs"> <xsl:attribute name="test"><xsl:value-of select="$foo"/></xsl:attribute> </xsl:attribute-set> </xsl:stylesheet> 1.1 xml-xalan/test/tests/conf/attribset/attribset44.xml Index: attribset44.xml =================================================================== <?xml version="1.0"?> <doc/>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]