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

RE: XSLT and Hijri Dates

Subject: RE: XSLT and Hijri Dates
From: "Paul Spencer" <xml-dev-list@xxxxxxxxxxxxxx>
Date: Tue, 16 Jun 2009 12:20:51 +0400
RE:  XSLT and Hijri Dates
Thanks Michael. I might go back to the XSLT 1.0 method of just writing a
lookup for the format I need. Unless anyone else knows of a processor that
supports Arabic in format-date. One thing I have discovered recently is that
Arabic support is pretty poor in most XSL tools. The one I am using for FO
supports the characters, but writes them left to right.

Paul

> -----Original Message-----
> From: Michael Kay [mailto:mike@xxxxxxxxxxxx]
> Sent: Tuesday, June 16, 2009 11:59 AM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE:  XSLT and Hijri Dates
>
> > I use XML Spy, which does not seem to support the following
> > to format a date as Hijri:
> >
> > <xsl:value-of
> > select="format-date(pp:DateOfBirthHijri,'[D&#x0661;] [Mn]
> > [Y&#x0661;]', 'ar', 'AH')"/>
>
> The format-date() function must have either 2 or 5 arguments. You seem
> to
> have 4. You've left out the last one, which is country (it can be set
> to
> "()").
> >
> > Has anyone else tried this? Does Saxon or any other processor
> > support this?
>
> Saxon has no support for non-Gregorian calendars. You can write a
> localization module for the "ar" language, but not for the "AH"
> calendar.
> >
> > Incidentally, in the XSLT 2.0 specification, the format for
> > this is shown as
> >
> > format-date( $value  as xs:date?, $picture  as xs:string, $language
> >  as xs:string?, $calendar  as xs:string?, $country
> >  as xs:string?) as xs:string?
> >
> > But one of the examples is
> >
> > format-date($d, "[D&#x0661;] [Mn] [Y&#x0661;]", "Islamic",
> > "ar", "AH", ())
>
> This is fixed in erratum XT.E23:
>
> http://www.w3.org/XML/2007/qt-errata/xslt-errata.html#E23
>
> Regards,
>
> Michael Kay
> http://www.saxonica.com/
> http://twitter.com/michaelhkay

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.