GREAT!!!!
At 01:02 PM 4/16/2007 +0300, you wrote:
<xsl:template match="div">
<div>
<xsl:choose>
<xsl:when
test="preceding-sibling::node()[self::processing-instruction()]">
<xsl:copy-of
select="preceding-sibling::processing-instruction()[generate-id(following-sibling::*[1])=generate-id(current())]"
/>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of
select="../preceding-sibling::processing-instruction()[generate-id(following-sibling::*[1])=generate-id(current()/..)]"
/>
</xsl:otherwise>
</xsl:choose>
</div>
</xsl:template>
--~------------------------------------------------------------------
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>
--~--