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

Re: Understanding XSLT Questions

Subject: Re: Understanding XSLT Questions
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 13 Dec 2004 15:51:33 GMT
using saxon with java
> But, in the real world, dates are in YYYY-MM-DDTHH:MM:SS format, not
> <year>YYYY</year><month>mm</month>.

In my real world dates are more often in "December 25th" format.
YYYY-MM-DDTHH:MM:SS format is fairly easy to deal wth in XSLT 1
as it's highly regularL you just need a few substring calls.
Given a template library that handles this the end user shouldn't really
miss any functionality here.
or you can use vendor extensions for dates, see EXSLT  date functions
for example

http://www.exslt.org/date

> If we don't have general purpose string handling functions then we must at
> least have functions that can operate on known data-types (date, list, etc).
> But these are also missing in XSLT 1.0.

There are functions (id(), unparsed-entity-uri()) to handle the  the
built in datatypes of XML 1.0. XML 1.0 doesn't include a built in date
datatype. So you have to define "known".

David



________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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.