Subject: Re: [xsl] compare two nodes (the child elements, not the string values) in XSLT 1.0 From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Thu, 07 Jul 2011 12:00:39 -0400 |
For my particular case, I found a less complicated solution than Wendell's, but it's a particular solution, not a general one:
<xsl:variable name="last" select="last"/> <xsl:if test="path/person/last=last and (not(first) or path/person[last=$last]/first=first) and (not(middle) or path/person[last=$last]/middle=middle)">
I am amazed that there is no simple general solution for this kind of problem in XSLT 1.0. I thought I must be overlooking something obvious. XSLT 2.0 indeed makes life easier!
-- ====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] compare two nodes (the ch, Mukul Gandhi | Thread | [xsl] Find distinct nodes from a se, Pushkar Khadilkar |
Re: [xsl] Find distinct nodes from , Wendell Piez | Date | Re: [xsl] compare two nodes (the ch, Wendell Piez |
Month |