xsl-list
[Top] [All Lists]

Re: xls:for-each not working

2005-04-01 13:32:57
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(_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
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



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