Re: [xsl] Without DTD Mapping

Subject: Re: [xsl] Without DTD Mapping
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 26 Aug 2008 11:40:35 +0100
> Worth pointing out that the document is strictly non-conformant,
> though a worthwhile transform option since it comes up so often.

Not sure what is the difference between "strictly non-conformant" and
"wrong" :-)

The existing code takes a well formed document and reports extra events
so that entity references can be reconstructed by the stylesheet.

Your proposed proposed change was to allow it to take non well formed
documents. That's a big change.

Of course not being an XML process doesn't mean that it is not useful,
just as sax parsers for HTML (or GEDCOM or ...) are very useful allowing
XSLT to be used on a wider range of inputs. This would be the same, a
process for taking non-XML and allowing it to be processed by XSLT.
If the input isn't XML, then clearly conformance to the XML spec is a
non-issue.

Actually the original use case may well be servved by using tagsoup as
the parser rather than an xml parser. Then an undefined nbsp is not an
error.

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

Current Thread