xsl-list
[Top] [All Lists]

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

2007-11-18 08:18:21
<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)]" />
-- 
Charles Knell
cknell(_at_)onebox(_dot_)com - email



-----Original Message-----
From:     Byomokesh Sahoo <sahoo(_dot_)byomokesh(_at_)gmail(_dot_)com>
Sent:     Sun, 18 Nov 2007 11:35:13 +0530
To:       xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject:  [xsl] How Remove or Hide Blank Page View on Explorer

Hi,

I have xml file and i want to using xsl to view on IE. It is not a
separate HTML file. It is just a <Page> Tag. I am not using Scripting
Environment.

Here is my Input file.
============== 
<Book>
<Title>Infusing Technology</Title>
<Chap Id="Ch01">
<Page Id="Page_1"/>
<Chaptitle>Introduction</Chaptitle>
<Body>
<Text>Infusing Technology into Mathematics is an exciting professional</Text>
<Sec1 Id="Ch01Lev1Sec1">
<Page Id="Page_2"/>
<Page Id="Page_3"/>
<Head>Required Materials</Head>
<Text>PC with at least 64 MB of RAM and Internet access</Text>
</Sec1>
<!-- Section is continue -->

</Chap>
</Book>

My XSL file
======== 
<xsl:template match="Page">
<hr color="black"/>
<hr color="silver" size="10%"/>
<xsl:value-of select="substring-after(@Id,'_')"/>
<hr color="black" size="10%"/>
</xsl:template>


It is not compulsory only page 2 is blank page. I want how search
blank page and hide this page number on IE.

Thanks







Unfortunately, I don't get clarity about your business and technical
problem.

You wrote, that your input XML file is:
<Page Id="Page_1"/>
<p>paragraph here</p>
<Page Id="Page_2"/> <!-- I want hide this page number. -->
<Page Id="Page_3"/>
<p>some paragraph</p>
<Page Id="Page_4"/>

What exactly is a page in your context? Is it a separate HTML file, or
is it just a <Page> tag?
Are you invoking XSLT using the PI in browser? Also, are you using a
scripting environment?

Please elaborate further ...

On 11/17/07, Byomokesh Sahoo <sahoo(_dot_)byomokesh(_at_)xxxxxxxxx> wrote:
Hi,

I was given small example. But How i know which page is blank page.
Input files are big XML file. Anypage will come depends on coding
specfication. Example, One xml file is 200 pages. In that case some
pages is coming in blank page. Then How i ll hide the blank page on
Explorer

Thanks
Byomokesh


-- 
Regards,
Mukul Gandhi

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




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