List Info

Thread: Re: Column problems




Re: Column problems
user name
2007-07-20 14:48:26
Bob - apologies, I found one source of the problems:&nbsp; somewhere down the line I had lost the <title&gt; and since I couldn't validate, XEP did the best it could with an invalid document.
I've now set up to validate with relames.jar and (with a title) it now validates OK, XEP handles it fine, and my points 1. and 2. are now resolved.

However, point 3. is still unresolved
3. the 'wrap' code

<xsl:attribute-set name="verbatim.properties">
 
<xsl:attribute name="wrap-option&quot;>wrap</xsl:attribute>;
</xsl:attribute-set>
 
does not wrap the long lines in the <literallayout> in <blockquote>; elements.

Ron
-- 
Ron Catterall, Phd, DSc &nbsp; &nbsp;     ; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  email: roncatterall.net
Prolongacion de Hidalgo 140     ; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp;   ; &nbsp; http://catterall.net/
San Felipe del Agua ; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;   &nbsp;   ; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp;   ; tel: +52 951 520 1821
Oaxaca &nbsp; &nbsp;  68020&nbsp; Mexico    ; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp;   ; &nbsp; fax: +1 530 348 8309
Re: Column problems
user name
2007-07-20 15:48:53
The wrap-option works for me, when the text has spaces in it to permit breaks, or when hyphenation is turned on. ;
 
If you have spaces and still get no breaks, I would take a peak inside the FO output to see if the wrap-option property is actually making it into the FO for the literallayout.
 
Bob Stayton
Sagehill Enterprises
DocBook Consulting
sagehill.net">bobssagehill.net
&nbsp;
 ;
----- Original Message -----
Sent: Friday, July 20, 2007 12:48 PM
Subject: Re: [docbook-apps] Column problems

Bob - apologies, I found one source of the problems:&nbsp; somewhere down the line I had lost the <title&gt; and since I couldn't validate, XEP did the best it could with an invalid document.
I've now set up to validate with relames.jar and (with a title) it now validates OK, XEP handles it fine, and my points 1. and 2. are now resolved.

However, point 3. is still unresolved
3. the 'wrap' code

<xsl:attribute-set name="verbatim.properties">
 
<xsl:attribute name="wrap-option">wrap</xsl:attribute>;
</xsl:attribute-set>
 
does not wrap the long lines in the <literallayout> in <blockquote> elements.

Ron
-- 
Ron Catterall, Phd, DSc  &nbsp; &nbsp;   ;  &nbsp; &nbsp;   ;  &nbsp; &nbsp; &nbsp;  email: roncatterall.net
Prolongacion de Hidalgo 140    &nbsp; &nbsp;   ;  &nbsp; &nbsp;   ;  &nbsp; &nbsp;   ; http://catterall.net/
San Felipe del Agua ; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp;   ;  &nbsp; &nbsp;   ;  &nbsp; &nbsp;   ;  &nbsp; &nbsp;   ; tel: +52 951 520 1821
Oaxaca &nbsp; &nbsp;  68020&nbsp; Mexico&nbsp;  &nbsp; &nbsp;   ;  &nbsp; &nbsp;   ;  &nbsp; &nbsp;   ; fax: +1 530 348 8309
Re: Column problems
user name
2007-07-20 22:02:14
Bob
I had a:
 &nbsp; &nbsp; &nbsp; &nbsp;  <fo:block id="{$id}"
 &nbsp;   ; &nbsp; &nbsp; &nbsp; ; &nbsp; &nbsp; &nbsp;  wrap-option
='no-wrap'
in:
<xsl:template match="literallayout&quot;>
in an earlier customization file

Which apparently took precedence over the later one in
<xsl:attribute-set name="verbatim.properties">
  <xsl:attribute name="wrap-option&quot;>wrap</xsl:attribute>;
All OK now, many thanks.&nbsp; Was it a precedence problem?
Ron


The wrap-option ;works for me, when the text has spaces in it to permit breaks, or when hyphenation is turned on
 
If you have spaces and still get no breaks, I would take a peak inside the FO output to see if the wrap-option property is actually making it into the FO for the literallayout.
 
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobssagehill.net">bobssagehill.net
 
 
----- Original Message -----
From: roncatterall.net">Ron Catterall
To: bobssagehill.net">Bob Stayton
Cc: lists.oasis-open.org" >docbook-appslists.oasis-open.org
Sent: Friday, July 20, 2007 12:48 PM
Subject: Re: [docbook-apps] Column problems

Bob - apologies, I found one source of the problems:&nbsp; somewhere down the line I had lost the <title&gt; and since I couldn't validate, XEP did the best it could with an invalid document.
I've now set up to validate with relames.jar and (with a title) it now validates OK, XEP handles it fine, and my points 1. and 2. are now resolved.

However, point 3. is still unresolved
3. the 'wrap' code

<xsl:attribute-set name="verbatim.properties">
  <xsl:attribute name="wrap-option&quot;>wrap</xsl:attribute>;
</xsl:attribute-set>
 
