W3C home > Mailing lists > Public > public-xml-processing-model-comments@w3.org > February 2008

p:string-replace clarification

From: James Fuller <james.fuller.2007@gmail.com>
Date: Wed, 6 Feb 2008 12:59:43 +0100
Message-ID: <a0ad8ffe0802060359i40cd63e3mb77b3cd2ee8bc47c@mail.gmail.com>
To: public-xml-processing-model-comments@w3.org

a few observations about p:string-replace;

   *  what happens when the match is an attribute ?

   * shouldn't there be an dynamic error condition defined ?

   * the name string-replace seems to be cross purposes with the
following text in the editor draft spec;

    -----------------
     If the expression matches any other kind of node, the entire node
(and not just its contents) is replaced by the string value of the
replace expression.
    -----------------

    perhaps this behavior is controlled by an option which is off by
default, so it is only strings we are interested in


Jim Fuller
Received on Wednesday, 6 February 2008 11:59:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 6 February 2008 11:59:53 GMT