cknell(_at_)onebox(_dot_)com wrote:
Hi
<xsl:template match="Page[Body]" >
<hr color="black"/>
<hr color="silver" size="10%"/>
<xsl:value-of select="substring-after(@Id,'_')"/>
<hr color="black" size="10%"/>
</xsl:template>
<xsl:template match="Page[not(Body)]" />
Unfortunately, Body are not children of Page, they are siblings. If
a blank page is a page element whose the first following sibling
element exists and is not a page itself, I think the following pattern
should do the job:
<xsl:template match="
Page
[following-sibling::*]
[not(following-sibling::*[1]/self::Page)]">
...
</xsl:template>
<xsl:template match="
Page
[not(following-sibling::*[1])
or following-sibling::*[1]/self::Page]"/>
But the OP didn't defined yet what is a blank page, so it can be more
complex.
Regards,
--drkm
_____________________________________________________________________________
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
--~------------------------------------------------------------------
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>
--~--