Subject: [xsl] Why is pattern item/bar/text()[accumulator-before('collect-foo') eq $search] not motionless? From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Sun, 3 Jan 2016 12:16:07 -0000 |
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:map="http://www.w3.org/2005/xpath-functions/map" exclude-result-prefixes="xs map" version="3.0">
<xsl:param name="search" as="xs:string" select="'searched foo'"/> <xsl:param name="replace" as="xs:string" select="'new bar value'"/>
<xsl:mode streamable="yes" on-no-match="shallow-copy"/> <xsl:global-context-item use-accumulators="collect-foo"/>
<root> <item-list> <item> <foo>foo 1</foo> <bar>bar 1</bar> </item> <item> <foo>searched foo</foo> <bar>bar 2</bar> </item> <item> <foo>foo 3</foo> <bar>bar 3</bar> </item> <item> <foo>searched foo</foo> <bar>bar 4</bar> </item> </item-list> </root>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Question on streaming acc, Michael Kay mike@xxx | Thread | [xsl] An untyped atomic value canno, Costello, Roger L. c |
Re: [xsl] Question on streaming acc, Michael Kay mike@xxx | Date | [xsl] An untyped atomic value canno, Costello, Roger L. c |
Month |