Subject: Re: using xt-extensions for getting a string of date From: Phil Lanch <phil@xxxxxxxxxxxxxxx> Date: Wed, 08 Mar 2000 13:19:15 +0000 |
felix@xxxxxxxxxxxxxxxxxxxxxx wrote: > > <xsl:value-of > select="date:to-string(date:new(int:parse-int("{$year}"),int:parse-int > ("{$month}",int:parse-int("{$day}"))"/> > > file:/home/felix/film1/filmneu.xsl:25: character not allowed > > which comes from the ". When I remove them I get > for the first one: > > When I remove the braces too, I get: > > new: illegal arguments i think the problem may be that you had e.g.- <xsl:variable name="year">2000</xsl:variable> -so $year is a result tree fragment (in XSLT), so XT maps it to a com.jclark.xsl.sax.ResultTreeFragment (in Java). to get a string, mapped to a java.lang.String, either (1) start with- <xsl:variable name="year" select="'2000'"/> -or (2) change $year to string($year). there also seem to be some closing brackets missing. using method (1), i think you want something like- <xsl:value-of select="date:to-string(date:new(int:parse-int($year),int:parse-int ($month),int:parse-int($day)))"/> -- cheers phil "How did you enjoy yourself with these people? Answer: very much, almost as much as I do when alone." XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: using xt-extensions for getting, felix | Thread | Re: using xt-extensions for getting, felix |
RE: exclude-result-prefixes Editors, Pawson, David | Date | RE: sql, xml & forms, Dawson, Geoff F |
Month |