Subject: Re: Avoiding boneheaded mistakes in XSLT?
From: Dave Pawson <davep@xxxxxxxxxxxxx>
Date: Wed, 29 Dec 2010 14:54:44 +0000
|
On Wed, 29 Dec 2010 09:45:53 -0500
"G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> wrote:
> At 2010-12-29 14:39 +0000, Dave Pawson wrote:
> >Even without schema awareness/context, surely the processor can
> >tell when an xpath expression will result in zero match?
>
> But it isn't helpful because the zero match is ambiguously either the
> result of a typo in the stylesheet or the absence of an acceptable
> item in the source. The processor is obliged to assume the latter
> and so cannot assume the former.
But it is Ken. It's somewhere to look when the author wants to
debug 'the pair'? Stylesheet and source XML.
--
regards
--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk
|