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

two namespaces and a position problem

Subject: two namespaces and a position problem
From: April Fleming <AFleming@xxxxxxxxxxxx>
Date: Thu, 13 May 2004 10:56:45 -0400
using two namespaces
I am having some trouble here.  I am using two namespaces.  I am looping
over nodes in ns1 and trying to obtain info from ns2.  This is just
debugging that you see here.  Inside the loop I first output the position
from within the nodeset of ns1 and that is correct.  The next xsl:value-of I
am trying to output the name attribute of the Element in the same position()
that I am currently in for ns1.  However, the second call to the position()
function gives me the position of ns2.  I have looked and looked but cannot
find a way to do this.

Any ideas?

<xsl:for-each select="./@*">
	<xsl:comment>Not all attributes exist for each rs:row, so code must
check to see if it is printing the right 			  value for
the column</xsl:comment>

	<xsl:value-of select="position()"/>
	<xsl:value-of
select="//s:ElementType/s:AttributeType[position()]/@name"/>
	<xsl:value-of select="."/>
</xsl:for-each>

April Fleming
Information Services
Dixon Ticonderoga Company
407-829-9000 ext. 153

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.