xsl-list
[Top] [All Lists]

Re: [xsl] Entity references

2013-01-04 08:57:17
Ok makes sense.

What you are actually saying is that there is no way you can force
this to be an error, unless having a processor that would be willing
to do so?

So an option could be to have something like a catalog that could
supply a small DTD to validate against. Like containing a root element
and allow any (mixed) content.

Michel

On Fri, Jan 4, 2013 at 3:34 PM, David Carlisle 
<davidc(_at_)nag(_dot_)co(_dot_)uk> wrote:
On 04/01/2013 14:00, Michel Hendriksen wrote:

When there is a reasoble DTD however, we
don't get any error messages. Can anyone explain this?



In a document without any DTD, a document with only an internal DTD subset
which contains no parameter entity references, or a document with "
standalone='yes'

then an entity reference means that the document is not well formed and so
it is a "fatal error" from which an xml parser is not allowed to recover,

if there is an external  dtd subset that has not been read then a reference
is a validity error which means that a non validating parser id not obliged
to report it.


David



________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs.
________________________________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>