Mercurial > hg > jdk9-shenandoah > jaxp
view test/javax/xml/jaxp/unittest/transform/attribset27.xsl @ 779:2b61bfcaa586
8132660: Change jaxp unit test package name to be different with jaxp api
Reviewed-by: joehw
Contributed-by: frank.yuan@oracle.com
author | joehw |
---|---|
date | Mon, 10 Aug 2015 09:52:32 -0700 |
parents | test/javax/xml/jaxp/unittest/javax/xml/transform/attribset27.xsl@29ba77ad2a87 |
children |
line wrap: on
line source
<?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <!-- FileName: attribset27 --> <!-- Document: http://www.w3.org/TR/xslt --> <!-- DocVersion: 19991116 --> <!-- Section: 7.1.4 Named Attribute Sets --> <!-- Purpose: Use xsl:copy with multiple attribute sets with conflicting set name, then reset one attribute with xsl:attribute. --> <!-- Author: Carmelo Montanez --><!-- ResultTree004 in NIST suite --> <xsl:template match="/"> <out> <xsl:copy use-attribute-sets="set1"> <xsl:attribute name="text-decoration">none</xsl:attribute> </xsl:copy> </out> </xsl:template> <xsl:attribute-set name="set1"> <xsl:attribute name="text-decoration">underline</xsl:attribute> </xsl:attribute-set> <xsl:attribute-set name="set1"> <xsl:attribute name="color">black</xsl:attribute> </xsl:attribute-set> <xsl:attribute-set name="set1"> <xsl:attribute name="font-size">14pt</xsl:attribute> </xsl:attribute-set> </xsl:stylesheet>