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: XSL customization layer question

Bob Stayton came to the rescue with:

Two things:

1.  The test attribute won't respond properly to '>';
you should use test="position() > 1".  Fun, huh?


Oddly, it seems to have no trouble with the '>' in that position. It works
both ways. I replaced the '>' though.

2.  If you are looking to output literal whitespace, then use
the <xsl:text> element:

<xsl:template match="cmdsynopsis">
   <xsl:if test="position() &gt; 1">

That's carriage return and four space characters
inside the <xsl:text> element.

Okay, I figured the second </xsl:if> was a typo, and it worked. Then I
discovered I didn't need the four spaces, the carriage return occurs inside
of the indent and keeps the indent. Funny thing: the carriage return
doesn't seem to work unless I have a carriage return *and* at least one
space in between the xsl:text tags. Is there anything special I need to do
to get the carriage return to work without any spaces?


Dennis Grace

Information Developer
IBM Linux Technology & Solutions Center
(512) 838-3937  T/L 678-3937  cell: (512)-296-7830

This sentence no verb.

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

Powered by eList eXpress LLC