xsl-list
[Top] [All Lists]

[xsl] XSLT and Hijri Dates

2009-06-16 03:19:47
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')"/>

Has anyone else tried this? Does Saxon or any other processor support this?

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", ())

which appears to be different. The parameter “Islamic” does not seem to fit.
This didn’t work in XML Spy either.

Regards

Paul




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>