- From: Innovimax SARL <innovimax@gmail.com>
- Date: Tue, 1 May 2007 08:49:55 +0200
- To: "Norman Walsh" <ndw@nwalsh.com>
- Cc: public-xml-processing-model-wg@w3.org
On 5/1/07, Norman Walsh <ndw@nwalsh.com> wrote: > / Innovimax SARL <innovimax@gmail.com> was heard to say: > | You're absolutely right for p:delete, but what about p:replace ? > > I'm just as confused about p:replace. Consider: > > <p:pipeline name="pipeline" xmlns:p="http://www.w3.org/2007/03/xproc"> > <p:output port="result"/> > > <p:replace> > <p:input port="source"> > <p:inline> > <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > version="1.0"> > > <xsl:output method="xml" encoding="utf-8" indent="no" > omit-xml-declaration="yes"/> > > <xsl:preserve-space elements="*"/> > > <xsl:template match="*"> > <xsl:copy> > <xsl:copy-of select="@*"/> > <xsl:apply-templates/> > </xsl:copy> > </xsl:template> > > <xsl:template match="comment()|processing-instruction()|text()"> > <xsl:copy/> > </xsl:template> > > </xsl:stylesheet> > </p:inline> > </p:input> > <p:input port="replacement"> > <p:inline> > <this-was-an-xsl-template/> > </p:inline> > </p:input> > <p:option name="target" value="xsl:template"/> > </p:replace> > > </p:pipeline> > > What would the "other" output result of this replace step be? > The sequence of two documents which root are xsl:template As such you will have a way to count the # of replacement done with a p:count step Mohamed -- Innovimax SARL Consulting, Training & XML Development 9, impasse des Orteaux 75020 Paris Tel : +33 8 72 475787 Fax : +33 1 4356 1746 http://www.innovimax.fr RCS Paris 488.018.631 SARL au capital de 10.000 €
Received on Tuesday, 1 May 2007 06:50:03 UTC