xsl-list
[Top] [All Lists]

RE: [xsl] upgrading to XSLT 2 was: string token removal

2006-08-09 13:04:04
Hi. I was using saxon 6.5.3, which I undstand to be XSLT 1.0, so I installed
saxon8, and updated my classpath to the new saxon8.jar..

I'm getting the error:
Exception in thread "main" java.lang.NoClassDefFoundError:
com/icl/saxon/StyleSheet

Is there anyone out there that could help me on this? I tried looking on the
web without much success.

Is there a specific version of Java I need? I have 1.4.0_8

Thanks for your quick response and  help David!

LN

-----Original Message-----
From: David Carlisle [mailto:davidc(_at_)nag(_dot_)co(_dot_)uk]
Sent: Wednesday, August 09, 2006 10:55 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] string token removal



Assuming that "year" is any string of 
space, four digits, comma
and you want to replace them by a comma
then in xslt2 you can go
<xsl:value-of select="replace(.,' [0-9][0-9][0-9][0-9],',',')"/>
in xslt1 you'd have to try a lot harder unless you have acces sto an
extension function with regular expression support, which some xslt
systems do have.

David

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--