Marty,
Thanks. I am not sure that I understand your response. I should probably
have made clear that the I have all the mentioned XSL attributes and
elements in my stylesheet but did not include those since they didn't seem
to be the problem. I believe that it is legal to use a DOCTYPE definition
at the top of the stylesheet. It has worked with prior versions of Xalan.
Removing it from the stylesheet while using Xalan 2.5.0 removes the
problem.
Here is the initial part of my stylesheet
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp " ">
<!ENTITY mdash "—">
]>
<xsl:stylesheet version="1.0" xmlns:xsl
="http://www.w3.org/1999/XSL/Transform"
xmlns:visit
="http://www.dictaphone.com/HSG/CLU/NLPR/BO/visit/2003-04-10"
>
<xsl:output
method="html"
encoding="UTF-8"
indent="yes"
/>
thanks,
Cam
p.s. the link below is old. Did you mean
http://www.zvon.org/xxl/XSLTutorial/Output/example62_ch14.html
"Martin
Gainty" To: <[EMAIL PROTECTED]>, <[EMAIL
PROTECTED]>
<[EMAIL PROTECTED] cc:
il.com> Subject: Re: Error using DOCTYPE
in a stylesheet
05/16/2003
11:33 AM
The XSL you are using is missing required elements,attributes take a look
at
http://www.zvon.org/HTMLonly/XSLTutorial/Examples/Example62/exampleInOne.htm
l
to view examples of required and optional XSL attributes, elements as well
as examples of XML, required XSL and finally output HTML
Hth,
Martin
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 16, 2003 11:14 AM
Subject: Error using DOCTYPE in a stylesheet
> Hi,
>
> I am using Xalan 2.5.0 and am having problems using DOCTYPE in a
> stylesheet.
>
>
> (top of the stylesheet)
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <!DOCTYPE xsl:stylesheet [
> <!ENTITY nbsp " ">
> <!ENTITY mdash "—">
> ]>
> <xsl:stylesheet version="1.0" xmlns:xsl="
> http://www.w3.org/1999/XSL/Transform" >
>
>
> And when I try to do a transform, I get the following error messages:
>
>
> [Error] visitView.xslt:31:2: Element type "xsl:stylesheet" must be
> declared.
> [Error] visitView.xslt:36:3: Element type "xsl:output" must be declared.
> [Error] visitView.xslt:38:32: Element type "xsl:strip-space" must be
> declared.
> [Error] visitView.xslt:42:28: Element type "xsl:param" must be declared.
> [Error] visitView.xslt:44:73: Element type "xsl:param" must be declared.
> [Error] visitView.xslt:46:31: Element type "xsl:param" must be declared.
> [Error] visitView.xslt:47:30: Element type "xsl:param" must be declared.
> [Error] visitView.xslt:48:33: Element type "xsl:param" must be declared.
> [Error] visitView.xslt:49:31: Element type "xsl:param" must be declared.
> [Error] visitView.xslt:50:29: Element type "xsl:param" must be declared.
> [Error] visitView.xslt:56:35: Element type "xsl:variable" must be
declared.
> [Error] visitView.xslt:57:31: Element type "xsl:variable" must be
declared.
> [Error] visitView.xslt:58:30: Element type "xsl:variable" must be
declared.
> [Error] visitView.xslt:58:40: Element type "xsl:text" must be declared.
> [Error] visitView.xslt:62:32: Element type "xsl:variable" must be
declared.
> [Error] visitView.xslt:62:71: Element type "xsl:value-of" must be
declared.
> [Error] visitView.xslt:63:33: Element type "xsl:variable" must be
declared.
> [Error] visitView.xslt:63:73: Element type "xsl:value-of" must be
declared.
> [Error] visitView.xslt:68:25: Element type "xsl:template" must be
declared.
> .
> .
> .
> <snipped>
>
> Is this a known problem? I was using Xalan 2.4.1 and had no problems.
>
> Cam
>
>
>
>
****************************************************************************
****************
> This message, together with any attachments, is intended only for
the
> use of the individual or entity to which it is addressed. It may contain
> information that is confidential and prohibited from disclosure. If you
> are not the intended recipient, you are hereby notified that any
> dissemination or copying of this message or any attachment is strictly
> prohibited. If you have received this message in error, please notify the
> original sender immediately by telephone or by return e-mail and delete
> this message along with any attachments, from your computer.Thank you.
>
>
****************************************************************************
****************
>
>