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

Re: Namespace prefixes in XPath

From: Meiko Jensen <Meiko.Jensen@ruhr-uni-bochum.de>
Date: 13 Jan 2011 15:08:37 +0100
Message-ID: <4D2F0765.8000705@ruhr-uni-bochum.de>
To: "Pratik Datta" <pratik.datta@oracle.com>
Cc: "XMLSec WG Public List" <public-xmlsec@w3.org>
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 14:09:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 13 January 2011 14:09:05 GMT