This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Newbie: See if a node exists!
- From: Americo Albuquerque <aalbuquerque at viseu dot ipiaget dot pt>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Fri, 7 Jun 2002 19:12:23 +0100
- Subject: RE: [xsl] Newbie: See if a node exists!
- Keywords: XSL-List
- Reply-to: xsl-list at lists dot mulberrytech dot com
no, it shows the entire string.
it probably can not be done
thanks any way
-----Original Message-----
From: owner-xsl-list@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Joerg
Heinicke
Sent: Friday, June 07, 2002 6:51 PM
To: xsl-list@lists.mulberrytech.com
Subject: Re: [xsl] Newbie: See if a node exists!
Ah, you want to evaluate the XPATH expression, which is written in the
@name attribute. Normally this is not possible with XSLT, you need an
extension function. But your problem seems to be easier - if I
understand it correctly:
<BLOCK title="{@*[name() = BOOK/Author/@name}">
Does this work?
Joerg
Americo Albuquerque (E-mail) wrote:
> ok, but it's passed as text who do i convert it to an argument?
>
> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Joerg
> Heinicke
>
>>One last question. is there a way to get the value of an attribute from
>>another?
>>i.e., <BLOCK title="{BOOK/Author@name}">
>>would get the value of BOOK/Author@name instead of the string
>>"{BOOK/Author@name}"
>>This doesn't work, but is there a way to do this?
>
>
> Of course you need a slash more: <BLOCK title="{BOOK/Author/@name}">
>
> Regards,
>
> Joerg
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list