jdk/test/javax/xml/jaxp/transform/8004476/tokenize.xsl
author iignatyev
Tue, 16 Dec 2014 02:14:11 +0300
changeset 28198 1e41fbf783e3
parent 21849 3039fc1ed457
permissions -rw-r--r--
8065279: Remove testlibrary_tests from compact profile in jtreg Reviewed-by: kvn Contributed-by: dmitrij.pochepko@oracle.com

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
                xmlns:str="http://exslt.org/strings"
                xmlns:xalan="http://xml.apache.org/xalan"
                version="1.0">
<xsl:template match="a">
   <xsl:apply-templates />
</xsl:template>
<xsl:template match="//a/c">
   <xsl:value-of select="." />
 -
      <xsl:value-of select="str:tokenize(string(.), ' ')" />
   <xsl:value-of select="str:tokenize(string(.), '')" />
   <xsl:for-each select="str:tokenize(string(.), ' ')">
      <xsl:value-of select="." />
   </xsl:for-each>
   <xsl:apply-templates select="*" />
</xsl:template>
<xsl:template match="//a/b">
   <xsl:value-of select="." />
 -
      <xsl:value-of select="xalan:tokenize(string(.), ' ')" />
   <xsl:value-of select="xalan:tokenize(string(.), '')" />
   <xsl:for-each select="xalan:tokenize(string(.), ' ')">
      <xsl:value-of select="." />
   </xsl:for-each>
   <xsl:apply-templates select="*" />
</xsl:template>

</xsl:stylesheet>