Re: Viewports with regular steps

Alex Miłowski <alex@milowski.com> writes:
> I assert that this use of viewport:
>
>    $doc  → replace("//section") { $matched → filter() → $replacement }
> ≫  $result
>
> can be done with this:
>
>    $doc//section ! filter() ≫ $replacements
>    xslt([source=$doc,collection=$replacements,stylesheet="stitch.xsl"])
> ≫  $result

Oh, barf. Yes, I suppose it can, if you construct a different
“stitch.xsl” for each possible match. Color me unsatisified.

                                        Be seeing you,
                                          norm

-- 
Norman Walsh
Lead Engineer
MarkLogic Corporation
Phone: +1 512 761 6676
www.marklogic.com

Received on Wednesday, 16 March 2016 21:05:54 UTC