[XPath] match() instead of =~ ?

In http://www.w3.org/TR/xpath20req/

"
3    Must Support String Matching Using Regular Expressions
[...]

Satisfied by section 7.5.1 Regular Expression Syntax in [XQuery 1.0
and XPath 2.0 Functions and Operators].
Use Case

   1.
[...]
      match elements that "end with Row or row"
      *[local-name() =~ ".*[rR]ow"]
   2.
      Match phone numbers like 123-456-7890
      field[ . =~ "\d\d\d-\d\d\d\-\d\d\d\d]
   3.
      Match any element name with the string "Addr" contained within
the name (case-insensitively)
      *[local-name() =~ ".*[Aa][Dd][Dd][Rr].*"]
   4.
      Match a string from a dynamic regular expression
      Department[Code =~ concat("[0-9][0-9]",$v,".*")] 
"

However, I cannot find the '=~' syntax in
http://www.w3.org/TR/xpath20/ or
http://www.w3.org/TR/2005/WD-xquery-20050211

Isn't that true the current XPath spec suppor this by
      *[match(local-name(), ".*[rR]ow")]
      field[match( .,  "\d\d\d-\d\d\d\-\d\d\d\d")]
     *[match(local-name() , ".*[Aa][Dd][Dd][Rr].*" )]
      Department[ match( Code , concat("[0-9][0-9]",$v,".*") )] 

instead ?
Any plan to add '=~' syntax into XPath? If not, should someone update
the example in the XPath requirment doc and specify these items are
'satisifies with 'modified syntax'' ?








-- 
Frank Yung-Fong Tang
譚永鋒
Šýšţém Årçĥîţéçţ

Received on Monday, 14 March 2005 18:57:52 UTC