docbook-apps

  • 1.  Customizing

    Posted 02-28-2008 18:35
    Hi!

    For testing, I made a copy of the javahelp.xsl, and then I made my
    customizing in the copy of the original file. Now this file works fine for
    me, but I think, I have to make my customizing how described in the manual
    (http://sagehill.net/docbookxsl/CustomMethods.html#WriteCustomization).

    I must replace some block oft he original file with my changes. So I created
    a file how described in the manual, and tried to make my transformation, but
    this didn't work. There are strange errors, like 'directory not found'.

    For example:


    ORIGINAL TEXT BLOCK:



    <xsl:template name="helpset">
    <xsl:call-template name="write.chunk.with.doctype">
    <xsl:with-param name="filename"
    select="concat($base.dir,'jhelpset.hs')"/>
    <xsl:with-param name="method" select="'xml'"/>
    <xsl:with-param name="indent" select="'yes'"/>
    <xsl:with-param name="doctype-public" select="'-//Sun Microsystems
    Inc.//DTD JavaHelp HelpSet Version 1.0//EN'"/>
    <xsl:with-param name="doctype-system"
    select="'http://java.sun.com/products/javahelp/helpset_1_0.dtd'"/>
    <xsl:with-param name="content">
    <xsl:call-template name="helpset.content"/>
    </xsl:with-param>
    </xsl:call-template>
    </xsl:template>

    <xsl:template name="helpset.content">
    <xsl:variable name="title">
    <xsl:apply-templates select="." mode="title.markup"/>
    </xsl:variable>

    <helpset version="1.0">



    <maps>
    <homeID>top</homeID>
    <mapref location="jhelpmap.jhm"/>
    </maps>


    <view>
    <name>TOC</name>

    <type>javax.help.TOCView</type>
    <data>jhelptoc.xml</data>
    </view>

    <view>
    <name>Index</name>

    <type>javax.help.IndexView</type>
    <data>jhelpidx.xml</data>
    </view>

    <view>
    <name>Search</name>

    <type>javax.help.SearchView</type>
    <data
    engine="com.sun.java.help.search.DefaultSearchEngine">JavaHelpSearch</data>
    </view>
    </helpset>
    </xsl:template>




    MY VERSION:



    <xsl:template name="helpset">
    <xsl:call-template name="write.chunk.with.doctype">
    <xsl:with-param name="filename"
    select="concat($base.dir,'jhelpset_',$language,'.hs')"/>
    <xsl:with-param name="method" select="'xml'"/>
    <xsl:with-param name="indent" select="'yes'"/>
    <xsl:with-param name="doctype-public"
    select="'-//Sun Microsystems Inc.//DTD JavaHelp HelpSet Version
    2.0//EN'"/>
    <xsl:with-param name="doctype-system"
    select="'http://java.sun.com/products/javahelp/helpset_2_0.dtd'"/>
    <xsl:with-param name="content">
    <xsl:call-template name="helpset.content"/>
    </xsl:with-param>
    </xsl:call-template>
    </xsl:template>

    <xsl:template name="helpset.content">
    <xsl:variable name="title">
    <xsl:apply-templates select="." mode="title.markup"/>
    </xsl:variable>

    <helpset version="2.0">



    <maps>
    <homeID>book</homeID>
    <mapref location="jhelpmap.jhm"/>
    </maps>


    <view>
    <name>TOC</name>

    <type>javax.help.TOCView</type>
    <data>jhelptoc.xml</data>
    </view>

    <view>
    <name>Index</name>

    <type>javax.help.IndexView</type>
    <data>jhelpidx.xml</data>
    </view>

    <view>
    <name>Search</name>

    <type>javax.help.SearchView</type>
    <data
    engine="com.sun.java.help.search.DefaultSearchEngine">JavaHelpSearch</data>
    </view>

    <view>
    <name>Favorites</name>

    <type>javax.help.FavoritesView</type>
    </view>


    <presentation xml:lang="{$language}" default="true"
    displayviews="true"
    displayviewimages="true">
    <name>default</name>
    <size width="640" height="480"/>
    <location x="200" y="200"/>

    <toolbar>
    <helpaction>javax.help.BackAction</helpaction>
    <helpaction>javax.help.ForwardAction</helpaction>
    <helpaction>javax.help.HomeAction</helpaction>
    <helpaction>javax.help.PrintAction</helpaction>
    <helpaction>javax.help.PrintSetupAction</helpaction>
    <helpaction>javax.help.ReloadAction</helpaction>
    <helpaction>javax.help.SeparatorAction</helpaction>
    </toolbar>
    </presentation>
    </helpset>
    </xsl:template>



    Please can anyone explain, how my file must look like, to replace this code
    from the original file with my version?

    Thanks,
    Christian.




  • 2.  FrameMaker EDD for DocBook

    Posted 02-28-2008 18:41
    Can anyone tell me if there is a DocBook EDD and conversion table
    available? I'm using Frame 8 and would love to use something tested and
    proven!

    Mollye Barrett
    ClearPath, LLC
    414-331-1378



  • 3.  Re: [docbook-apps] Customizing

    Posted 02-29-2008 09:01
    Hi Christian,

    Can you provide some more information? Which operation system and
    docbook version do you use? When does the error occurs? Post the error
    message.

    Regards

    Stefan


    Christian-Josef Schrattenthaler schrieb:
    > Hi!
    >
    > For testing, I made a copy of the javahelp.xsl, and then I made my
    > customizing in the copy of the original file. Now this file works fine for
    > me, but I think, I have to make my customizing how described in the manual
    > (http://sagehill.net/docbookxsl/CustomMethods.html#WriteCustomization).
    >
    > I must replace some block oft he original file with my changes. So I
    created
    > a file how described in the manual, and tried to make my
    transformation, but
    > this didn't work. There are strange errors, like 'directory not found'.
    >
    > For example:
    >
    >
    > ORIGINAL TEXT BLOCK:
    >
    >
    >
    > <xsl:template name="helpset">
    > <xsl:call-template name="write.chunk.with.doctype">
    > <xsl:with-param name="filename"
    > select="concat($base.dir,'jhelpset.hs')"/>
    > <xsl:with-param name="method" select="'xml'"/>
    > <xsl:with-param name="indent" select="'yes'"/>
    > <xsl:with-param name="doctype-public" select="'-//Sun Microsystems
    > Inc.//DTD JavaHelp HelpSet Version 1.0//EN'"/>
    > <xsl:with-param name="doctype-system"
    > select="'http://java.sun.com/products/javahelp/helpset_1_0.dtd'"/>
    > <xsl:with-param name="content">
    > <xsl:call-template name="helpset.content"/>
    > </xsl:with-param>
    > </xsl:call-template>
    > </xsl:template>
    >
    > <xsl:template name="helpset.content">
    > <xsl:variable name="title">
    > <xsl:apply-templates select="." mode="title.markup"/>
    > </xsl:variable>
    >
    > <helpset version="1.0">
    >
    >
    >
    > <maps>
    > <homeID>top</homeID>
    > <mapref location="jhelpmap.jhm"/>
    > </maps>
    >
    >
    > <view>
    > <name>TOC</name>
    >
    > <type>javax.help.TOCView</type>
    > <data>jhelptoc.xml</data>
    > </view>
    >
    > <view>
    > <name>Index</name>
    >
    > <type>javax.help.IndexView</type>
    > <data>jhelpidx.xml</data>
    > </view>
    >
    > <view>
    > <name>Search</name>
    >
    > <type>javax.help.SearchView</type>
    > <data
    >
    engine="com.sun.java.help.search.DefaultSearchEngine">JavaHelpSearch</data>
    > </view>
    > </helpset>
    > </xsl:template>
    >
    >
    >
    >
    > MY VERSION:
    >
    >
    >
    > <xsl:template name="helpset">
    > <xsl:call-template name="write.chunk.with.doctype">
    > <xsl:with-param name="filename"
    > select="concat($base.dir,'jhelpset_',$language,'.hs')"/>
    > <xsl:with-param name="method" select="'xml'"/>
    > <xsl:with-param name="indent" select="'yes'"/>
    > <xsl:with-param name="doctype-public"
    > select="'-//Sun Microsystems Inc.//DTD JavaHelp HelpSet Version
    > 2.0//EN'"/>
    > <xsl:with-param name="doctype-system"
    > select="'http://java.sun.com/products/javahelp/helpset_2_0.dtd'"/>
    > <xsl:with-param name="content">
    > <xsl:call-template name="helpset.content"/>
    > </xsl:with-param>
    > </xsl:call-template>
    > </xsl:template>
    >
    > <xsl:template name="helpset.content">
    > <xsl:variable name="title">
    > <xsl:apply-templates select="." mode="title.markup"/>
    > </xsl:variable>
    >
    > <helpset version="2.0">
    >
    >
    >
    > <maps>
    > <homeID>book</homeID>
    > <mapref location="jhelpmap.jhm"/>
    > </maps>
    >
    >
    > <view>
    > <name>TOC</name>
    >
    > <type>javax.help.TOCView</type>
    > <data>jhelptoc.xml</data>
    > </view>
    >
    > <view>
    > <name>Index</name>
    >
    > <type>javax.help.IndexView</type>
    > <data>jhelpidx.xml</data>
    > </view>
    >
    > <view>
    > <name>Search</name>
    >
    > <type>javax.help.SearchView</type>
    > <data
    >
    engine="com.sun.java.help.search.DefaultSearchEngine">JavaHelpSearch</data>
    > </view>
    >
    > <view>
    > <name>Favorites</name>
    >
    > <type>javax.help.FavoritesView</type>
    > </view>
    >
    >
    > <presentation xml:lang="{$language}" default="true"
    > displayviews="true"
    > displayviewimages="true">
    > <name>default</name>
    > <size width="640" height="480"/>
    > <location x="200" y="200"/>
    >
    > <toolbar>
    > <helpaction>javax.help.BackAction</helpaction>
    > <helpaction>javax.help.ForwardAction</helpaction>
    > <helpaction>javax.help.HomeAction</helpaction>
    > <helpaction>javax.help.PrintAction</helpaction>
    > <helpaction>javax.help.PrintSetupAction</helpaction>
    > <helpaction>javax.help.ReloadAction</helpaction>
    > <helpaction>javax.help.SeparatorAction</helpaction>
    > </toolbar>
    > </presentation>
    > </helpset>
    > </xsl:template>
    >
    >
    >
    > Please can anyone explain, how my file must look like, to replace this
    code
    > from the original file with my version?
    >
    > Thanks,
    > Christian.
    >
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >