OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: RE: [docbook-apps] dbtimestamp broken from 1.68.x to 1.69.1?


> -----Original Message-----
> From: Jeroen Ruigrok/asmodai 
> 
>   <para>This document was generated on
>       <?dbtimestamp format="Y-m-d H:M"?>.</para>
> 
> And with 1.68.1 it generated as:
> 
> <p>This document was generated on 2005-09-08 01:09.</p>
> 
> With 1.69.1 it generates:
> 
> <p>This document was generated on 2005-09-08&nbsp;H:M.</p>


The problem is the use of colon as a delimiter. In 1.69.0, changes to the
parsing of format strings were introduced. A consequence is that only the
following characters are recognized as delimiters: 

<space> <tab> <CR> <LF> , . / - ( ) [ ] 

In the template with name="datetime.format" in pi.xsl, the list of
delimiters is a string in a with-param element (&#xa0; represents all
whitespace characters):  

  <xsl:with-param name="delimiters" select="'&#xa0;,./-()[]'"/> 

Maybe there is a good reason for colon not being in that list. Maybe it is
just an oversight. Anyway, when I added it, like this: 

  <xsl:with-param name="delimiters" select="'&#xa0;,./-()[]:'"/> ,

the dbtimestamp PI worked as expected again.

/MJ




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]