[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: using xt-extensions for getting a string of date

Subject: Re: using xt-extensions for getting a string of date
From: felix@xxxxxxxxxxxxxxxxxxxxxx
Date: Wed, 8 Mar 2000 16:30:47 +0100
getting year of date string
On Wed, Mar 08, 2000 at 01:19:15PM +0000, Phil Lanch wrote:
> 
> 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)))"/>

Well actually I use 
<xsl:variable name="year" select="substring(@date,1,4)"/>
and it doesn't matter if I try the string($year), or not. Both
versions fail.

Thanks anyway.
Felix Schumacher


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.