view test/javax/xml/jaxp/unittest/transform/Bug6206491.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/Bug6206491.xsl@29ba77ad2a87
children
line wrap: on
line source

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    
    <xsl:output method="xml" indent="yes"/>
    
    <xsl:variable name="ids" select="//ids//id"/>
    <xsl:variable name="dummy" select="document('Bug6206491_2.xml')"/>
    
    <xsl:template match="/"> 
        <test1><xsl:apply-templates select="$ids"/></test1>
        <test2><xsl:apply-templates select="$dummy//ids/id"/></test2>
    </xsl:template>
    
    <xsl:template match="id">
        <xsl:variable name="entity" select="id(@value)"/> 
        <must-be-one><xsl:value-of select="count($entity)"/></must-be-one>
    </xsl:template>
    
</xsl:stylesheet>