You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Morten Primdahl <mo...@it-c.dk> on 2002/05/18 22:56:58 UTC
Element type "must be declared" error
Hi.
* DTD:
<!ELEMENT element ANY>
* XML:
<!DOCTYPE element SYSTEM "element.dtd">
<element>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:apply-templates select="."/>
</xsl:stylesheet>
</element>
* Validate:
Error: URI=file:/home/morten/it-c/thesis/dev/validate/simple/element.xml
Line=3: Element type "xsl:stylesheet" must be declared.
Error: URI=file:/home/morten/it-c/thesis/dev/validate/simple/element.xml
Line=4: Element type "xsl:apply-templates" must be declared.
Am I mistaken when I believe that ANY should allow any kind of
well-formed XML?
Thanks,
Morten
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org
Re: Element type "must be declared" error
Posted by Morten Primdahl <mo...@it-c.dk>.
Andy Clark wrote:
> Morten Primdahl wrote:
>
>>Am I mistaken when I believe that ANY should allow any kind of
>>well-formed XML?
>
>
> The "ANY" model in a DTD allows any *declared* element content,
> not *any* element content.
>
Ah. I see, so basically I need to include the entire DTD for
XSLT (or at least the elements I use from that DTD).
Thank you,
Morten
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org
Re: Element type "must be declared" error
Posted by Andy Clark <an...@apache.org>.
Morten Primdahl wrote:
> Am I mistaken when I believe that ANY should allow any kind of
> well-formed XML?
The "ANY" model in a DTD allows any *declared* element content,
not *any* element content.
--
Andy Clark * andyc@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org