docbook-apps

  • 1.  inserting javascript link in chunked html

    Posted 09-25-2006 10:42
    Hi

    I'd like to insert a javascript link in the head element of every page of my chunked hmtl files.



    How can I do this in the customization layer?
    I had a look at http://www.sagehill.net/docbookxsl/HtmlHead.html, but as far as I can see, this won't work for a script tag.

    Thanks, Andi



  • 2.  Re: [docbook-apps] inserting javascript link in chunked html

    Posted 09-25-2006 11:04
    Copy the chunk-element-content template into your customization layer
    and change it. If you would like to have different scripts for xhtml
    and html, make your customized chunk-element-content template call
    another template that you define in the xhtml and html parts of your
    customization layer.

    On 9/25/06, Schläpfer Andreas <andreas.schlaepfer@ntb.ch> wrote:
    > Hi
    >
    > I'd like to insert a javascript link in the head element of every page of my chunked hmtl files.
    >
    >
    >
    > How can I do this in the customization layer?
    > I had a look at http://www.sagehill.net/docbookxsl/HtmlHead.html, but as far as I can see, this won't work for a script tag.
    >
    > Thanks, Andi
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >
    >


    --
    http://chris.chiasson.name/



  • 3.  Re: [docbook-apps] inserting javascript link in chunked html

    Posted 09-25-2006 12:38
    Schläpfer Andreas wrote:

    > I had a look at http://www.sagehill.net/docbookxsl/HtmlHead.html, but as far as I can see, this won't work for a script tag.

    Why? You can define named template user.head.content to generate custom
    script element:

    <xsl:template name="user.head.content">

    </xsl:template>

    --
    ------------------------------------------------------------------
    Jirka Kosek e-mail: jirka@kosek.cz http://www.kosek.cz
    ------------------------------------------------------------------
    Profesionální školení a poradenství v oblasti technologií XML.
    Podívejte se na náš nove spuštený web http://DocBook.cz
    Podrobný prehled školení http://xmlguru.cz/skoleni/
    ------------------------------------------------------------------
    Nejbližší termíny školení:
    ** XSLT 23.-26.10.2006 ** XML schémata 13.-15.11.2006 **
    ** DocBook 11.-13.12.2006 ** XSL-FO 11.-12.12.2006 **
    ------------------------------------------------------------------
    http://xmlguru.cz Blog mostly about XML for English readers
    ------------------------------------------------------------------