[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] Avoiding boneheaded mistakes in XSLT?
Subject: Re: [xsl] Avoiding boneheaded mistakes in XSLT? From: Dave Pawson <davep@xxxxxxxxxxxxx> Date: Wed, 29 Dec 2010 07:49:48 +0000 |
On Tue, 28 Dec 2010 23:13:01 +0000 Michael Kay <mike@xxxxxxxxxxxx> wrote: > I think the main reason for the problem is that an XSLT/XPath program > makes many references to names (of elements and attributes) which do > not have to be declared, so that using an incorrect name is not an > error (either static or dynamic), but rather results in an XPath > expression that simply selects nothing. I guess no one would do that deliberately? Yet the rec and implementations don't provide any error | warning about it? > > A good defence against this is to write schema-aware stylesheets. I > fully admit that this involves a lot of up-front effort which can be > hard to justify. Yep. -- regards -- Dave Pawson XSLT XSL-FO FAQ. http://www.dpawson.co.uk
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Avoiding boneheaded mista, Michael Kay | Thread | Re: [xsl] Avoiding boneheaded mista, G. Ken Holman |
Re: [xsl] Avoiding boneheaded mista, Dimitre Novatchev | Date | Re: [xsl] Avoiding boneheaded mista, G. Ken Holman |
Month |