|
Java example source code file (tokenize.xsl)
The tokenize.xsl Java example source code<?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> Other Java examples (source code examples)Here is a short list of links related to this Java tokenize.xsl source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.