[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Rick Jelliffe's article on XSLT 1.0 performance
So do you know if anyone has implemented any optimizations using @as? I appreciate that @as can be valuable for software engineering reasons: clarity and strict typechecking of course. Good things. For Schematron I am still not sure whether it would be better to have <sch:rule context="person"> <sch:let name="payrate" value="//rate[$for = "" as="xs:number"/> or <sch:rule context="person"> <sch:let name="payrate" value="//rate[$for = "" /><sch:assert tes"number(payrate)" >The payrate should be a number</sch:assert> I mean, if xslt:variable/@as is not used for any significant optimizations, then isn't it just an assertion about type in which case the appropriate markup is should be an explicit assertion, not a type statement. Cheers Rick On Wed, Feb 15, 2017 at 7:42 PM, Michael Kay <mike@saxonica.com> wrote:
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |
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
|