xsl-list
[Top] [All Lists]

Re: How do I access the nodeset that the IDREF refers to?

2003-01-09 10:07:07
Bix,

At 11:18 AM 1/9/2003, you wrote:
Wendell Piez wrote:
... but I bet

<xsl:variable name="linkRef" select="id(subnode/link/@idr)"/>

would work even better (it binds the retrieved nodes to the variable, not the string value of the first one).

Just for clarification, does this imply that I may use the following to access the node info:

<xsl:value-of select="$linkRef/link">

Yes, it does (assuming the variable's still in scope). If the id() function has returned a node with a link child, you may even get a value. :->

But keep in mind the value-of instruction *always* gets you a single string (in this case, the string value of the first link child of the first of the nodes in $linkref).

Cheers,
Wendell


======================================================================
Wendell Piez                            
mailto:wapiez(_at_)mulberrytech(_dot_)com
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================


XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>