[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: Validating UBL examples with xmllint
At 2004-05-20 16:53 +0100, Pedro Alves wrote: >On Thu, May 20, 2004 at 11:37:18AM -0400, Grimley Michael J NPRI wrote: > > > > > > Altova makes their XSLT engine available at the following site: > > > > http://www.altova.com/resources_xsltengine.html > > > Linux here :) Saxon is delivered as a Java JAR file. > xsltproc does not support javascript, and as far as I can see, regexp >is part of XSLT2.0 which is not yet approved (is this correct)? Correct ... it is there but the entire spec has not been approved. > What is the correct (and fast) way for transforming, eg: 2004-05-20 in >20040520? > > I'm waiting for replace("2004-05-20","-","") :) Why wait? XSLT 1 has translate('2004-05-20','-','') already. Slightly different semantic than replace(), though, as it only works for corresponding characters in the second and third strings, it isn't looking at the second and third strings as strings, only as sets of characters. For example translate('abcdefg','bdg','BD') returns "aBcDef". XSLT and XPath questions would be better posted to the following list: http://www.mulberrytech.com/xsl/xsl-list There are a number of subscribers who would enthusiastically respond to such questions. There is also an *excellent* FAQ at: http://www.dpawson.co.uk I hope this helps. .................. Ken -- Public courses: Spring 2004 world tour of hands-on XSL instruction Next: 3-day XSLT/XPath; 2-day XSL-FO - Birmingham, UK June 14,2004 World-wide on-site corporate, govt. & user group XML/XSL training. G. Ken Holman mailto:gkholman@CraneSoftwrights.com Crane Softwrights Ltd. http://www.CraneSoftwrights.com/u/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Breast Cancer Awareness http://www.CraneSoftwrights.com/u/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]