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" <[EMAIL PROTECTED]>
To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
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" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> 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:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
> >
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


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


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to