Lizl | 14 Dec 2007 14:49
Picon
Favicon

the last row height of the table

Hi:
 
  In the A4 page master, I put some text in the top of the page, then a table followed, the table have table-header and some table-body, in table-body, there are some table-rows in it, the row number is not fixed but it can be calculated out by xslt.
 
  My questions is I want the last row of the table to be extend to the bottom of the region-body. I have used the "height", "block-progress-dimention" properties on table-row or table or the table wrapper block-container, but all of them failured. what should I do?
 
  the source code as follow:
 
 
<?xml version="1.0" encoding="utf-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
 <fo:layout-master-set>
  <fo:simple-page-master master-name="A4portrait-left-page" change-bar-placement="left" page-height="297mm" page-width="210mm" margin-left="15mm" margin-right="35mm">
   <fo:region-body region-name="A4portrait-body" margin-top="32mm" margin-bottom="32mm"/>
   <fo:region-before region-name="A4portrait-header" extent="30mm" display-align="after"/>
   <fo:region-after region-name="A4portrait-footer-left" extent="30mm" display-align="before"/>
  </fo:simple-page-master>
  <fo:simple-page-master master-name="A4portrait-right-page" change-bar-placement="left" page-height="297mm" page-width="210mm" margin-left="35mm" margin-right="15mm">
   <fo:region-body region-name="A4portrait-body" margin-top="32mm" margin-bottom="32mm" background-color="#dddddd"/>
   <fo:region-before region-name="A4portrait-header" extent="30mm" display-align="after"/>
   <fo:region-after region-name="A4portrait-footer-right" extent="30mm" display-align="before"/>
  </fo:simple-page-master>
  <fo:simple-page-master master-name="A4portrait-blank-page" change-bar-placement="left" page-height="297mm" page-width="210mm" margin-left="15mm" margin-right="35mm">
   <fo:region-body region-name="A4portrait-blank-page-body" margin-top="32mm" margin-bottom="32mm" margin-left="160mm"/>
   <fo:region-before region-name="A4portrait-header" extent="30mm" display-align="after" precedence="true"/>
   <fo:region-after region-name="A4portrait-footer-left" extent="30mm" display-align="before" precedence="true"/>
   <fo:region-start region-name="A4portrait-blank-page-content" extent="160mm" display-align="center"/>
  </fo:simple-page-master>
  <fo:simple-page-master master-name="A4portrait-pure-blank-page" page-width="210mm" page-height="297mm">
   <fo:region-body region-name="none"/>
  </fo:simple-page-master>
  <fo:page-sequence-master master-name="A4portrait-transltr-master">
   <fo:repeatable-page-master-alternatives>
    <fo:conditional-page-master-reference master-reference="A4portrait-right-page" odd-or-even="odd"/>
    <fo:conditional-page-master-reference master-reference="A4portrait-pure-blank-page" odd-or-even="even"/>
   </fo:repeatable-page-master-alternatives>
  </fo:page-sequence-master>
  <fo:page-sequence-master master-name="A4portrait-main-master">
   <fo:repeatable-page-master-alternatives>
    <fo:conditional-page-master-reference master-reference="A4portrait-blank-page" blank-or-not-blank="blank" odd-or-even="even"/>
    <fo:conditional-page-master-reference master-reference="A4portrait-right-page" odd-or-even="odd"/>
    <fo:conditional-page-master-reference master-reference="A4portrait-left-page" odd-or-even="even"/>
   </fo:repeatable-page-master-alternatives>
  </fo:page-sequence-master>
 </fo:layout-master-set>
 <fo:page-sequence master-reference="A4portrait-main-master" force-page-count="end-on-even" id="transltr">
  <fo:flow flow-name="A4portrait-body">
   <fo:block-container>
    <fo:block font-family="宋体" font-size="16pt" font-style="normal" font-weight="normal" space-before="13pt" space-before.conditionality="retain" space-after="13pt" space-after.conditionality="retain" line-height="100%" text-align="center" text-align-last="center">The table title</fo:block>
    <fo:block text-indent="2em">some text to describe the table text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text </fo:block>
   </fo:block-container>
   <fo:block-container border="solid red 1pt">
    <fo:table font-family="宋体" font-size="10.5pt" font-style="normal" font-weight="normal" space-before="2.1pt" space-before.conditionality="retain" space-after="2.1pt" line-height="110%" border-width="1pt" text-align-last="center">
     <fo:table-column column-number="1" column-width="30mm"/>
     <fo:table-column column-number="2" column-width="40mm"/>
     <fo:table-column column-number="3" column-width="30mm"/>
     <fo:table-column column-number="4" column-width="30mm"/>
     <fo:table-column column-number="5" column-width="30mm"/>
     <fo:table-header>
      <fo:table-row border-width="1pt" height="10mm" border-style="solid">
       <fo:table-cell border-width="0.5pt" border-style="solid" padding-before="6pt" padding-after="6pt">
        <fo:block>col1</fo:block>
       </fo:table-cell>
       <fo:table-cell border-width="0.5pt" border-style="solid" padding-before="6pt" padding-after="6pt">
        <fo:block>col2</fo:block>
       </fo:table-cell>
       <fo:table-cell border-width="0.5pt" border-style="solid" padding-before="6pt" padding-after="6pt">
        <fo:block>col3</fo:block>
       </fo:table-cell>
       <fo:table-cell border-width="0.5pt" border-style="solid" padding-before="6pt" padding-after="6pt">
        <fo:block>col4</fo:block>
       </fo:table-cell>
       <fo:table-cell border-width="0.5pt" border-style="solid" padding-before="6pt" padding-after="6pt">
        <fo:block>col5</fo:block>
       </fo:table-cell>
      </fo:table-row>
     </fo:table-header>
     <fo:table-body>
      <fo:table-row height="10mm">
       <fo:table-cell border-width="0.5pt" border-left-style="solid" border-right-style="solid" padding-before="6pt" padding-after="6pt">
        <fo:block>ARJ21</fo:block>
       </fo:table-cell>
       <fo:table-cell border-width="0.5pt" border-left-style="solid" border-right-style="solid" padding-before="6pt" padding-after="6pt">
        <fo:block>002</fo:block>
       </fo:table-cell>
       <fo:table-cell border-width="0.5pt" border-left-style="solid" border-right-style="solid" padding-before="6pt" padding-after="6pt">
        <fo:block>M002</fo:block>
       </fo:table-cell>
       <fo:table-cell border-width="0.5pt" border-left-style="solid" border-right-style="solid" padding-before="6pt" padding-after="6pt">
        <fo:block>A002</fo:block>
       </fo:table-cell>
       <fo:table-cell border-width="0.5pt" border-left-style="solid" border-right-style="solid" padding-before="6pt" padding-after="6pt">
        <fo:block>CXA</fo:block>
       </fo:table-cell>
      </fo:table-row>
      <fo:table-row height="10mm">
       <fo:table-cell border-width="0.5pt" border-left-style="solid" border-right-style="solid" padding-before="6pt" padding-after="6pt">
        <fo:block>ARJ21</fo:block>
       </fo:table-cell>
       <fo:table-cell border-width="0.5pt" border-left-style="solid" border-right-style="solid" padding-before="6pt" padding-after="6pt">
        <fo:block>002</fo:block>
       </fo:table-cell>
       <fo:table-cell border-width="0.5pt" border-left-style="solid" border-right-style="solid" padding-before="6pt" padding-after="6pt">
        <fo:block>M002</fo:block>
       </fo:table-cell>
       <fo:table-cell border-width="0.5pt" border-left-style="solid" border-right-style="solid" padding-before="6pt" padding-after="6pt">
        <fo:block>A002</fo:block>
       </fo:table-cell>
       <fo:table-cell border-width="0.5pt" border-left-style="solid" border-right-style="solid" padding-before="6pt" padding-after="6pt">
        <fo:block>CXA</fo:block>
       </fo:table-cell>
      </fo:table-row>
      <fo:table-row height="10mm">
       <fo:table-cell border-width="0.5pt" border-left-style="solid" border-right-style="solid" padding-before="6pt" padding-after="6pt">
        <fo:block>ARJ21</fo:block>
       </fo:table-cell>
       <fo:table-cell border-width="0.5pt" border-left-style="solid" border-right-style="solid" padding-before="6pt" padding-after="6pt">
        <fo:block>001</fo:block>
       </fo:table-cell>
       <fo:table-cell border-width="0.5pt" border-left-style="solid" border-right-style="solid" padding-before="6pt" padding-after="6pt">
        <fo:block>M001</fo:block>
       </fo:table-cell>
       <fo:table-cell border-width="0.5pt" border-left-style="solid" border-right-style="solid" padding-before="6pt" padding-after="6pt">
        <fo:block>A001</fo:block>
       </fo:table-cell>
       <fo:table-cell border-width="0.5pt" border-left-style="solid" border-right-style="solid" padding-before="6pt" padding-after="6pt">
        <fo:block>CDG</fo:block>
       </fo:table-cell>
      </fo:table-row>
      <fo:table-row height="100%">
       <fo:table-cell border-width="0.5pt" border-left-style="solid" border-right-style="solid" padding-before="6pt" padding-after="6pt">
        <fo:block>ARJ21</fo:block>
       </fo:table-cell>
       <fo:table-cell border-width="0.5pt" border-left-style="solid" border-right-style="solid" padding-before="6pt" padding-after="6pt">
        <fo:block>002</fo:block>
       </fo:table-cell>
       <fo:table-cell border-width="0.5pt" border-left-style="solid" border-right-style="solid" padding-before="6pt" padding-after="6pt">
        <fo:block>M002</fo:block>
       </fo:table-cell>
       <fo:table-cell border-width="0.5pt" border-left-style="solid" border-right-style="solid" padding-before="6pt" padding-after="6pt">
        <fo:block>A002</fo:block>
       </fo:table-cell>
       <fo:table-cell border-width="0.5pt" border-left-style="solid" border-right-style="solid" padding-before="6pt" padding-after="6pt">
        <fo:block>CXA</fo:block>
       </fo:table-cell>
      </fo:table-row>
     </fo:table-body>
    </fo:table>
   </fo:block-container>
  </fo:flow>
 </fo:page-sequence>
