This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
"expected markup declaration" error
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] "expected markup declaration" error
- From: "Dave Gomboc" <dave at cs dot ualberta dot ca>
- Date: Wed, 14 Feb 2001 18:35:14 -0700
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi there,
I have the files:
filename: character_entities.dtd
================================
<!ENTITY Aacute "Á" >
<!ENTITY Acirc "Â" >
<!ENTITY Auml "Ä" >
.
.
.
filename: events.sgml
=====================
<chronevent ...>...</chronevent>
<chronevent ...>...</chronevent>
<chronevent ...>...</chronevent>
.
.
.
filename: wrap_events.xml
=========================
<?xml version='1.0' encoding='ISO-8859-1'?>
<?xml-stylesheet type='text/xsl' href='render_events.xsl'?>
<!DOCTYPE HMM [
<!ENTITY % character_entities SYSTEM "character_entities.dtd">
%character_entities;
<!ENTITY events SYSTEM "events.sgml">
]>
<root>
&events;
</root>
filename: render_events.xsl
===========================
<xsl:transform version='1.0'
xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
<xsl:template match='/'>
<html></html>
</xsl:template>
</xsl:transform>
IE 5.5 + MSXSL 3.0 accepts a double-click on "wrap_events.xml", performs
the transform, and of course, produces squat for output, but it doesn't
error. However, when I run
java com.icl.saxon.StyleSheet -a wrap_events.xml > output.html
I get the error
Failed while looking for xml-stylesheet PI
expected markup declaration
At line 8 in file:/.../wrap_events.xml
TRaX Transform Exception
I have also tried
java com.icl.saxon.StyleSheet wrap_events.xml render_events.xsl >
output.html
which gives the error
Fatal error reported by XML parser: expected markup declaration
URL: file:/.../wrap_events.xml
Line: 8
Column: 8
Error
expected markup declaration
Transformation failed
I don't understand what I am doing incorrectly. Haven't I provided a
markup declaration as part of wrap_events.xml?
Thank you for your time,
Dave Gomboc
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list