Re: EXSLT format-date

Tomas Studva <[email protected]>
Newsgroups gmane.text.xml.xalan.java.user
Message-ID <[email protected]>
Thanks, it helped me. But I am disappointed with such behaviour, because i
have xml with such dates. I am using castor for java objects to xml
marshalling, and would expect that such tools are done to be used out of
box. I think it is correct that castor outputs miliseconds (because of
generality), bad is that exslt is not prepared for it. 
I am going to switch to date formatting in Java. How bad.

Thankfully Tomas Studva
 

Christoffer Dam Bruun wrote:
> 
> Hi Tomas,
> 
> If I remove the ".625" part of the date then I get the correct result.
> 
> On http://exslt.org/date/functions/format-date/index.html it shows that 
> the ".millis" are not
> one of the permitted formats.
> 
> Best regards
> Christoffer Bruun
> 
> On 12-08-2009 13:01, Tomas Studva wrote:
>> <xsl:variable name="datePattern">dd.MM.yyyy. 'o' HH:mm</xsl:variable>
>> <xsl:value-of select="date:format-date('2009-08-12T12:51:51.625+02:00',
>> $datePattern)" />
>>    
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/EXSLT-format-date-tp24934159p24937902.html
Sent from the Xalan - J - Users mailing list archive at Nabble.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.