Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: complex selection [Thread Next] Re: complex selectionTo: NULL Date: 2/6/2008 3:08:00 PM khalil_mi@h... wrote: > I forgot to specify that i need an XSL solution Here is an XSLT 1.0 stylesheet <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="text"/> <xsl:template match="tag1"> <xsl:variable name="fr" select="tag2[tag3 = 'fr']"/> <xsl:variable name="nl" select="tag2[tag3 = 'nl']"/> <xsl:value-of select="concat( $fr[tag4]/tag4 | $fr[not(tag4)]/tag5, ' ', $nl[tag4]/tag4 | $nl[not(tag4)]/tag5 )"/> </xsl:template> </xsl:stylesheet> -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
