[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Newbie: See if a node exists!

Subject: Re: Newbie: See if a node exists!
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Fri, 07 Jun 2002 20:20:08 +0200
node exists xslt
What do you mean by "string"? Show the XML code and the template, so we can say, whether it's possible or not.

Joerg

Americo Albuquerque wrote:
no, it shows the entire string.
it probably can not be done
thanks any way


-----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Joerg Heinicke Sent: Friday, June 07, 2002 6:51 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: 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@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.