D
Duane Morin
I fear this might be a FAQ but I can't figure out how to google for
it.
Recently we had a big bug where the source that an XSL file acted on
changed out from under it. Result, the XSL matched nothing and
important content did not make it to the final destination.
I was under the impression that an XSL could be told "You will be
acting on an XML that is valid according to the following DTD." Thus,
if the XML that it was applied against was NOT what was expected, it
would crash rather than failing silently to match anything.
I do NOT want the DTD for the XSL file. Nor do I want to
independently validate the XML before sending it (because that
wouldn't solve my problem if the XSL does not know that the source has
changed). I need the XSL to be able to detect that the incoming XML
is no longer what it thinks it is.
Am I right?
Duane
it.
Recently we had a big bug where the source that an XSL file acted on
changed out from under it. Result, the XSL matched nothing and
important content did not make it to the final destination.
I was under the impression that an XSL could be told "You will be
acting on an XML that is valid according to the following DTD." Thus,
if the XML that it was applied against was NOT what was expected, it
would crash rather than failing silently to match anything.
I do NOT want the DTD for the XSL file. Nor do I want to
independently validate the XML before sending it (because that
wouldn't solve my problem if the XSL does not know that the source has
changed). I need the XSL to be able to detect that the incoming XML
is no longer what it thinks it is.
Am I right?
Duane