Call for feedback : Update extensions

Subject: Call for feedback : Update extensions
From: Eric van der Vlist <vdv@xxxxxxxxxxxx>
Date: Wed, 17 Nov 1999 21:53:51 +0100
Hi,

We would like to get your thoughts about the update extensions we are
considering for prototyping our XML Server project
(http://www.egroups.com/group/xml-server/info.html) ...

The basic update statement I suggest (to update the source DOM) is :

  <xslql:update
    match = pattern 
    select = expression>
  <!-- Content: template -->
  </xslql:template> 

where pattern and expression are regular XPath patterns and expressions.

This statement would update all the nodes matching the match pattern
with either the expression of the select statement or the Content
(unlike the xsl:variable statement, the content would be considered as a
node set, not as a result tree fragment).

An example of use could be :

  <xsl:template match="place[normalize-space(text())='russia']">
    <xslql:update match="name[text()='Pete1']">
      <name>Eric</name>
    </xslql:update>
  </xsl:template>

Does it make sense ?

Would you rather suggest an alternative syntax ?

Do you have any comments of advises to give us for its implementation on
top of a XSLT processor ?

Thanks for sharing your thoughts.

Eric

-- 
------------------------------------------------------------------------
Eric van der Vlist                                              Dyomedea

http://www.dyomedea.com                          http://www.ducotede.com
------------------------------------------------------------------------


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread