[xsl] Validated input

Subject: [xsl] Validated input
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: Wed, 24 Sep 2008 10:31:48 +0100
>>>>> "Andrew" == Andrew Welch <andrew.j.welch@xxxxxxxxx> writes:

    Andrew> The problem I have with schema-aware xslt (specifically
    Andrew> input validation) is that your transform then relies on
    Andrew> the input being validated... the XML is no longer
    Andrew> sufficient on its own.  The output will be different
    Andrew> depending on whether the input has been validated or not,
    Andrew> which is not a good thing.

I would have thought it would be a good thing to get different output
(i.e. an error message) for invalid input than for valid input.

Of course, that is not what you said. But I think you should be able
to detect un-validated input and issue an error. 

That way you can be assure of having correct data.
-- 
Colin Adams
Preston Lancashire

Current Thread