You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Andreas Hartmann <co...@dinobase.de> on 2001/11/12 14:41:27 UTC
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
RE: C2, DocBook - TransformerException in document()
Posted by Andreas Hartmann <co...@dinobase.de>.
On 12.11.2001 at 15:29 Andreas Hartmann wrote:
Hi Erik,
On 12.11.2001 at 14:56 Erik Stunkat wrote:
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
Thanks - but I'm sorry, it didn't solve my problem ...
Greetings,
Andreas
OK, downloading C2RC2 solved the problem.
I was using C2B2 before.
But the CVS Version of Norman's XSL Stylesheets is a little buggy,
so I had to do some little hacks.
Greetings,
Andreas
-----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
RE: C2, DocBook - TransformerException in document()
Posted by Andreas Hartmann <co...@dinobase.de>.
Hi Erik,
On 12.11.2001 at 14:56 Erik Stunkat wrote:
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
Thanks - but I'm sorry, it didn't solve my problem ...
Greetings,
Andreas
-----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
RE: C2, DocBook - TransformerException in document()
Posted by Erik Stunkat <er...@poet.de>.
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