You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by David Crossley <cr...@indexgeo.com.au> on 2002/07/30 04:33:52 UTC

Re: cvs commit: xml-forrest/src/resources/skins/bert/xslt/html site2xhtml.xsl

I am not sure what was the purpose of this commit. It seems
to have removed certain <img> tags, so leaving only links to
images. Was that the intention? By the way, these changes have
all been added to the forrest-site skin.
--David

bert@apache.org wrote:
> bert        2002/07/29 12:59:59
> 
>   Modified:    src/resources/skins/bert/xslt/html site2xhtml.xsl
>   Log:
>   Adding link to favicon.ico
>   
>   Revision  Changes    Path
>   1.12      +1 -1      xml-forrest/src/resources/skins/bert/xslt/html/site2xhtml.xsl
>   
>   Index: site2xhtml.xsl
>   ===================================================================
>   RCS file: /home/cvs/xml-forrest/src/resources/skins/bert/xslt/html/site2xhtml.xsl,v
>   retrieving revision 1.11
>   retrieving revision 1.12
>   diff -u -r1.11 -r1.12
>   --- site2xhtml.xsl	23 Jul 2002 08:26:18 -0000	1.11
>   +++ site2xhtml.xsl	29 Jul 2002 19:59:59 -0000	1.12
>   @@ -147,7 +147,7 @@
>          <tr>
>            <td width="10"><img src="skin/images/spacer.gif" alt="" height="1" width="10" /></td>
>          </tr>
>   -      <tr><td bgcolor="#4C6C8F" height="1" colspan="2"><img src="skin/images/spacer.gif" alt="" width="1" height="1" /><a href="skin/images/label.gif"><img src="skin/images/spacer.gif" alt="" width="1" height="1" border="0"/></a><a href="skin/images/page.gif"><img src="skin/images/spacer.gif" alt="" width="1" height="1" border="0"/></a><a href="skin/images/chapter.gif"><img src="skin/images/spacer.gif" alt="" width="1" height="1" border="0"/></a><a href="skin/images/chapter_open.gif"><img src="skin/images/spacer.gif" alt="" width="1" height="1" border="0"/></a><a href="skin/images/current.gif"><img src="skin/images/spacer.gif" alt="" width="1" height="1" border="0"/></a></td></tr>
>   +      <tr><td bgcolor="#4C6C8F" height="1" colspan="2"><img src="skin/images/spacer.gif" alt="" width="1" height="1" /><a href="skin/images/label.gif"></a><a href="skin/images/page.gif"></a><a href="skin/images/chapter.gif"></a><a href="skin/images/chapter_open.gif"></a><a href="skin/images/current.gif"></a><a href="/favicon.ico"></a></td></tr>
>          <tr>
>            <td align="center" class="copyright" bgcolor="#CFDCED" colspan="2">
>              <font face="Arial, Helvetica, Sans-Serif" size="2">Copyright &#169; @year@ @vendor@. All Rights Reserved<script language="JavaScript" type="text/javascript"><![CDATA[<!--
>   
>   
>   



RE: cvs commit: xml-forrest/src/resources/skins/bert/xslt/html site2xhtml.xsl

Posted by Marc Portier <mp...@outerthought.org>.
yep,

this is one of the issues with the cocoon crawler:
all images and pages must be within clickpath-htmltrail reach of the
index.html we start with.

this is why (some threads ago) I proposed NOT to start the crawling at
index.html as we do now.
but at some forrest-start.html page that would start 2 separate trails: one
to index.html as we now it, but also could start a number of trails to
resources that need to be there, but are not referenced from true HTML

any more opinions?

in any case, I was already thinking of extending 'the contract' (I need to
write that doc) to allow projects to specify their crawl-start page
themselves, that would still allow for an intermediate period were we can
start at index.html and switch over at any time

do I update the template and bot script?

-marc=

