Hi HoldMyKidney,
thx for taking the time to look into my problem. I haven't though using output escaping (feels a bit like cheating). However thx for the solution. I did some reseach just today and found the generic XML solution using generate key:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="MyQuotes">
<MyQuotes>
<xsl:apply-templates select="Quote[@newpage='true']"/>
</MyQuotes>
</xsl:template>
<xsl:template match="Quote[@newpage='true']">
<page>
<Quote>
<xsl:value-of select="."/>
</Quote>
<xsl:variable name="nextPage" select="generate-id(following-sibling::*[@newpage='true'][1])"/>
<xsl:apply-templates select="following-sibling::*[generate-id(following-sibling::*[@newpage='true'][1])=$nextPage]"/>
</page>
</xsl:template>
<xsl:template match="Quote[not(@newpage)]">
<Quote>
<xsl:value-of select="."/>
</Quote>
</xsl:template>
<xsl:template match="*"/>
</xsl:stylesheet>
David Carlisle and that pages helped:
http://www.jenitennison.com/xslt/gro...muenchian.html
;) stw
If you think education is expensive - try ignorance!