cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Stunkat" <er...@poet.de>
Subject RE: C2, DocBook - TransformerException in document()
Date Mon, 12 Nov 2001 13:56:40 GMT
Hi

what I did:

change the includes in docbook.xsl to the same folder:

<xsl:include href="../VERSION"/>
<xsl:include href="param.xsl"/>
<xsl:include href="lib.xsl"/>
<xsl:include href="l10n.xsl"/>
<xsl:include href="common.xsl"/>
<xsl:include href="labels.xsl"/>
<xsl:include href="titles.xsl"/>
<xsl:include href="subtitles.xsl"/>
<xsl:include href="gentext.xsl"/>
<xsl:include href="autotoc.xsl"/>

and copy the files into the same folder. Works fine.

erik stunkat
  -----Original Message-----
  From: Andreas Hartmann [mailto:cocoon@dinobase.de]
  Sent: Monday, November 12, 2001 2:41 PM
  To: cocoon-users@xml.apache.org
  Subject: C2, DocBook - TransformerException in document()


  Hi Cocoon-Community!

  I use
  - Cocoon2
  - DocBook 4.1.2
  - Norm Walsh's XSL Stylesheets 1.46 (CVS Version from 2001-11-11)

  When I try to transform a simple article, I get the following message:

  Error in TraxTransformer:
file://intranet3/stylesheets/docbook-xsl-1.46-cvs/html/../common/l10n.xsl;
Line 79; Column 15;
  ; SystemID:
file://intranet3/stylesheets/docbook-xsl-1.46-cvs/html/../common/l10n.xsl;
Line#: 79; Column#: 15
  javax.xml.transform.TransformerException: Can not load requested doc:
intranet3
   at org.apache.xalan.templates.FuncDocument.warn(FuncDocument.java:462)
  [...]

  /intranet3 is my Cocoon base directory.
  The error seems to occur when the stylesheet tries to receive the current
XSL document with document():

  [l19n.xsl line 19] <xsl:param name="l10n.xml"
select="document('../common/l10n.xml')"/>
  [l19n.xsl line 79] <xsl:choose>
  [l19n.xsl line 80]   <xsl:when
test="$l10n.xml/l:i18n/l:l10n[@language=$adjusted.language]">

  Here's my sitemap:

  [snip]
        <map:match pattern="projekte/intranet.html">
          <map:generate src="documents/projects/intranet/intranet.xml"/>
          <map:transform type="xslt"
src="stylesheets/documents/docbook-import.xsl"/>
          <map:serialize/>
        </map:match>
  [/snip]

  I use docbook-import.xsl to import docbook.xsl:

  <xsl:import
href="file:///intranet3/stylesheets/docbook-xsl-1.46-cvs/html/docbook.xsl"/>

  Can anyone help me?

  Thanks in advance!

  Greetings,
  Andreas


Mime
View raw message