discuss: Stylesheet problem: undeclared name prefix XML parser error
Subject:
Stylesheet problem: undeclared name prefix XML parser error
From:
"=?iso-8859-1?q?A.=20Schirmacher?=" ####@####.####
Date:
28 Mar 2003 08:09:27 -0000
Message-Id: <20030328080924.54470.qmail@web9608.mail.yahoo.com>
I'm working on a a translated version of a howto, and
I have difficulties using the LDP stylesheets. The
document transforms without error when using
<xsl:import href="../xsl/html/docbook.xsl"/> instead
of the two ldp import statements, so I believe the
source xml file itself is correct.
Please give me a hint.
Here's the error message:
Error reported by XML parser: undeclared name prefix
in: doc:type
URL:
file:/c:/docbook/stylesheet/ldp-html-common.xsl
Line: 71
Column: 52
Error reported by XML parser: undeclared name prefix
in: doc:type
URL:
file:/c:/docbook/stylesheet/ldp-html-common.xsl
Line: 77
Column: 46
and so on.
My command line:
java.exe com.icl.saxon.StyleSheet -o mydoc.html
mydoc.xml
c:\docbook\stylesheet\document_mydoc_html.xsl
The stylesheets I am using:
docbook-xsl-1.60.1.tar.gz
ldp-xsl.zip
Here's the document_mydoc_html.xsl file, which is
actually ldp-html.xsl, with "../xsl" pointing to
docbook-xsl-1.60.1:
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version='1.0'
xmlns="http://www.w3.org/TR/xhtml1/transitional"
exclude-result-prefixes="#default">
<!-- $Id: ldp-html.xsl,v 1.2 2001/09/12 16:20:02 dyork
Exp $ -->
<!-- This stylesheet calls Norman Walsh's
'docbook.xsl' stylesheet
and therefore generates a SINGLE HTML FILE as
output. -->
<!-- Note the the *order* of the import statements
below is important and
should not be changed. -->
<!-- Change this to the path to where you have
installed Norman
Walsh's XSL stylesheets. -->
<xsl:import href="../xsl/html/docbook.xsl"/>
<!-- Imports the common LDP customization layer. -->
<xsl:import href="ldp-html-common.xsl"/>
<!-- If there was some reason to override
'ldp-html-common.xsl' or to
perform any other customizations that affect
*only* the generation
of a single HTML file, those templates or
parameters could be
entered here. -->
</xsl:stylesheet>
__________________________________________________________________
Gesendet von Yahoo! Mail - http://mail.yahoo.de
Bis zu 100 MB Speicher bei http://premiummail.yahoo.de