dmarston 02/05/10 14:47:51 Added: test/tests/conf/copy copy54.xsl copy52.xsl copy53.xml copy53.xsl copy54.xml copy52.xml Log: More coverage of unusual // constructs. Revision Changes Path 1.1 xml-xalan/test/tests/conf/copy/copy54.xsl Index: copy54.xsl =================================================================== <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <!-- FileName: copy54 --> <!-- Document: http://www.w3.org/TR/xslt --> <!-- DocVersion: 19991116 --> <!-- Section: 7.5 --> <!-- Creator: David Marston --> <!-- Purpose: Copy some PIs with a multiply-filtered select. --> <xsl:template match="/"> <out> <xsl:for-each select="//center//processing-instruction('b-pi')"> <xsl:copy/><xsl:text> </xsl:text> </xsl:for-each> </out> </xsl:template> </xsl:stylesheet> 1.1 xml-xalan/test/tests/conf/copy/copy52.xsl Index: copy52.xsl =================================================================== <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <!-- FileName: copy52 --> <!-- Document: http://www.w3.org/TR/xslt --> <!-- DocVersion: 19991116 --> <!-- Section: 7.5 --> <!-- Creator: David Marston --> <!-- Purpose: Make each PI of a certain name be the current node, and copy it. --> <xsl:template match="/"> <out> <xsl:for-each select="//processing-instruction('b-pi')"> <xsl:copy/><xsl:text> </xsl:text> </xsl:for-each> </out> </xsl:template> </xsl:stylesheet> 1.1 xml-xalan/test/tests/conf/copy/copy53.xml Index: copy53.xml =================================================================== <?xml version="1.0"?> <far-north> Level-1 <?a-pi pi-1?> <north> Level-3 <?b-pi pi-2?> <near-north> Level-4 <?a-pi pi-3?> <center> <?b-pi pi-4?> <near-south-west/>Level-5 <?a-pi pi-5?> <near-south>Level-6 <?b-pi pi-6?> <south/> <?a-pi pi-7?> </near-south> <?b-pi pi-8?> </center> </near-north> <?a-pi pi-9?> </north> </far-north> 1.1 xml-xalan/test/tests/conf/copy/copy53.xsl Index: copy53.xsl =================================================================== <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <!-- FileName: copy53 --> <!-- Document: http://www.w3.org/TR/xslt --> <!-- DocVersion: 19991116 --> <!-- Section: 11.3 --> <!-- Creator: David Marston --> <!-- Purpose: Copy all PIs of a certain name via copy-of. --> <xsl:template match="/"> <out> <xsl:copy-of select="//processing-instruction('b-pi')"/> </out> </xsl:template> </xsl:stylesheet> 1.1 xml-xalan/test/tests/conf/copy/copy54.xml Index: copy54.xml =================================================================== <?xml version="1.0"?> <far-north> Level-1 <?a-pi pi-1?> <north> Level-3 <?b-pi pi-2?> <near-north> Level-4 <?a-pi pi-3?> <center> <?b-pi pi-4?> <near-south-west/>Level-5 <?a-pi pi-5?> <near-south>Level-6 <?b-pi pi-6?> <south/> <?a-pi pi-7?> </near-south> <?b-pi pi-8?> </center> </near-north> <?a-pi pi-9?> </north> </far-north> 1.1 xml-xalan/test/tests/conf/copy/copy52.xml Index: copy52.xml =================================================================== <?xml version="1.0"?> <far-north> Level-1 <?a-pi pi-1?> <north> Level-3 <?b-pi pi-2?> <near-north> Level-4 <?a-pi pi-3?> <center> <?b-pi pi-4?> <near-south-west/>Level-5 <?a-pi pi-5?> <near-south>Level-6 <?b-pi pi-6?> <south/> <?a-pi pi-7?> </near-south> <?b-pi pi-8?> </center> </near-north> <?a-pi pi-9?> </north> </far-north>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]