I want to "normalize" some dates in my DocBook.

Ie I have dates written in a number of different formats (eg 3/12/2012, 3 Dec 
2012, 3 December 2012) which I'd like to normalize into one.

This is sometimes just to achieve consistency in the output documents - ie to 
make them the same as my existing ones, written in Word, despite their starting 
out in a number of different formats.  Though in one particular case, epub3, it 
is to get the dates into the format required by the spec.  Epub requires dates 
in a particular format, and the existing eupb3 stylesheets just pass dates 
through as found in the source (and I have known it to leave duplicates, though 
I may have tweaked one of my source files to fix this as it isn't happening 
with my test file right now).



I'm expecting to do this by using a standard function to parse the dates as 
strings, then to use a formatting function to get the resultant date/time into 
a chosen format.

I can't see an XSLT 1 function to do this but I think there's one in EXSLT.

Can anyone advise on the best option to use.  Or direct me to any other options 
available.





Regards,

Richard.












[Blue line]
Richard Kerry
BNCS Engineer
T: +44 (0)20 82259063
M: +44 (0)7812 325518
Room EBX 301, BBC Television Centre, Wood Lane, London, W12 7RJ
[email protected]<https://webmail.siemens-it-solutions.com/owa/redir.aspx?C=9fb20d019e3e4cb99344d708709a3177&URL=mailto%3arichard.kerry%40atos.net>
uk.atos.net<https://webmail.siemens-it-solutions.com/owa/redir.aspx?C=9fb20d019e3e4cb99344d708709a3177&URL=http%3a%2f%2fuk.atos.net%2fen-uk%2f>
[Atos logo]
This e-mail and the documents attached are confidential and intended solely for 
the addressee; it may also be privileged. If you receive this e-mail in error, 
please notify the sender immediately and destroy it. As its integrity cannot be 
secured on the Internet, the Atos group liability cannot be triggered for the 
message content. Although the sender endeavours to maintain a computer 
virus-free network, the sender does not warrant that this transmission is 
virus-free and will not be liable for any damages resulting from any virus 
transmitted.

Attachment: attachment.ashx
Description: attachment.ashx

Attachment: attachment.ashx
Description: attachment.ashx

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to