RE: [xsl] Nesting <xsl:value-of> tags

Subject: RE: [xsl] Nesting <xsl:value-of> tags
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Tue, 04 Feb 2003 17:02:22 -0500
Thomas,

At 03:05 PM 2/4/2003, you wrote:
If the <id> corresponds to the first person in the ShareWebUsers.xml, it returns the correct value of the <ntname> tag. If the <id> is for the 2nd ... nth person, I get nothing.

...


Any idea why I can't get the ntname back for 1580652 or 3113434?

I would check the value you are using in the key expression. In the sample you provided before it looked like it should be "../@ownedby" (the ownedby attribute on the parent of the context node), which of course in the code I proposed is bound to the $ownedby variable.


Having the wrong expression there, or calling it from the wrong context node (i.e. binding the variable to the wrong node or a node that doesn't exist) will affect your results.

Try using an <xsl:message> statement (assuming your processor supports it) to announce this value en passant: that should give you a clue.

If you're still stuck, could we please see a sample of the source along with the template as it currently stands?

Thanks--
Wendell


====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx 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



Current Thread