> -----Original Message-----
> From: Bert Van Kets [mailto:bert@vankets.com]
> Sent: dinsdag 30 juli 2002 8:11
> To: forrest-dev@xml.apache.org
> Subject: Re: cvs commit: xml-forrest/src/resources/skins/bert/xslt/html
> site2xhtml.xsl
>
>
> I added a link to the favicon icon, so it would be copied.
> At the same time I removed the 1pix image that contained the link.  This
> saves code and download time.
> A <a href> is enough to get the images copied. It doesn not have
> to enclose
> an object.
>
> You might wonder why this list of links is necessary.
> The images are used in CSS, but as CSS is not parsed those images
> would not
> be copied without the links.  Same is true for the favicon.  If
> there's no
> link to the image/icon, it's not copied.
>
> HTH,
> Bert
>
>
> At 12:33 30/07/2002 +1000, you wrote:
> >I am not sure what was the purpose of this commit. It seems
> >to have removed certain <img> tags, so leaving only links to
> >images. Was that the intention? By the way, these changes have
> >all been added to the forrest-site skin.
> >--David
> >
> >bert@apache.org wrote:
> > > bert        2002/07/29 12:59:59
> > >
> > >   Modified:    src/resources/skins/bert/xslt/html site2xhtml.xsl
> > >   Log:
> > >   Adding link to favicon.ico
> > >
> > >   Revision  Changes    Path
> > >   1.12      +1
> > -1      xml-forrest/src/resources/skins/bert/xslt/html/site2xhtml.xsl
> > >
> > >   Index: site2xhtml.xsl
> > >   ===================================================================
> > >   RCS file:
> >
> /home/cvs/xml-forrest/src/resources/skins/bert/xslt/html/site2xhtml.xsl,v
> > >   retrieving revision 1.11
> > >   retrieving revision 1.12
> > >   diff -u -r1.11 -r1.12
> > >   --- site2xhtml.xsl  23 Jul 2002 08:26:18 -0000      1.11
> > >   +++ site2xhtml.xsl  29 Jul 2002 19:59:59 -0000      1.12
> > >   @@ -147,7 +147,7 @@
> > >          <tr>
> > >            <td width="10"><img src="skin/images/spacer.gif" alt=""
> > height="1" width="10" /></td>
> > >          </tr>
> > >   -      <tr><td bgcolor="#4C6C8F" height="1" colspan="2"><img
> > src="skin/images/spacer.gif" alt="" width="1" height="1" /><a
> > href="skin/images/label.gif"><img src="skin/images/spacer.gif" alt=""
> > width="1" height="1" border="0"/></a><a
> href="skin/images/page.gif"><img
> > src="skin/images/spacer.gif" alt="" width="1" height="1"
> > border="0"/></a><a href="skin/images/chapter.gif"><img
> > src="skin/images/spacer.gif" alt="" width="1" height="1"
> > border="0"/></a><a href="skin/images/chapter_open.gif"><img
> > src="skin/images/spacer.gif" alt="" width="1" height="1"
> > border="0"/></a><a href="skin/images/current.gif"><img
> > src="skin/images/spacer.gif" alt="" width="1" height="1"
> > border="0"/></a></td></tr>
> > >   +      <tr><td bgcolor="#4C6C8F" height="1" colspan="2"><img
> > src="skin/images/spacer.gif" alt="" width="1" height="1" /><a
> > href="skin/images/label.gif"></a><a href="skin/images/page.gif"></a><a
> > href="skin/images/chapter.gif"></a><a
> > href="skin/images/chapter_open.gif"></a><a
> > href="skin/images/current.gif"></a><a href="/favicon.ico"></a></td></tr>
> > >          <tr>
> > >            <td align="center" class="copyright" bgcolor="#CFDCED"
> > colspan="2">
> > >              <font face="Arial, Helvetica, Sans-Serif"
> > size="2">Copyright &#169; @year@ @vendor@. All Rights Reserved<script
> > language="JavaScript" type="text/javascript"><![CDATA[<!--
> > >
> > >
> > >
>


Re: cvs commit: xml-forrest/src/resources/skins/bert/xslt/html site2xhtml.xsl

Posted by Bert Van Kets <be...@vankets.com>.
I added a link to the favicon icon, so it would be copied.
At the same time I removed the 1pix image that contained the link.  This 
saves code and download time.
A <a href> is enough to get the images copied. It doesn not have to enclose 
an object.

You might wonder why this list of links is necessary.
The images are used in CSS, but as CSS is not parsed those images would not 
be copied without the links.  Same is true for the favicon.  If there's no 
link to the image/icon, it's not copied.

HTH,
Bert


At 12:33 30/07/2002 +1000, you wrote:
>I am not sure what was the purpose of this commit. It seems
>to have removed certain <img> tags, so leaving only links to
>images. Was that the intention? By the way, these changes have
>all been added to the forrest-site skin.
>--David
>
>bert@apache.org wrote:
> > bert        2002/07/29 12:59:59
> >
> >   Modified:    src/resources/skins/bert/xslt/html site2xhtml.xsl
> >   Log:
> >   Adding link to favicon.ico
> >
> >   Revision  Changes    Path
> >   1.12      +1 
> -1      xml-forrest/src/resources/skins/bert/xslt/html/site2xhtml.xsl
> >
> >   Index: site2xhtml.xsl
> >   ===================================================================
> >   RCS file: 
> /home/cvs/xml-forrest/src/resources/skins/bert/xslt/html/site2xhtml.xsl,v
> >   retrieving revision 1.11
> >   retrieving revision 1.12
> >   diff -u -r1.11 -r1.12
> >   --- site2xhtml.xsl  23 Jul 2002 08:26:18 -0000      1.11
> >   +++ site2xhtml.xsl  29 Jul 2002 19:59:59 -0000      1.12
> >   @@ -147,7 +147,7 @@
> >          <tr>
> >            <td width="10"><img src="skin/images/spacer.gif" alt="" 
> height="1" width="10" /></td>
> >          </tr>
> >   -      <tr><td bgcolor="#4C6C8F" height="1" colspan="2"><img 
> src="skin/images/spacer.gif" alt="" width="1" height="1" /><a 
> href="skin/images/label.gif"><img src="skin/images/spacer.gif" alt="" 
> width="1" height="1" border="0"/></a><a href="skin/images/page.gif"><img 
> src="skin/images/spacer.gif" alt="" width="1" height="1" 
> border="0"/></a><a href="skin/images/chapter.gif"><img 
> src="skin/images/spacer.gif" alt="" width="1" height="1" 
> border="0"/></a><a href="skin/images/chapter_open.gif"><img 
> src="skin/images/spacer.gif" alt="" width="1" height="1" 
> border="0"/></a><a href="skin/images/current.gif"><img 
> src="skin/images/spacer.gif" alt="" width="1" height="1" 
> border="0"/></a></td></tr>
> >   +      <tr><td bgcolor="#4C6C8F" height="1" colspan="2"><img 
> src="skin/images/spacer.gif" alt="" width="1" height="1" /><a 
> href="skin/images/label.gif"></a><a href="skin/images/page.gif"></a><a 
> href="skin/images/chapter.gif"></a><a 
> href="skin/images/chapter_open.gif"></a><a 
> href="skin/images/current.gif"></a><a href="/favicon.ico"></a></td></tr>
> >          <tr>
> >            <td align="center" class="copyright" bgcolor="#CFDCED" 
> colspan="2">
> >              <font face="Arial, Helvetica, Sans-Serif" 
> size="2">Copyright &#169; @year@ @vendor@. All Rights Reserved<script 
> language="JavaScript" type="text/javascript"><![CDATA[<!--
> >
> >
> >