Thanks Jeni
This will Solve my Problem....
Jeni Tennison
<jeni(_at_)jenitenniso To:
Shashi(_dot_)Bhushan(_at_)xansa(_dot_)com
n.com> cc:
xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Read a
parent node for particular chid using xsl
03/24/2004 03:12
PM
Please respond to
xsl-list
Hi Shashi,
I am not able to display the result as parent tile and child title
in single row.
I think that you're probably having problems because the template for
ReferencedBy does:
<xsl:value-of select="//Result/@title" />
This will *always* give you the title of the first Result in your
document because it's an absolute path: it starts at the root node for
the document, finds all the title attributes of the Result elements,
and then gives you the value of the first one.
What you want is to get the title attribute of the Result element
that's the parent of the current ReferencedBy element. To do that, use
the parent axis:
<xsl:value-of select="parent::Result/@title" />
A shorthand for getting the parent of a node is "..", so you could
alternatively use:
<xsl:value-of select="../@title" />
Note that you probably want to make the same change to the rest of the
paths in that template.
Cheers,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
--+------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
You are subscribed as: Shashi(_dot_)Bhushan(_at_)xansa(_dot_)com
To unsubscribe, go to:
http://lists.mulberrytech.com/unsub.php/xsl-list/Shashi(_dot_)Bhushan(_at_)xansa(_dot_)com
or e-mail: <
mailto:xsl-list-unsubscribe-Shashi(_dot_)Bhushan=xansa(_dot_)com(_at_)lists(_dot_)mulberrytech(_dot_)com
--+--
* * * * XANSA CONFIDENTIALITY NOTICE * * * *
This message is intended only for the individual or entity to which it is
addressed and
may contain information that is privileged, confidential and exempt from
disclosure
under applicable law. If you are not the intended recipient, or the employee
or agent
responsible for delivering the message to the intended recipient, you are
hereby
notified that any dissemination, distribution or copying of this communication
is strictly
prohibited, and you are requested to please notify us immediately by telephone,
and
return the original message to us at the above address.
Xansa North America
5555 San Felipe # 695
Houston, TX 77056
888-820-3030
www.xansa.com