Title: Message
 
Its trying to tell you that your source data doesn't validate against your dtd.  You can either remove the doctype declaration at the top of your xml (so you will be dealing with 'well-formed xml' rather than 'valid xml') or turn validation off on xalan.  Or of course, re-author your xml to satisfy the dtd :)
 
cheers
andrew 
-----Original Message-----
From: Dima Gutzeit [mailto:[EMAIL PROTECTED]
Sent: 22 December 2003 12:24
To: [EMAIL PROTECTED]
Subject: "Element must be declared" issue

Hi ,
 
I am using Xerces / Xalan to transform XML pages to HTML.
After installing the latest version of Xalan and Xerces I am getting the following :
 
Error] :301:7: Element type "tr" must be declared.
[Error] :301:24: Element type "td" must be declared.
[Error] :302:60: Element type "xsl:value-of" must be declared.
[Error] :305:51: Element type "xsl:for-each" must be declared.
[Error] :306:7: Element type "tr" must be declared.
[Error] :306:24: Element type "td" must be declared.
[Error] :307:60: Element type "xsl:value-of" must be declared.
 
Lost of it :-)
 
This is hapenning after executing the following code :
 
TransformerFactory tFactory = TransformerFactory.newInstance();
StreamSource xslSource;
.
.
.
xslSource = new StreamSource(fis);
templates = tFactory.newTemplates(xslSource);
 
Does anyone have any ideas ? BTW , it was not hapenning on earlier versions of Xerces/Xalan ....
 
Every XSL file is starting with :
 
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
 
 
Thanks in advance.
 

Regards ,
Dima Gutzeit
.
---------------------------------
MailVision LTD.
R&D Team.
Phone: 972 - 4 - 8508020
Fax: 972 - 3 - 9285149
http://www.mailvision.com


Reply via email to