If you are running this from the command line, please include the -edump
switch.  Otherwise, please provide a stack trace from where you catch
the error and we'll have a look.

Gary

zalan zalan wrote:
> 
> Hello,
> 
>    I have run into a little problem.....I'm pretty sure the solution is
> simple....here is the scoop:
> 
> OS: Win NT
> Xalan build: xalan-j_2_2_D6
> Problem: Extension...getting error using the "tokenize" extension
> error code: XSLT Error (javax.xml.transform.TransformerException):
> Description:
> JVM jdk1.3.0_02
> Classpath:(in this order)
> %CLASSPATH%;D:\jdk1.3.0_02\lib\tools.jar;
> D:\xalan-j_2_2_D6\bin\xalan.jar;
> D:\xalan-j_2_2_D6\bin\xerces.jar;
> D:\jazz-1.2\build\lib\parser.jar;
> D:\jazz-1.2\build\lib\jaxp.jar;
> D:\jazz-1.2\build\jazz.jar;
> D:\jazz-1.2\build\jazzx.jar;
> D:\jazz-1.2\build\hinote.jar;
> 
> Here is the code:
> ##### (XSLT Stylesheet) ###############
> <?startSampleFile ?>
> 
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
>      xmlns:xalan="http://xml.apache.org/xalan";
>      exclude-result-prefixes="xalan"
>      version="1.0">
> <xsl:output method="xml" omit-xml-declaration="yes"/>
> 
>   <xsl:template match="employees">
>     <table>
>       <xsl:apply-templates/>
>     </table>
>   </xsl:template>
> 
>   <xsl:template match="employee">
>     <row>
>       <xsl:choose>
>         <xsl:when test="function-available('xalan:tokenize')">
>           <xsl:for-each select="xalan:tokenize(.,',')">
>             <entry><xsl:value-of select="."/></entry>
>           </xsl:for-each>
>         </xsl:when>
>         <xsl:otherwise>
>           <entry><xsl:value-of select="."/></entry>
>         </xsl:otherwise>
>       </xsl:choose>
>     </row>
>   </xsl:template>
> 
> </xsl:stylesheet>
> <?endSampleFile ?>
> 
> ########### ( xml document that I am using)###########
> 
> <employees>
> <employee>Herbert,Johnny,09/01/1998,95000</employee>
> <employee>Hill,Graham,08/20/2000,89000</employee>
> <employee>Hill,Phil,04/23/1999/100000</employee>
> <employee>Moss,Sterling,10/16/2000,97000</employee>
> </employees>
> 
> If anyone can help .....I am just starting to sink my teeth in Xalan...and
> it works great..except I can not figure out the solution to this problem....
> 
> Thank you to anyone who is willing to be a teacher
> 
> We all learn by sharing what we know
> Robert A. DiBlasi

Reply via email to