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

RE: Nesting <xsl:value-of> tags

Subject: RE: Nesting <xsl:value-of> tags
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Tue, 04 Feb 2003 17:02:22 -0500
xsl value of sample
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

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.