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

RE: Return position in for-each

Subject: RE: Return position in for-each
From: "Karl J. Stubsjoen" <karl@xxxxxxxxxxxxxxxxxxxx>
Date: Thu, 22 Jul 2004 17:09:32 -0700
return elements name from xml
[Michael Kay Wrote]
Incidentally,

  <xsl:variable name="x"><xsl:value-of select="y"/></xsl:variable>

should in 99.99% of cases be rewritten

  <xsl:variable name="x" select="y"/>


Michael,
I thought I was writing these variables out correctly.  I believed that your
suggestion was for when you were passing XML document fragments around (not
sure how to express that properly), where y might be of the source:

<x>
  <y/>
  <y/>
  <y/>
</x>



About my logic:
You have XML source <ABC/> with 50 <Entry> elements (which begins to look
like this):
<ABC>
  <Entry>
	<Element name="name"/>
	<Element name="country"/>
	<Element name="phone"/>
	... etc ...
  </Entry>
  <Entry>
	<Element name="name"/>
	<Element name="country"/>
	<Element name="phone"/>
	... etc ...
  </Entry>
  ... etc (50 times) ...
</ABC

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.