This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

problem: docbook2html with xerces/xalan


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi!

i'm using cocoon (http://xml.apache.org/cocoon) to publish
xml-documents as html. i was trying to use the docbook format, but
for some reason, i am unable to get the stylesheets to work correctly
on my machine.

the versions i'm using:

docbook-xml 4.2
docbook-xsl 1.53.0 
xerces 2.0
xalan 2.3.1
jdk 1.4
operating system: windows2000

the xml-file i'm using is validated against the DTD, and still cocoon
(which uses xalan) throws an error. i tried the same with the
xslt-plugin for jedit (which uses xerces), and it also returns an
error.

specifically, jedit gives the following error:

java.lang.RuntimeException: 5 >= 1
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1111)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1139)
xslt.XSLTUtilities.saxTransform(XSLTUtilities.java:180)
xslt.XSLTUtilities.transform(XSLTUtilities.java:83)
xslt.XSLTProcessor$6.actionPerformed(XSLTProcessor.java:313)

cocoon is a bit more detailed:

FATAL_E (2002-08-09) 15:15.03:772   [core.xslt-processor]
(/cocoon/test/intro.xml) HttpProcessor[8080][4]/TraxErrorHandler:
Error in TraxTransformer:
file:/C:/Programme/ApacheTomcat4/webapps/cocoon/test/style/xsl/docbook
- -xsl-1.53.0/html/../common/common.xsl; Line 1396; Column 47; 
; SystemID:
file:/C:/Programme/ApacheTomcat4/webapps/cocoon/test/style/xsl/docbook
- -xsl-1.53.0/html/../common/common.xsl; Line#: 1396; Column#: 47
javax.xml.transform.TransformerException: 2 >= 1
	at org.apache.xpath.XPath.bool(XPath.java:411)
	at
org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:162)
	at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Tra
nsformerImpl.java:2243)
	at
org.apache.xalan.templates.ElemTemplate.execute(ElemTemplate.java:432)
	at
org.apache.xalan.templates.ElemCallTemplate.execute(ElemCallTemplate.j
ava:279)
	at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Tra
nsformerImpl.java:2243)
[...]
Caused by: java.lang.ArrayIndexOutOfBoundsException: 2 >= 1
	at java.util.Vector.elementAt(Vector.java:427)
	at
org.apache.xml.dtm.ref.DTMStringPool.indexToString(DTMStringPool.java:
128)
	at
org.apache.xml.dtm.ref.sax2dtm.SAX2DTM.getStringValue(SAX2DTM.java:125
2)
	at org.apache.xpath.objects.XRTreeFrag.str(XRTreeFrag.java:280)
	at
org.apache.xpath.functions.FuncContains.execute(FuncContains.java:86)
	at org.apache.xpath.Expression.bool(Expression.java:208)
	at org.apache.xpath.XPath.bool(XPath.java:388)
	... 33 more

i've snipped most of the stacktrace.

what could be the cause of this error? i'm really stuck, because the
error seems to occur in one of the docbook-stylesheets?

i'm sorry if this question was already covered, but i didn't find
anything in the mailing list archive or on the web.

thanks,

rick


|-
| peter riegersperger  <rick@subnet.at>
|-
| subnet
| platform for media art and experimental technologies
|-
| http://www.subnet.at/
|-
| muehlbacherhofweg 5 // 5020 salzburg // austria
|-
| fon/fax +43/662/842 897
|-
 

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.8 for non-commercial use <http://www.pgp.com>
Comment: public key available at http://home.subnet.at/rick/pgp/

iQA/AwUBPVUQMCDD9/SWDsvSEQK2TgCg6bDpelc04EGV+fgdPoNzaYtx8/kAoN+5
fX1KAQuud3mxgK4uEtXKCdx2
=S4JT
-----END PGP SIGNATURE-----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]