OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Subject: Re: DOCBOOK-APPS: customized HTML-Layout of output files


Here is an outline of solution based on the following layout. Names in
drawing is frame target names.

    |        |         head                  |
    |        |-------------------------------|
    |        |                               |
    | navbar |                               |
    |        |   chunkarea                   |
    |        |                               |

Note the stylesheet utilises XSLT 1.1 elements (multiple document
output) (supported by Saxon in xsl:document)

Another thing you should be aware of, is that the navigation bar of your
chunked documents should properly be modified. Especially the reference
to the Home and/or Up link (Be carefull not to create recursive frames).

<xsl stylesheet xmlns:xsl="..." version="1.1">
  <xsl:import href="docbok-xsl/html/chunk.xsl">   <!-- Norms chunk
stylesheet -->


  <!-- Chunking parameter -->

  <xsl:param name="root.filename" select="firstpage">

<xsl:template match="/">

  <!--  Chunk the document : Note root chunk will be called firstpage
  <xsl:apply-imports /> 

  <xsl:message>Creating volume <xsl:number value="$volnum" />
framemaster page </xsl:message>

  <!--  Create the frame master for this document --> 
  <xsl:call-template name="create-frame-master" /> 

  <!--  Create the header for the master document --> 
  <xsl:call-template name="create-header">
    <xsl:with-param name="css" select="'../style/bars.css'" /> 
    <xsl:with-param name="img" select="'../images'" /> 

  <!--  Create the toolbar page for this document --> 
  <xsl:message>Creating volume <xsl:number value="$volnum" />
navigationbar page </xsl:message>

  <xsl:document href="navbar.html" method="html">
      <head><link rel="stylesheet" href="../style/bars.css"
type="text/css" /></head>

         Something here: e.g. links to chapters, appendixes.
         Note, that each link should point to rhe target chunkarea.



<xsl:template name="create-frame-master">
   <xsl:document href="frame-master.html" method="html">
       <frameset framespacing="0" frameborder="0" cols="140,*">
         <frame src="navbar.html" name="navbar" marginwidth="0"
marginheight="0" framespacing="0" frameborder="0" border="0" /> 
         <frameset framespacing="0" frameborder="0" rows="95,*">
           <frame src="head.html" name="head" noresize="noresize"
scrolling="no" /> 
           <frame src="firstpage.html" name="chunkarea" scrolling="auto"

<!--  ===============================================================
<!-- Fuction: Create a header document
       Params:  All paramaeters are required
         css:  name of styleheet file
         img:  name of image directory


<xsl:template name="create-header">
  <xsl:param name="css" /> 
  <xsl:param name="img" /> 
  <xsl:document href="head.html" method="html">
        <link rel="stylesheet" href="{$css}" type="text/css" /> 
        <div class="headbar">
          <xsl:value-of select="//bookinfo/title" /> 
          <br /> 
          <xsl:variable name="volnum" select="//bookinfo/volumenum" /> 
          Volume <xsl:number value="$volnum" />           
          <xsl:value-of select="//bookinfo/subtitle" /> 
          <br /> 
          Version <xsl:value-of
select="//bookinfo/revhistory/revision[1]/revnumber" /> 
          <xsl:value-of select="//bookinfo/revhistory/revision[1]/date"
          ] - 
          <xsl:value-of select="//bookinfo/corpauthor" /> 



-----Original Message-----
Hi Jens,

thanks for helping. I read the 'documentation how-to'. Unfortunately I
didn't find the answer to the following:

> What you basically need is to write a number html frames (top, left, 
> buttom html pages). The empty area could then be a chunked html 
> version of your document.

This is exactly what I want. But how do I get them together? Could you
help again?


-----Ursprüngliche Nachricht-----
Von: Jens Stavnstrup [mailto:js@ddre.dk]
Gesendet: Mittwoch, 12. Juni 2002 14:10
An: Joachim Liedtke
Cc: docbook-apps@lists.oasis-open.org
Betreff: Re: DOCBOOK-APPS: customized HTML-Layout of output files


First of all you don't wan't ever to modify Norms stylesheets, but rater
write you own customized stylesheet, which may modify some of the
default behaviour.

What you basically need is to write a number html frames (top, left,
buttom html pages). The empty area could then be a chunked html version
of your document.

You refered to the PHP net as an example of what you would like. Try
look at http://www.php.net/download-docs.php, which contains a
"Documentation howto link, which I assume answers all your questions.



On Wed, 12 Jun 2002, Joachim Liedtke wrote:

> Hi,
> I'm porting our documentations to DocBook to generate HTML-files for 
> our intranet. So far I sorted out how to manipulate the output by 
> setting differnet values in the 'html/param.xsl' and how to chunk the 
> document
> many 'pieces' (thanks for the 'helping hand' from some listmembers).
> Now I'm stuck, trying to get the generated output into our CI 
> according layout. I'm aware that this is probably a very simple 
> matter. But after going through the various .xsl-files, I'm completly 
> confused where to put the 'non DocBook-HTML' to make the output look 
> like the rest of our site.
> So far I tried to manipulate the 'docbook.xsl' but it didn't work the 
> way
> expected it to.
> What is a good and elegant way to get a manual similar to the PHP 
> manual ( http://www.php.net/manual/en/ ).
> I Hope this question isn't too demanding, but I'm really stuck.
> Thanks a lot
> Joachim

--Frigivet til Internet transmission af FOFT--
--Released for Internet transmission by DDRE--

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Powered by eList eXpress LLC