W3C home > Mailing lists > Public > public-xmlsec@w3.org > January 2011

Re: Namespace prefixes in XPath

From: <Frederick.Hirsch@nokia.com>
Date: Thu, 13 Jan 2011 19:43:03 +0100
To: <Meiko.Jensen@ruhr-uni-bochum.de>
CC: <Frederick.Hirsch@nokia.com>, <pratik.datta@oracle.com>, <public-xmlsec@w3.org>
Message-ID: <F3056908-E356-43B2-9723-2DDD680C0893@nokia.com>
+1 to having regexp as well.

regards, Frederick

Frederick Hirsch
Nokia



On Jan 13, 2011, at 9:08 AM, ext Meiko Jensen wrote:

> Pratik,
> 
> see below
> 
> Am 11.01.2011 18:28, schrieb Pratik Datta:
>> I removed the regular expressions, because I thought it is probably easier to understand it in plain English rather than in regular expressions.  Do you think regular expressions are better ?
> I'd suggest putting the regexp to the document as well, just to make
> sure people know exactly how to deal with this. As it is written now I'd
> assume more people would screw it up.
>> Rather than regular expressions, I can put is more clarifying text as you suggested
>> 1) I can explicitly put in  "(not the :: of XPath axes)".
>> 2) The white space can occur between the prefix and the colon.
>> e.g.  "/     soap    :   Envelope"
> OK, I didn't know that. In that case the wording makes sense.
>> So I am saying that you locate a single colon, then start going backwards and skip over whitespace, and then get the prefix.
>> 
>> 3) The search for the prefix ends , when you find a non NCName character. 
> OK, got it, but I'd suggest to put exactly this sentence of yours to the
> document as well, just to clarify for everybody.
> 
> cheers
> 
> Meiko
> 
> -- 
> Dipl.-Inf. Meiko Jensen
> Chair for Network and Data Security 
> Horst Görtz Institute for IT-Security 
> Ruhr University Bochum, Germany
> _____________________________
> Universitätsstr. 150, Geb. ID 2/411
> D-44801 Bochum, Germany
> Phone: +49 (0) 234 / 32-26796
> Telefax: +49 (0) 234 / 32-14347
> http:// www.nds.rub.de
> 
> 
Received on Thursday, 13 January 2011 18:44:16 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 13 January 2011 18:44:16 GMT