[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Avoiding boneheaded mistakes in XSLT?
On Wed, 29 Dec 2010 13:14:15 +0000 David Carlisle <davidc@xxxxxxxxx> wrote: > On 29/12/2010 13:09, Piet van Oostrum wrote: > > It would be nice if processors would have a debug mode in which > > XPath expressions would be checked against a schema or DTD and give > > a warning when some 'impossible' expression is encountered. > > Impossible meaning something that never can give a non-empty result > > on valid documents. Probably just paths that are illegal according > > to the schema. > > > That's exactly what a schema aware xpath2 processor will do. > > David Even without schema awareness/context, surely the processor can tell when an xpath expression will result in zero match? -- regards -- Dave Pawson XSLT XSL-FO FAQ. http://www.dpawson.co.uk
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|