[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....
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|