</fo:root>


使用新一代 Windows Live Messenger 轻松交流和共享! 立即体验!
_______________________________________________
oXygen-user mailing list
oXygen-user@...
http://www.oxygenxml.com/mailman/listinfo/oxygen-user
George Cristian Bina | 17 Dec 2007 12:17
Favicon
Gravatar

Re: the last row height of the table

Hello,

To specify the line height you can use something like:

<fo:table-row line-height="1500%">

Note that the percentage is applied on the font size:
http://www.w3.org/TR/2001/REC-xsl-20011015/slice7.html#line-height
***
The computed value of the property is this percentage multiplied by the
element's computed font size
***

Hope that helps,
George
---------------------------------------------------------------------
George Cristian Bina - http://aboutxml.blogspot.com/
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

Lizl wrote:
> Hi:
>  
>   In the A4 page master, I put some text in the top of the page, then a table followed, the table have
table-header and some table-body, in table-body, there are some table-rows in it, the row number is not
fixed but it can be calculated out by xslt.
>   
>   My questions is I want the last row of the table to be extend to the bottom of the region-body. I have used the
"height", "block-progress-dimention" properties on table-row or table or the table wrapper
block-container, but all of them failured. what should I do?
>  
>   the source code as follow:
>  [...]
Raymond | 17 Dec 2007 16:19

