Subject: [xsl] Best Practice: use @as wherever possible From: "Roger L Costello costello@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Fri, 6 May 2022 19:02:16 -0000 |
Michael Kay wrote: -------------------------------------------------------------------------- If you can express the condition with an @as attribute, use that in preference to an xsl:assert, because it's much more amenable to static analysis - certainly with Saxon, xsl:assert will only ever give you a run-time error. The diagnostics for type errors will also tend to be better. -------------------------------------------------------------------------- Fantastic! Thank you Michael. /Roger
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Defensive programming in , Dimitre Novatchev dn | Thread | Re: [xsl] Best Practice: use @as wh, John Lumley john@xxx |
Re: [xsl] Defensive programming in , Dimitre Novatchev dn | Date | Re: [xsl] Best Practice: use @as wh, John Lumley john@xxx |
Month |