[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [docbook-apps] DocBook, XALAN and dbtimestamp PI function
> -----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]