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] | [List Home]


Subject: Re: [docbook-apps] xsl/groff varlistentry/term


On Fri, May 23, 2003 at 11:27:36AM -0400, Sam Steingold wrote:
> I want the synonymous options to be listed on separate lines,
> like this:
> 
>   -h
>   -help
>         Displays a help message ....
> 
> I tried
> 
> <xsl:template match="varlistentry/term">
>  <span class="term"><xsl:call-template name="anchor"/>
>   <xsl:apply-templates/>&#10;
>  </span>
> </xsl:template>
> 
> (similar to
> 
> <xsl:template match="varlistentry/term">
>  <span class="term"><xsl:call-template name="anchor"/>
>   <xsl:apply-templates/><br/>
>  </span>
> </xsl:template>
> 
> for XHTML), but I get
> 
>        -h--help
>               Displays a help message ....
> 
> Please help!

In: 

<xsl:apply-templates/>&#10;

The XSLT processor is interpreting the &#10; as a
simple line feed *in the stylesheet*, not as literal
output.  So it is treated as whitespace in the
stylesheet and ignored.

Enclose it in xsl:text to output it:

<xsl:apply-templates/><xsl:text>&#10;</xsl:text>


-- 

Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
The SCO Group                               fax:   (831) 429-1887
                                            email: bobs@sco.com


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