[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

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


Subject: RE: [xsl] And while you're figuring out my last one....
From: "Daniel Newman" <daniel.newman@xxxxxxxxxxx>
Date: Mon, 16 Jul 2001 10:04:06 +0100

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