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

RE: xls:for-each not working

Subject: RE: xls:for-each not working
From: "Bondarenko, Taras" <TBondarenko@xxxxxxxx>
Date: Fri, 1 Apr 2005 14:52:49 -0500
xls for each
However you want to do it - your select is wrong:

You are asking for select="/transaction_detail" - which means nodes that
are children of ROOT node() not row. Just use
select="transaction_detail"

-----Original Message-----
From: josh higgins [mailto:doopsterus@xxxxxxxxx]
Sent: Friday, April 01, 2005 2:47 PM
To: xsl
Subject:  xls:for-each not working

I cannot get my for-each statement to work.  Am I
doing this incorrectly?   I am just wanting to output
all of the data in the xml file that has a
<transaction_data> tag.  Here is my statement and
below is the sample xml.  I use this to attempt to
display my template <xsl:call-template name="detail"/>
 Please help!

Thanks!
Josh

<xsl:template name="detail">
	<xsl:for-each select="/invoice/detail/row">
		<fo:block>
			<xsl:value-of select="/transaction_detail"/>
		</fo:block>

	</xsl:for-each>
</xsl:template>

SAMPLE XML
<invoice>
<detail>
		<row>
			<line_sequence>1</line_sequence>
			<transaction_detail>Activity for (620)
251-1559</transaction_detail>
			<format_control>C1</format_control>
			<group_no>1</group_no>
		</row>
		<row>
			<line_sequence>2</line_sequence>
			<group_no>1</group_no>
		</row>
		<row>
			<line_sequence>3</line_sequence>
			<transaction_detail>    Transaction
Activity</transaction_detail>
			<format_control>C1</format_control>
			<group_no>1</group_no>
		</row>
		<row>
			<line_sequence>4</line_sequence>
			<format_control>U1</format_control>
			<group_no>1</group_no>
		</row>
		<row>
			<line_sequence>5</line_sequence>
			<transaction_detail>
Description</transaction_detail>
			<group_no>1</group_no>
		</row>
		<row>
			<line_sequence>6</line_sequence>
			<transaction_detail>
========================================================================
====</transaction_detail>
			<group_no>1</group_no>
		</row>
</detail>
</invoice>




__________________________________
Do you Yahoo!?
Yahoo! Personals - Better first dates. More second dates.
http://personals.yahoo.com

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.