[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Josh,
Your for-each is working fine, but your XPath is wrong:
At 02:47 PM 4/1/2005, you wrote:
this value-of selects the "transaction_detail" element child of the root (as indicated by the initial slash). You want the "transaction_detail" child of the context node (each row in turn).
That's xsl:value-of select="transaction_detail"/>
Re: [xsl] xls:for-each not working
Subject: Re: [xsl] xls:for-each not working From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Fri, 01 Apr 2005 15:32:57 -0500 |
Josh,
Your for-each is working fine, but your XPath is wrong:
At 02:47 PM 4/1/2005, you wrote:
<xsl:template name="detail"> <xsl:for-each select="/invoice/detail/row"> <fo:block> <xsl:value-of select="/transaction_detail"/>
this value-of selects the "transaction_detail" element child of the root (as indicated by the initial slash). You want the "transaction_detail" child of the context node (each row in turn).
That's xsl:value-of select="transaction_detail"/>
Cheers, 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 ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] xls:for-each not working, Daniel McOrmond | Thread | RE: [xsl] xls:for-each not working, Jacobs, Robert A. |
RE: [xsl] Combining two node Sets i, Wendell Piez | Date | RE: [xsl] xls:for-each not working, Michael Kay |
Month |