xsl-list
[Top] [All Lists]

merging the contents of consecutive

2005-10-19 17:53:17
Hello Michael,
 
Urggh.  Now i have one additional case -
 
input:
 
<concept>
      <overview>
             <info>
                ...
             </info>
      </overview>
      <info>
       ...
      </info>
</concept>
 
This stylesheet code copies all info children of overview, but   doesn't
copy the info node that is a sibling of overview.  How do I output both
the sibling and child info elements?
 
<xsl:template
match="subconcept/overview[following-sibling::*[1][self::info]]">

<info>

<xsl:copy-of select="info/*"/>

</info>

</xsl:template>

thanks,
 
Ann Marie

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>