xsl-list
[Top] [All Lists]

RE: XPath Problem.

2003-01-20 14:01:08
Sandeep,

At 03:07 PM 1/20/2003, you wrote:
<xsl:variable name="TInfo-descendants" select="//TInfo"/>

For this, try

<xsl:variable name="TInfo-descendants" select=".//TInfo"/>

which will select TInfo descendants of the current node, not all TInfo elements in the document.

If my original sample code had this error, I do apologize!

Regards,
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>