does not wrap the long lines in the <literallayout> in <blockquote> elements.

Ron
--
Ron Catterall, Phd, DSc &nbsp; &nbsp;     ; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  email: roncatterall.net
Prolongacion de Hidalgo 140     ; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp;   ; &nbsp; http://catterall.net/
San Felipe del Agua ; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;   &nbsp;   ; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp;   ; tel: +52 951 520 1821
Oaxaca &nbsp; &nbsp;  68020&nbsp; Mexico    ; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp;   ; &nbsp; fax: +1 530 348 8309


-- 
Ron Catterall, Phd, DSc &nbsp; &nbsp;     ; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;  email: roncatterall.net
Prolongacion de Hidalgo 140     ; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp;   ; &nbsp; http://catterall.net/
San Felipe del Agua ; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;   &nbsp;   ; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp; &nbsp;   ; tel: +52 951 520 1821
Oaxaca &nbsp; &nbsp;  68020&nbsp; Mexico    ; &nbsp; &nbsp;   &nbsp; &nbsp; &nbsp;   &nbsp;   ; &nbsp; fax: +1 530 348 8309
Re: Column problems
user name
2007-07-22 14:43:13
Hi Ron,
Indeed, a literal attribute on an element has precedence over an attribute in a referenced attribute-set.
 
Bob Stayton
Sagehill Enterprises
DocBook Consulting
sagehill.net">bobssagehill.net
&nbsp;
 ;
----- Original Message -----
Sent: Friday, July 20, 2007 8:02 PM
Subject: Re: [docbook-apps] Column problems

Bob
I had a:
 &nbsp; &nbsp; &nbsp; &nbsp;  <fo:block id="{$id}"
 &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp;   ; &nbsp;  wrap-option
='no-wrap'
in:
<xsl:template match="literallayout">
in an earlier customization file

Which apparently took precedence over the later one in
<xsl:attribute-set name="verbatim.properties">
  <xsl:attribute name="wrap-option">wrap</xsl:attribute>;
All OK now, many thanks.&nbsp; Was it a precedence problem?
Ron


The wrap-option works for me, when the text has spaces in it to permit breaks, or when hyphenation is turned on. 
 
If you have spaces and still get no breaks, I would take a peak inside the FO output to see if the wrap-option property is actually making it into the FO for the literallayout.
 
Bob Stayton
Sagehill Enterprises
DocBook Consulting
sagehill.net">bobssagehill.net
 

----- Original Message -----
From: roncatterall.net">Ron Catterall
To: bobssagehill.net">Bob Stayton
Cc: lists.oasis-open.org">docbook-appslists.oasis-open.org
Sent: Friday, July 20, 2007 12:48 PM
Subject: Re: [docbook-apps] Column problems

Bob - apologies, I found one source of the problems:&nbsp; somewhere down the line I had lost the <title&gt; and since I couldn't validate, XEP did the best it could with an invalid document.
I've now set up to validate with relames.jar and (with a title) it now validates OK, XEP handles it fine, and my points 1. and 2. are now resolved.

However, point 3. is still unresolved
3. the 'wrap' code

<xsl:attribute-set name="verbatim.properties">
  <xsl:attribute name="wrap-option">wrap</xsl:attribute>;
</xsl:attribute-set>
 
does not wrap the long lines in the <literallayout> in <blockquote> elements.

Ron
--
Ron Catterall, Phd, DSc  &nbsp; &nbsp;   ;  &nbsp; &nbsp;   ;  &nbsp; &nbsp; &nbsp;  email: roncatterall.net
Prolongacion de Hidalgo 140    &nbsp; &nbsp;   ;  &nbsp; &nbsp;   ;  &nbsp; &nbsp;   ; http://catterall.net/
San Felipe del Agua ; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp;   ;  &nbsp; &nbsp;   ;  &nbsp; &nbsp;   ;  &nbsp; &nbsp;   ; tel: +52 951 520 1821
Oaxaca &nbsp; &nbsp;  68020&nbsp; Mexico&nbsp;  &nbsp; &nbsp;   ;  &nbsp; &nbsp;   ;  &nbsp; &nbsp;   ; fax: +1 530 348 8309


-- 
Ron Catterall, Phd, DSc  &nbsp; &nbsp;   ;  &nbsp; &nbsp;   ;  &nbsp; &nbsp; &nbsp;  email: roncatterall.net
Prolongacion de Hidalgo 140    &nbsp; &nbsp;   ;  &nbsp; &nbsp;   ;  &nbsp; &nbsp;   ; http://catterall.net/
San Felipe del Agua ; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp;   ;  &nbsp; &nbsp;   ;  &nbsp; &nbsp;   ;  &nbsp; &nbsp;   ; tel: +52 951 520 1821
Oaxaca &nbsp; &nbsp;  68020&nbsp; Mexico&nbsp;  &nbsp; &nbsp;   ;  &nbsp; &nbsp;   ;  &nbsp; &nbsp;   ; fax: +1 530 348 8309
[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )