Hi, Le vendredi 06 avril 2007 à 09:23 -0700, Matt Good a écrit :
> > Also, how do I match something if <py:match path=""> already contains
> > double-quotes and the XPath expression needs them, too? E.g.,
> > [EMAIL PROTECTED]"ticket"]. How can I escape the double-quotes, then?
>
> You can use single quotes in XPath, or I think you can omit the quotes
> there too.
No, that would mean something different!
In XPath, "[EMAIL PROTECTED]" matches div elements that have a class
attribute equal to one of their <ticket> sub elements (not likely to
happen in HTML)!
Your first suggestion "[EMAIL PROTECTED]'ticket']" is more readable, but you
could also write: "[EMAIL PROTECTED]"ticket"]".
Hope this helps.
Eric (trac newbie but XPath expert :) ...)
--
GPG-PGP: 2A528005
Carnet web :
http://eric.van-der-vlist.com/blog?t=category&a=Fran%C3%A7ais
------------------------------------------------------------------------
Eric van der Vlist http://xmlfr.org http://dyomedea.com
(ISO) RELAX NG ISBN:0-596-00421-4 http://oreilly.com/catalog/relax
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------
signature.asc
Description: Ceci est une partie de message numériquement signée
