This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Problem using profiling stylesheets with xsltproc
- From: John Himpel <jwhimpel at tseinc dot com>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Sat, 30 Nov 2002 20:25:11 -0600
- Subject: DOCBOOK-APPS: Problem using profiling stylesheets with xsltproc
Hi,
When I use the following command:
xsltproc \
--catalogs \
--nonet \
--xinclude \
--output ./html/${1}.html \
--stringparam profile.condition FullRel \
file:///usr/share/sgml/docbook/xsl-stylesheets/html/profile-docbook.xsl
\
${1}.xml
on the following file:
<?xml version='1.0' encoding='utf-8' ?>
<!DOCTYPE article PUBLIC '-//OASIS//DTD DocBook XML V4.2//EN'
'http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd' >
<article>
<title>Title</title>
<section condition="FullRel">
<title>FullRel</title>
<para>FullRel para</para>
</section>
<section condition="UpdateRel">
<title>UpdateRel</title>
<para>UpdateRel para</para>
</section>
</article>
I get the following output:
runtime error: file
file:///usr/share/sgml/docbook/xsl-stylesheets/html/profile-docbook.xsl
line 219 element apply-templates
xsltApplyOneTemplate: loop found ???
try increasing xsltMaxDepth (--maxdepth)
Templates:
#0 name * name head.keywords.content
#1 name * name head.keywords.content
#2 name * name head.keywords.content
#3 name * name head.keywords.content
#4 name * name head.keywords.content
#5 name * name head.keywords.content
#6 name * name head.keywords.content
#7 name * name head.keywords.content
#8 name * name head.keywords.content
#9 name * name head.keywords.content
#10 name * name head.keywords.content
#11 name * name head.keywords.content
#12 name * name head.keywords.content
#13 name * name head.keywords.content
#14 name * name head.keywords.content
Variables:
Using the following versions:
LIBXML2 2.4.23 (libxml2-2.4.23-1 from RedHat)
LIBXSLT 1.0.19 (libxslt-1.0.19-1 from RedHat)
DTD 4.2.1 (docbook-dtds-1.0.14 from RedHat)
XSL Stylesheets 1.57.0 (docbook-style-xsl-1.57.0-2 from RedHat)
I don't know if:
a) I'm doing something wrong
b) The stylesheets have a problem
c) XSLTPROC has a problem
Please advise.
Thanks
John