commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dion Gillard <dion.gill...@gmail.com>
Subject Re: RE : [jelly] escape quote in litteral xpath.
Date Wed, 15 Sep 2004 08:45:11 GMT
No,

<j:set var="path" value="/path/to/element/[@attribut = 'attribute_name']"/>
<j:set var="myElement" value="${wrapper.select(path)}"/>

should work as far as I can tell.

On Wed, 15 Sep 2004 10:14:41 +0200, Marc DEXET <marc.dexet@dsi.cnrs.fr> wrote:
> Thank, but I have to explain that this expression must be in a XML attribut
> like
> <j:set var="myElement" value="${wrapper.select("/path/to/element[@attribut =
> 'attribute_name']")}"/>
> 
> It's pretty difficult no ?
> 
> ............................................
> Marc DeXeT
> ............................................
> 
> -----Message d'origine-----
> De : Dion Gillard [mailto:dion.gillard@gmail.com]
> Envoyé : mercredi 15 septembre 2004 01:39
> À : Jakarta Commons Users List
> Objet : Re: [jelly] escape quote in litteral xpath.
> 
> 
> 
> 
> Did you try this:
> 
> ${wrapper.select("/path/to/element[@attribut = 'attribute_name']")}
> 
> On Tue, 14 Sep 2004 17:06:03 +0200, Marc DEXET <marc.dexet@dsi.cnrs.fr>
> wrote:
> > Hello everybody.
> >
> > I would create tag that wrap dom4j document.
> > Because I want all select to be trap by this object, I would use jexl
> > expression like
> > ${wrapper.select('/path/to/element[@attribut = 'attribute_name']')}
> >
> > But I dont succeed in escaping quote for : [@attribut = 'attribute_name']
> >
> > I have tried
> > [@attribut = ''attribute_name'']
> > [@attribut = \'attribute_name\']
> > [@attribut = &apos;attribute_name&apos;]
> >
> > There is a solution for this ?
> >
> >
> > ............................................
> > Marc DeXeT
> > Direction des Systèmes d'Informations
> > Centre National de la Recherche Scientifique
> >                 ~ * ~
> > Information System Direction
> > National Center for Scientific Research
> > http://www.cnrs.fr
> > ............................................
> >
> >
> 
> --
> http://www.multitask.com.au/people/dion/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 
> 



-- 
http://www.multitask.com.au/people/dion/

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message