Subject: Re: [xsl] Cheaper to prepend or append an item to a sequence? From: Michael Kay <mike@xxxxxxxxxxxx> Date: Tue, 22 Feb 2011 14:20:42 +0000 |
ops... is sequences and items not presented as pointers and linked items? arrays? and what about lazy evaluation in this case? not every time when we work with sequence we need whole sequence and in most cases we don`t even need it as numbered
by the way - look like "except" keyword have same limitation - all sequence need to be reconstructed instead of moving one of pointers from one item to second
see this Schematron rule
<pattern name="unique-id"> <rule context="*[@id and not(ancestor-or-self::meta)]"> <report test="@id = (//@id[not(ancestor::meta)] except @id)"> same @id </report> </rule> </pattern>
and look like 'except' is bottleneck here
Michael Kay Saxonica
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Cheaper to prepend or app, Вячеслав Седов | Thread | Re: [xsl] Cheaper to prepend or app, Andrew Welch |
Re: [xsl] xmlns="", Andrew Welch | Date | Re: [xsl] RE: Cheaper to prepend or, Michael Kay |
Month |