dmarston 01/06/11 11:56:14 Modified: test/tests/conf/attribset attribset24.xsl attribset24.xml Log: Focus on what happens when prefix must be reset Revision Changes Path 1.2 +8 -11 xml-xalan/test/tests/conf/attribset/attribset24.xsl Index: attribset24.xsl =================================================================== RCS file: /home/cvs/xml-xalan/test/tests/conf/attribset/attribset24.xsl,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- attribset24.xsl 2000/12/17 21:19:55 1.1 +++ attribset24.xsl 2001/06/11 18:56:13 1.2 @@ -1,23 +1,20 @@ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" - xmlns:ped="http://ped.test.com" - xmlns:bdd="http://bdd.test.com"> + xmlns:bdd="http://bdd.test.com"> -<xsl:output indent="yes"/> - <!-- FileName: attribset24 --> <!-- Document: http://www.w3.org/TR/xslt --> <!-- DocVersion: 19991116 --> <!-- Section: 7.1.3 Creating Attributes --> <!-- Creator: Paul Dick --> - <!-- Purpose: The namespace attribute is interpreted as an attribute value template. --> + <!-- Purpose: The attribute must be in the designated namespace, even if the prefix has + to be reset or ignored. --> <xsl:template match="/"> - <root> - <Out> - <xsl:attribute name="{docs/a}" namespace="http://ped.test.com">YoBaby</xsl:attribute> - <xsl:attribute name="{docs/b}" namespace="http://ped.test.com">jaminben</xsl:attribute> - </Out> - </root> + <out> + <jam> + <xsl:attribute name="{docs/b}" namespace="http://xyz.com">jaminben</xsl:attribute> + </jam> + </out> </xsl:template> </xsl:stylesheet> 1.2 +1 -2 xml-xalan/test/tests/conf/attribset/attribset24.xml Index: attribset24.xml =================================================================== RCS file: /home/cvs/xml-xalan/test/tests/conf/attribset/attribset24.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- attribset24.xml 2000/12/17 21:19:55 1.1 +++ attribset24.xml 2001/06/11 18:56:13 1.2 @@ -1,5 +1,4 @@ <?xml version="1.0"?> <docs> - <a>xyz:Attr1</a> - <b>bdd:Attr2</b> + <b>bdd:attr</b> </docs>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
