tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james_strac...@yahoo.co.uk>
Subject Re: problems with Xtags library
Date Thu, 15 Nov 2001 09:31:57 GMT
BTW if anyone needs any help with XPath I can heartily recommend the
excellent Zvon XPath tutorial...

http://www.zvon.org/xxl/XPathTutorial/General/examples.html

and the equally excellent (and much more in depth) XML in a nutshell by
Elliotte Rusty Harold

http://www.oreilly.com/catalog/xmlnut/chapter/ch09.html

James
----- Original Message -----
From: "James Strachan" <james_strachan@yahoo.co.uk>
To: "Tag Libraries Users List" <taglibs-user@jakarta.apache.org>
Sent: Thursday, November 15, 2001 9:13 AM
Subject: Re: problems with Xtags library


> This XPath expression shoudl do it...
>
> /attributelist/attribute[@name='fcreacion']/value
>
> Or in JSP this would look like...
>
> <xtags:parse>
> <atributelist>
> <atribute name='nameDoc'> <value>Documento1</value>
> </atribute>
> <atribute name='fcreacion'> <value>14/11/2001</value>
> </atribute>
> <atribute name="id_Doc"> <value>11122</value>
> </atribute>
> </atributelist>
> </xtags:parse>
>
> <xtags:valueOf
select="/attributelist/attribute[@name='fcreacion']/value"/>
>
> Which would output:-
>
> 14/11/2001
>
> James
> ----- Original Message -----
> From: "Daniel" <danieljn@tdi.tudistrito.es>
> To: <taglibs-user@jakarta.apache.org>
> Sent: Thursday, November 15, 2001 9:07 AM
> Subject: problems with Xtags library
>
>
> > Hi all,
> > I am working with XTags library and I have a problem with the following
> XML:
> >  ...
> > <atributelist>
> > <atribute name='nameDoc'> <value>Documento1</value>
> > </atribute>
> > <atribute name='fcreacion'> <value>14/11/2001</value>
> > </atribute>
> > <atribute name="id_Doc"> <value>11122</value>
> > </atribute>
> > </atributelist>
> > ...
> >
> > I'd like to extract information from the node <value> whose attribute
name
> > of the parent is equal to ' fcreacion', but I don't know how to do it.
> >
> > Regards and thanks.
> >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:taglibs-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
> <mailto:taglibs-user-help@jakarta.apache.org>
> >
> >
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> --
> To unsubscribe, e-mail:
<mailto:taglibs-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:taglibs-user-help@jakarta.apache.org>
>
>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
To unsubscribe, e-mail:   <mailto:taglibs-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-user-help@jakarta.apache.org>


Mime
View raw message