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] epub: how to set linear = 0


Thanks.

If I copy the whole     <xsl:template name="opf.spine"> into
customization layer and substitute the code, I get the same result.
YES.

However, if I change        <xsl:text>yes </xsl:text> to  <xsl:text>no
</xsl:text> (so both options say "No") then  I see the linear="no" in
the output content.opf.

for some reason that test is not working right. It's being caught at
the top without going to the otherwise.

Robert

On Sun, Apr 10, 2011 at 11:10 AM, Keith Fahlgren <abdelazer@gmail.com> wrote:
> On Sun, Apr 10, 2011 at 1:39 AM, Robert Nagle <idiotprogrammer@gmail.com> wrote:
>> I would assume that for epub.cover.linear, if the value is 0, then
>> linear is supposed to be "no". But by default it seems to show a yes
>> value in my output. If I change the parameter to   <xsl:param
>> name="epub.cover.linear" select="1" /> I get the exact same result.
>>
>> Is this a bug?
>
> Yes, try
>
>
>
>          <xsl:choose>
>            <xsl:when test="$epub.cover.linear != 0">
>              <xsl:text>yes</xsl:text>
>            </xsl:when>
>            <xsl:otherwise>no</xsl:otherwise>
>          </xsl:choose>
>



-- 
Robert Nagle
12777 Ashford Point Dr #1417
Houston, Texas 77082
713 893 3424
http://www.robertnagle.info


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