OS/X and XEP Error

os/x 10.5 (leopard), oXygen-9.0.0 (eclipse-3.3.1.1 plugin), xep-4.1

New to Mac; following error with attempting to execute XEP from oXygen:

[XEP FO processor] The process 'XEP FO processor' ended with code: 1. The error was: 
Exception in thread "main" java.lang.NoClassDefFoundError: com/renderx/xep/XSLDriver

Help please.

Ray
_______________________________________________
oXygen-user mailing list
oXygen-user@...
http://www.oxygenxml.com/mailman/listinfo/oxygen-user
Radu Coravu | 18 Dec 2007 08:04
Picon
Favicon
Gravatar

Re: OS/X and XEP Error

Dear Raymond,

Thank you for contacting us.

I assume you have already added the XEP executable in the Oxygen 
Options->Preferences->FO Processors page.
Correct installation of XEP in Oxygen is described here: 
http://www.oxygenxml.com/fo_editor.html

What you can do is try to run XEP from the command line to check if it 
is configured properly.
This is a sample command line:

sh /path/to/xep/xep -fo "/path/to/fo/fileName.fo" -pdf 
"/path/to/pdf/fileName.pdf"

If the command line does not create the pdf then the XEP was probably 
not correctly installed.
In the XEP installation "lib" folder there have to be 3 jar files 
referred from the xep executable script.
Maybe they are missing from your installation.

Regards,
Radu

-- 
Radu Coravu 
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

Raymond wrote:
> os/x 10.5 (leopard), oXygen-9.0.0 (eclipse-3.3.1.1 plugin), xep-4.1
>
> New to Mac; following error with attempting to execute XEP from oXygen:
>
> [XEP FO processor] The process 'XEP FO processor' ended with code: 
> 1. The error was: 
> Exception in thread "main" java.lang.NoClassDefFoundError: 
> com/renderx/xep/XSLDriver
>
> Help please.
>
> Ray
> ------------------------------------------------------------------------
>
> _______________________________________________
> oXygen-user mailing list
> oXygen-user@...
> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
>   
Holly Hendricks | 18 Dec 2007 16:06
Favicon

bug report 9.1

Hi Soren and colleagues,
The site bug reporting interface kept trashing my attempt to report this.
 
9.0: XML and XSLT run fine
9.1: same transform on same files generates Saxon 9B -999 error
 
Can I zip up the xslt and just enough of the XML to recreate this for you?  The xml is large.
 
Thanks,
Holly Hendricks
Mass. Historical Society
_______________________________________________
oXygen-user mailing list
oXygen-user@...
http://www.oxygenxml.com/mailman/listinfo/oxygen-user
Radu Coravu | 18 Dec 2007 16:09
Picon
Favicon
Gravatar

Re: bug report 9.1

Dear Holly,

Thanks for reporting this.
Can you zip the XSL and a small XML sample (if possible) and send the 
archive to support@... ?
Are you running a transformation or debugging ?

Regards,
Radu

-- 
Radu Coravu 
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

Holly Hendricks wrote:
> Hi Soren and colleagues,
> The site bug reporting interface kept trashing my attempt to report this.
>  
> 9.0: XML and XSLT run fine
> 9.1: same transform on same files generates Saxon 9B -999 error
>  
> Can I zip up the xslt and just enough of the XML to recreate this for 
> you?  The xml is large.
>  
> Thanks,
> Holly Hendricks
> Mass. Historical Society
> ------------------------------------------------------------------------
>
> _______________________________________________
> oXygen-user mailing list
> oXygen-user@...
> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
>   
George Cristian Bina | 18 Dec 2007 16:29
Favicon
Gravatar

Re: bug report 9.1

Dear Holly,

There was a similar issue [1] reported against Saxon 9.0.0.1 and that 
was fixed in 9.0.0.2. oXygen 9.1 includes the latest Saxon 9.0.0.2 so 
the problem should be fixed. It may be also a manifestation of the same 
problem that was not caught by the fix, in that case we can follow up 
with Michael Kay and when a fix is provided we can package that as a 
patch you will be able to use in oXygen.

Anyway, the way forward is as Radu suggested, provide us a sample to 
reproduce the issue.
Alternatively you can configure the older Saxon 8.9 as an external XSLT 
processor in oXygen and use that instead of the built in Saxon 9 that 
comes with the latest oXygen.

[1] the URL below may wrap on multiple lines so you may need to 
reconstruct it to be able to see it in the browser
http://sourceforge.net/tracker/index.php?func=detail&aid=1837263&group_id=29872&atid=397617

Best Regards,
George
---------------------------------------------------------------------
George Cristian Bina - http://aboutxml.blogspot.com/
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

Holly Hendricks wrote:
> Hi Soren and colleagues,
> The site bug reporting interface kept trashing my attempt to report this.
>  
> 9.0: XML and XSLT run fine
> 9.1: same transform on same files generates Saxon 9B -999 error
>  
> Can I zip up the xslt and just enough of the XML to recreate this for you?  The xml is large.
>  
> Thanks,
> Holly Hendricks
> Mass. Historical Society
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> oXygen-user mailing list
> oXygen-user@...
> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
Eliot Kimber | 18 Dec 2007 23:44
Favicon

Moving Elements in the Outline View : How To Move Nested Element Out

I'm using Author mode to edit some long HTML documents.

I've run into the situation where I want to move a nested element out of 
its wrapper element and make it a sibling of the wrapper.

For example, consider this starting state:

<div><h1>Level 1</h1>
   <div><h2>Level 2</h2>
    <div><h3>Level 3</h3></div>
   </div>
</div>

I want to take the "Level 3" div and move it so it is the sibling 
following the "Level 2" div.

Using the outline view, I can grab the inner div but when I try to move 
it past its containing div, nothing happens.

Is this possible to do with the outline view? I haven't noticed any 
other particularly convenient way to do this sort of structural rearranging.

Thanks,

Eliot
--

-- 
Eliot Kimber
Senior Solutions Architect
"Bringing Strategy, Content, and Technology Together"
Main: 610.631.6770
www.reallysi.com
www.rsuitecms.com
Radu Coravu | 19 Dec 2007 08:11
Picon
Favicon
Gravatar

Re: Moving Elements in the Outline View : How To Move Nested Element Out

Hi Eliot,

The problem with drag and drop in the outliner is that sometimes you 
want to move a node as a child of the destination and sometimes
you want to move it as a sibling of the destination. In Oxygen we 
decided that if the destination node (the node on which you drop)
is expanded the dropped node will be moved as child. If the destination 
is not expanded the dropped node will be moved as a sibling to the 
destination.
So you have to drag the "Level 3" div over the "Level 2" div, hover it 
until the "Level 2" div collapses its children and drop.

Another way to have finer control is to press the "Full tags" button 
from the Author toolbar and then drag and drop in author by dragging on 
the tag name of the div elements.
While dragging the caret will follow the mouse hover and the insertion 
will be made at caret position.

Like always, we are open to improvement suggestions.

Regards,
Radu

-- 
Radu Coravu 
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

Eliot Kimber wrote:
> I'm using Author mode to edit some long HTML documents.
>
> I've run into the situation where I want to move a nested element out 
> of its wrapper element and make it a sibling of the wrapper.
>
> For example, consider this starting state:
>
> <div><h1>Level 1</h1>
>   <div><h2>Level 2</h2>
>    <div><h3>Level 3</h3></div>
>   </div>
> </div>
>
> I want to take the "Level 3" div and move it so it is the sibling 
> following the "Level 2" div.
>
> Using the outline view, I can grab the inner div but when I try to 
> move it past its containing div, nothing happens.
>
> Is this possible to do with the outline view? I haven't noticed any 
> other particularly convenient way to do this sort of structural 
> rearranging.
>
> Thanks,
>
> Eliot
George Cristian Bina | 19 Dec 2007 15:19
Favicon
Gravatar

Re: bug report 9.1

Dear Holly,

Thank you for sending the sample files to reproduce the problem. We were 
able to reduce that to

xml:
<?xml version="1.0" encoding="UTF-8"?>
<x a="type">
   <y/>
</x>

xsl:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0"
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
   <xsl:template match="x[ <at> a= 'something']//y[ <at> b= 'else'] "/>
</xsl:stylesheet>

We will keep you updated with how this issue evolves.

Best Regards,
George
---------------------------------------------------------------------
George Cristian Bina - http://aboutxml.blogspot.com/
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

George Cristian Bina wrote:
> Dear Holly,
> 
> There was a similar issue [1] reported against Saxon 9.0.0.1 and that 
> was fixed in 9.0.0.2. oXygen 9.1 includes the latest Saxon 9.0.0.2 so 
> the problem should be fixed. It may be also a manifestation of the same 
> problem that was not caught by the fix, in that case we can follow up 
> with Michael Kay and when a fix is provided we can package that as a 
> patch you will be able to use in oXygen.
> 
> Anyway, the way forward is as Radu suggested, provide us a sample to 
> reproduce the issue.
> Alternatively you can configure the older Saxon 8.9 as an external XSLT 
> processor in oXygen and use that instead of the built in Saxon 9 that 
> comes with the latest oXygen.
> 
> [1] the URL below may wrap on multiple lines so you may need to 
> reconstruct it to be able to see it in the browser
>
http://sourceforge.net/tracker/index.php?func=detail&aid=1837263&group_id=29872&atid=397617 
> 
> 
> Best Regards,
> George
> ---------------------------------------------------------------------
> George Cristian Bina - http://aboutxml.blogspot.com/
> <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
> http://www.oxygenxml.com
> 
> 
> Holly Hendricks wrote:
>> Hi Soren and colleagues,
>> The site bug reporting interface kept trashing my attempt to report this.
>>  
>> 9.0: XML and XSLT run fine
>> 9.1: same transform on same files generates Saxon 9B -999 error
>>  
>> Can I zip up the xslt and just enough of the XML to recreate this for 
>> you?  The xml is large.
>>  
>> Thanks,
>> Holly Hendricks
>> Mass. Historical Society
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> oXygen-user mailing list
>> oXygen-user@...
>> http://www.oxygenxml.com/mailman/listinfo/oxygen-user
> _______________________________________________
> oXygen-user mailing list
> oXygen-user@...
> http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Gmane