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: ListItem


Hi!

Could you pleas say some words about in what file to put this stuff below?
Lrs
Togan Muftuoglu <toganm@users.sourceforge.net> writes:

> * Lars Bjørndal; <lars.bjorndal@grieg.uib.no> on 04 Mar, 2002 wrote:
>>"Prikryl,Petr" <PRIKRYLP@skil.cz> writes:
>>
>>...>  I guess that it depends on the browser if the two
>>> cases will be rendered the same way or differently.
>>
>>Yes, I think you are right.
>
> Links, w3m and lynx all behave differently. Below is a hack for xsl
> stylesheets which was on the mailling list (sorry I do not remember who
> made the fix ) it works for me when I use *links*. Otherwise the default
> outcome is also perfectly correct if you look via a different browser
>
> Hope this helps
>
> --
> Togan Muftuoglu
>
>
> <?xml version="1.0" encoding="utf-8" ?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>                 version="1.0">
>
> <xsl:template match="para">
>   <xsl:choose>
>     <xsl:when test="position() = 1 and parent::listitem">
>       <xsl:call-template name="firstlistpara"/>
>     </xsl:when>
>     <xsl:otherwise>
>       <xsl:call-template name="notfirstlistpara"/>
>     </xsl:otherwise>
>   </xsl:choose>
> </xsl:template>
>
> <xsl:template name="firstlistpara">
>       <xsl:call-template name="anchor">
>         <xsl:with-param name="node" select="parent::listitem"/>
>         </xsl:call-template>
>
>         <xsl:call-template name="anchor"/>
>         <xsl:apply-templates/>
> </xsl:template>
>
> <xsl:template name="notfirstlistpara">
>   <p>
>       <xsl:call-template name="anchor">
>         <xsl:with-param name="node" select="parent::listitem"/>
>         </xsl:call-template>
>
>         <xsl:call-template name="anchor"/>
>         <xsl:apply-templates/>
>   </p>
> </xsl:template>
>
> </xsl:stylesheet>

-- 
Lars Bjørndal <lars.bjorndal@grieg.uib.no>
Storetveitåsen 15, 5067 Bergen.
Tlf.: 55 28 87 55  Mobil: 958 37 537  Telefaks: 55 28 40 67


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


Powered by eList eXpress LLC