This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]