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

RE: html: datetime e bit type

Subject: RE: html: datetime e bit type
From: "Andrea Racca" <racca@xxxxxxxxx>
Date: Mon, 26 Apr 2004 15:39:19 +0200
xsl datetime
Thank'you very match..
The last question..
It's possibile to create directly a xls file as output od xml query template?
Hi

andrea


> Hi,
> 
> > i create a xml template to query a sql database. I like to 
> > view results in html format and i create a xsl file to do this.
> > I like to view datetime field in a better format that default 
> > in my html table.. How can I change the output format of 
> > datetime field? 
> 
> See the FAQ <http://www.dpawson.co.uk/xsl/sect2/dates.html> - you need to use the XPath String functions <http://www.w3.org/TR/xpath.html#section-String-Functions> to parse the date string and format it. There are extensions <http://exslt.org/date/index.html> but they are not supported by all XSLT processors
> 
> > More: I like to view "TRUE" or "FALSE" instead of 1 or 0 of 
> > bit field. It's Possibile? 
> 
> if you have e.g.
> 
>   <foo>1</foo>
> 
> Then use
> 
>   <xsl:template match="value">
>     <xsl:choose>
>       <xsl:when test=". = 1">TRUE</xsl:when>
>       <xsl:otherwise>FALSE</xsl:otherwise>
>     </xsl:choose>
>   <xsl:template>
> 
> or
> 
>   <xsl:value-of select="boolean(number(.))"/>
> 
> if lowercase text is acceptable.
> 
> Cheers,
> 
> Jarno - De/Vision: Endlose Traume

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.