[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Call for feedback : Update extensions
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|