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

RE: And while you're figuring out my last one....

Subject: RE: And while you're figuring out my last one....
From: "Daniel Newman" <daniel.newman@xxxxxxxxxxx>
Date: Mon, 16 Jul 2001 10:04:06 +0100
local name last
Just tried this one out, and it didn't work. Probably because of something I
didn't tell you! It's already within a template, so I can't use the
xsl:template command. This is the full code::

<xsl:call-template name="PrintRows">
	<xsl:with-param name="RowColor" select="2" />
	<xsl:with-param name="DisplayText" select="'Holding Address:'" />
	<xsl:with-param name="Value">
		<xsl:choose>
			<xsl:when test="$comma-element">
				<xsl:for-each
select="RetrieveNameAndAddressRSResponse/*[starts-with(local-name(),
'NameAddress') and	preceding-sibling::*[generate-id() =
generate-id($comma-element)]]">
					<xsl:value-of select="." /><br/>
				</xsl:for-each>
			</xsl:when>
			<xsl:otherwise>
				<!-- putting the Address when it starts @ NameAddress2 -->
			</xsl:otherwise>
		</xsl:choose>
		<xsl:value-of select="RetrieveNameAndAddressRSResponse/PostCode" />
	</xsl:with-param>
	<xsl:with-param name="Display" select="''" />
	<xsl:with-param name="Amend" select="''" />
</xsl:call-template>

If I could have a nice little xsl:for-each that will retrieve all Nodes that
start-with(local-name(), 'NameAddress') but not NameAddress1 (that's got to
be easy?.. I've tried [starts-with(local-name(), 'NameAddress') and [not
local-name() = 'NameAddress1']], but it doesn't work)

Thanks for the help,

Daniel Newman.


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.