Project

Profile

Help

Exception when using tokenize

Added by Anonymous about 20 years ago

Legacy ID: #2848586 Legacy Poster: Daniel Frey (danielfrey)

Hello I get an exception when I use the tokenize function in my stylesheet: 001 <?xml version="1.0"?> 002 <xsl:stylesheet version="1.1" 003 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 004 xmlns:u="uri://bw.ubs.com/map"> 005 <xsl:output indent="yes"/> 006 <xsl:param name="files" select="''"/> 007 <xsl:template match="/"> 008 <Service> 009 <xsl:for-each select="tokenize($files,'\s+')"> 010 <xsl:copy-of select="document(.)/u:Service"/> 011 </xsl:for-each> 012 </Service> 013 </xsl:template> 014 </xsl:stylesheet> But line 009 throws a ClassCastException. java.lang.RuntimeException: net.sf.saxon.value.StringValue java.lang.ClassCastException: net.sf.saxon.value.StringValue at com.exln.stylus.CSaxon8Driver.startCurrentItem(CSaxon8Driver.java:1100) at net.sf.saxon.instruct.ForEach.processLeavingTail(ForEach.java:125) at net.sf.saxon.instruct.Instruction.process(Instruction.java:91) at net.sf.saxon.instruct.TraceWrapper.processLeavingTail(TraceWrapper.java: 79) at net.sf.saxon.instruct.Instruction.process(Instruction.java:91) at net.sf.saxon.instruct.InstructionWithChildren.processChildren(Instructio nWithChildren.java:158) at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.j ava:122) at net.sf.saxon.instruct.Instruction.process(Instruction.java:91) at net.sf.saxon.instruct.TraceWrapper.processLeavingTail(TraceWrapper.java: 79) at net.sf.saxon.instruct.InstructionWithChildren.processChildrenLeavingTail (InstructionWithChildren.java:196) at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:117) at net.sf.saxon.instruct.Instruction.process(Instruction.java:91) at net.sf.saxon.instruct.TraceWrapper.processLeavingTail(TraceWrapper.java: 79) at net.sf.saxon.instruct.Template.expand(Template.java:98) at net.sf.saxon.instruct.Template.processLeavingTail(Template.java:82) at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java: 226) at net.sf.saxon.Controller.transformDocument(Controller.java:1094) at net.sf.saxon.Controller.transform(Controller.java:940) at com.exln.stylus.CSaxon8Driver.doProcessing(CSaxon8Driver.java:169) at com.exln.stylus.CProcessorDriver.process(CProcessorDriver.java:55) The parameter passed (without line breaks) is C:/DOKUME~1/DANIEL~1/LOKALE~1/Temp/test42553/workflow/work42555.2 C:/DOKUME~1/DANIEL~1/LOKALE~1/Temp/test42553/workflow/work42555.4 C:/DOKUME~1/DANIEL~1/LOKALE~1/Temp/test42553/workflow/work42555.6 How can I solve this issue? Thanks for any hints. Daniel Frey


Replies (2)

RE: Exception when using tokenize - Added by Anonymous about 20 years ago

Legacy ID: #2849712 Legacy Poster: Michael Kay (mhkay)

This is actually crashing in the Stylus Studio debugger, so I have forwarded the problem to Stylus. Michael Kay

RE: Exception when using tokenize - Added by Anonymous about 20 years ago

Legacy ID: #2849862 Legacy Poster: Michael Kay (mhkay)

It appears that Stylus are aware of this problem and they have a patch release that fixes it currently in QA. Michael Kay

    (1-2/2)

    Please register to reply