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] DocBook, XALAN and dbtimestamp PI function


Hi,
now I have this minor problem: using "test.xml" my XALAN (Xalan Java 
2.7.0) produces

Generated: 2006-03-20 H:M:S

It computes the date but not the time and writes "H:M:S". Does is 
also happen to you ?

Thanks,
Andrea.

At 19.37 16/03/2006, you wrote:
> > -----Original Message-----
> > From: Andrea Mattioli
>
> > I found that there are problems to use something like
> > <?dbtimestamp format="Y-m-d H:M:S"?>
> > with XALAN.
> >
> > This line also generates a problem with "exsl:node-set" :
> > "Timestamp processing requires an XSLT processor with support
> > for the EXSLT node-set() function."
> >
> > Probably because XALAN returns "true" testing
> > function-available('exsl:nodeSet') and "false" testing
> > function-available('exsl:node-set)
> >
> > But adding this check doesn't seem work well and I get the
> > following exception:
> >
> > .../docbook-xsl-1.69.1/common/pi.xsl; Riga #113; Colonna #95;
> > Errore XSLT (javax.xml.transform.TransformerException):
> > org.apache.xpath.objects.XBooleanStatic
> > Exception in thread "main" java.lang.RuntimeException:
> > org.apache.xpath.objects.XBooleanStatic
> >         at org.apache.xalan.xslt.Process.doExit(Process.java:1153)
> >         at org.apache.xalan.xslt.Process.main(Process.java:1126)
>
>
>Your problem seems to be related to this Xalan bug:
>http://issues.apache.org/jira/browse/XALANJ-2223.
>
>I don't know why you get that exception. Xalan works for me if I change
>common/pi.xsl so that function-available('exsl:nodeSet') is used. The
>command line is this (JDK 1.5.0):
>
>java -cp
>c:/Java/xalan-j_2_7_0/xercesImpl.jar;c:/Java/xalan-j_2_7_0/xml-apis.jar;C:/J
>ava/xalan-j_2_7_0/xalan.jar org.apache.xalan.xslt.Process -OUT test.html -IN
>xml/test.xml -XSL C:/doctypes/docbook/xsl/html/docbook.xsl
>
>And test.xml looks like this:
>
><section>
>   <title>TEST</title>
>   <para>
>     Generated: <?dbtimestamp format="Y-m-d H:M:S"?>
>   </para>
></section>
>
>/MJ
>




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