Re: [xsl] How Remove or Hide Blank Page View on Explorer

Subject: Re: [xsl] How Remove or Hide Blank Page View on Explorer
From: Florent Georges <lists@xxxxxxxxxxxx>
Date: Sun, 18 Nov 2007 21:43:58 +0100 (CET)
cknell@xxxxxxxxxx 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 

Current Thread