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. > > **************************************************************************** **************** > >
