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

Subject: [xsl] How Remove or Hide Blank Page View on Explorer
From: "Byomokesh Sahoo" <sahoo.byomokesh@xxxxxxxxx>
Date: Mon, 19 Nov 2007 16:56:54 +0530
Hi Knell,

Thanks for solve my problem.....

Thanks
Byomokesh


>>>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

Current Thread