jdk/test/javax/xml/jaxp/transform/jdk8004476/tokenize.xsl
author joehw
Thu, 24 Oct 2013 14:13:09 -0700
changeset 21364 decde35d5139
permissions -rw-r--r--
8004476: XSLT Extension Functions Don't Work in WebStart Reviewed-by: dfuchs, lancea, alanb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
21364
decde35d5139 8004476: XSLT Extension Functions Don't Work in WebStart
joehw
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
decde35d5139 8004476: XSLT Extension Functions Don't Work in WebStart
joehw
parents:
diff changeset
     2
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
decde35d5139 8004476: XSLT Extension Functions Don't Work in WebStart
joehw
parents:
diff changeset
     3
                xmlns:str="http://exslt.org/strings"
decde35d5139 8004476: XSLT Extension Functions Don't Work in WebStart
joehw
parents:
diff changeset
     4
                xmlns:xalan="http://xml.apache.org/xalan"
decde35d5139 8004476: XSLT Extension Functions Don't Work in WebStart
joehw
parents:
diff changeset
     5
                version="1.0">
decde35d5139 8004476: XSLT Extension Functions Don't Work in WebStart
joehw
parents:
diff changeset
     6
<xsl:template match="a">
decde35d5139 8004476: XSLT Extension Functions Don't Work in WebStart
joehw
parents:
diff changeset
     7
   <xsl:apply-templates />
decde35d5139 8004476: XSLT Extension Functions Don't Work in WebStart
joehw
parents:
diff changeset
     8
</xsl:template>
decde35d5139 8004476: XSLT Extension Functions Don't Work in WebStart
joehw
parents:
diff changeset
     9
<xsl:template match="//a/c">
decde35d5139 8004476: XSLT Extension Functions Don't Work in WebStart
joehw
parents:
diff changeset
    10
   <xsl:value-of select="." />
decde35d5139 8004476: XSLT Extension Functions Don't Work in WebStart
joehw
parents:
diff changeset
    11
 -
decde35d5139 8004476: XSLT Extension Functions Don't Work in WebStart
joehw
parents:
diff changeset
    12
      <xsl:value-of select="str:tokenize(string(.), ' ')" />
decde35d5139 8004476: XSLT Extension Functions Don't Work in WebStart
joehw
parents:
diff changeset
    13
   <xsl:value-of select="str:tokenize(string(.), '')" />
decde35d5139 8004476: XSLT Extension Functions Don't Work in WebStart
joehw
parents:
diff changeset
    14
   <xsl:for-each select="str:tokenize(string(.), ' ')">
decde35d5139 8004476: XSLT Extension Functions Don't Work in WebStart
joehw
parents:
diff changeset
    15
      <xsl:value-of select="." />
decde35d5139 8004476: XSLT Extension Functions Don't Work in WebStart
joehw
parents:
diff changeset
    16
   </xsl:for-each>
decde35d5139 8004476: XSLT Extension Functions Don't Work in WebStart
joehw
parents:
diff changeset
    17
   <xsl:apply-templates select="*" />
decde35d5139 8004476: XSLT Extension Functions Don't Work in WebStart
joehw
parents:
diff changeset
    18
</xsl:template>
decde35d5139 8004476: XSLT Extension Functions Don't Work in WebStart
joehw
parents:
diff changeset
    19
<xsl:template match="//a/b">
decde35d5139 8004476: XSLT Extension Functions Don't Work in WebStart
joehw
parents:
diff changeset
    20
   <xsl:value-of select="." />
decde35d5139 8004476: XSLT Extension Functions Don't Work in WebStart
joehw
parents:
diff changeset
    21
 -
decde35d5139 8004476: XSLT Extension Functions Don't Work in WebStart
joehw
parents:
diff changeset
    22
      <xsl:value-of select="xalan:tokenize(string(.), ' ')" />
decde35d5139 8004476: XSLT Extension Functions Don't Work in WebStart
joehw
parents:
diff changeset
    23
   <xsl:value-of select="xalan:tokenize(string(.), '')" />
decde35d5139 8004476: XSLT Extension Functions Don't Work in WebStart
joehw
parents:
diff changeset
    24
   <xsl:for-each select="xalan:tokenize(string(.), ' ')">
decde35d5139 8004476: XSLT Extension Functions Don't Work in WebStart
joehw
parents:
diff changeset
    25
      <xsl:value-of select="." />
decde35d5139 8004476: XSLT Extension Functions Don't Work in WebStart
joehw
parents:
diff changeset
    26
   </xsl:for-each>
decde35d5139 8004476: XSLT Extension Functions Don't Work in WebStart
joehw
parents:
diff changeset
    27
   <xsl:apply-templates select="*" />
decde35d5139 8004476: XSLT Extension Functions Don't Work in WebStart
joehw
parents:
diff changeset
    28
</xsl:template>
decde35d5139 8004476: XSLT Extension Functions Don't Work in WebStart
joehw
parents:
diff changeset
    29
decde35d5139 8004476: XSLT Extension Functions Don't Work in WebStart
joehw
parents:
diff changeset
    30
</xsl:stylesheet>