cell in a table overflew to the next cell
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 18
- Joined: Thu Jan 21, 2016 10:28 am
cell in a table overflew to the next cell
Post by Nikky_zhang »
Hi,
Oxygen version is 17.0 DITA-OT version is 1.8.5
My problem is some of the content in a cell of a table overflew to the next cell.
The part which overflew to next cell is tagged by <codeph> or <apiname> in <entry>,for example: <coddph> SYSTEM.QSG.TRANSMIT.QUEUE</codeph> or <codeph>SYSTEM_QSG_TRANSMIT_QUEUE</codeph>
I have added the hyphenate="true" and wrap-option="wrap" in table-attr.xsl,please see the code below.
How could I force them to break two lines?
Thanks
Oxygen version is 17.0 DITA-OT version is 1.8.5
My problem is some of the content in a cell of a table overflew to the next cell.
The part which overflew to next cell is tagged by <codeph> or <apiname> in <entry>,for example: <coddph> SYSTEM.QSG.TRANSMIT.QUEUE</codeph> or <codeph>SYSTEM_QSG_TRANSMIT_QUEUE</codeph>
I have added the hyphenate="true" and wrap-option="wrap" in table-attr.xsl,please see the code below.
How could I force them to break two lines?
Thanks
Code: Select all
<xsl:attribute-set name="table.tgroup">
<xsl:attribute name="table-layout">fixed</xsl:attribute>
<xsl:attribute name="writing-mode">lr-tb</xsl:attribute>
<xsl:attribute name="inline-progression-dimension">auto</xsl:attribute>
<xsl:attribute name="width">auto</xsl:attribute>
<xsl:attribute name="space-before">5pt</xsl:attribute>
<xsl:attribute name="space-after">5pt</xsl:attribute>
<xsl:attribute name="table-omit-header-at-break">false</xsl:attribute>
<xsl:attribute name="table-omit-footer-at-break">false</xsl:attribute>
<xsl:attribute name="border-collapse">collapse</xsl:attribute>
<!--xsl:attribute name="end-indent"><xsl:value-of select="$side-col-width"/></xsl:attribute-->
<xsl:attribute name="overflow">hidden</xsl:attribute>
<xsl:attribute name="orphans">3</xsl:attribute>
<!--It is a table-->
<!--xsl:attribute name="table-layout">fixed</xsl:attribute-->
<!--xsl:attribute name="width">auto</xsl:attribute-->
<!--xsl:attribute name="inline-progression-dimension">auto</xsl:attribute-->
<!-- <xsl:attribute name="background-color">white</xsl:attribute>-->
<!--xsl:attribute name="space-before">5pt</xsl:attribute-->
<!--xsl:attribute name="space-after">5pt</xsl:attribute-->
</xsl:attribute-set>
<xsl:attribute-set name="common.table.body.entry">
<xsl:attribute name="space-before">3pt</xsl:attribute>
<xsl:attribute name="space-before.conditionality">retain</xsl:attribute>
<xsl:attribute name="space-after">3pt</xsl:attribute>
<xsl:attribute name="space-after.conditionality">retain</xsl:attribute>
<xsl:attribute name="start-indent">3pt</xsl:attribute>
<xsl:attribute name="end-indent">3pt</xsl:attribute>
[color=#FF4000]<xsl:attribute name="hyphenate">true</xsl:attribute>[/color]
[color=#FF8000]<xsl:attribute name="wrap-option">wrap</xsl:attribute>[/color]
<xsl:attribute name="overflow">visible</xsl:attribute>
</xsl:attribute-set>
[Codebox=html4strict file=Untitled.html][/Codebox]
<xsl:attribute-set name="tbody.row.entry__content" use-attribute-sets="common.table.body.entry">
<xsl:attribute name="margin-top">5pt</xsl:attribute>
<xsl:attribute name="margin-bottom">5pt</xsl:attribute>
<xsl:attribute name="space-before">3pt</xsl:attribute>
<xsl:attribute name="space-before.conditionality">retain</xsl:attribute>
<xsl:attribute name="space-after">3pt</xsl:attribute>
<xsl:attribute name="space-after.conditionality">retain</xsl:attribute>
<xsl:attribute name="keep-together.within-column">always</xsl:attribute>
<!-- have to condensed the letter of the entry /JY -->
<!--xsl:attribute name="font-size">6pt</xsl:attribute-->
<!--body cell contents-->
</xsl:attribute-set>
-
- Posts: 404
- Joined: Thu Aug 21, 2003 11:36 am
- Location: Craiova
- Contact:
Re: cell in a table overflew to the next cell
Post by radu_pisoi »
Hi,
An workaround is to use the 'Zero Width Space' character (​) to mark the places where you want to insert a line break.
An workaround is to use the 'Zero Width Space' character (​) to mark the places where you want to insert a line break.
Code: Select all
<codeph>SYSTEM_QSG_​TRANSMIT_​QUEUE</codeph>
Radu Pisoi
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 18
- Joined: Thu Jan 21, 2016 10:28 am
Re: cell in a table overflew to the next cell
Post by Nikky_zhang »
Hi ,
Are there any other methods to do something in DITA-OT, instead of change the source .dita files? or How could I do it much more automatically?
Thanks
Are there any other methods to do something in DITA-OT, instead of change the source .dita files? or How could I do it much more automatically?
Thanks
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: cell in a table overflew to the next cell
Hi,
I remember there was an older conversation about the same usecase on the DITA Users List, maybe it will give you more ideas:
https://groups.yahoo.com/neo/groups/dit ... pics/35559
Regards,
Radu
I remember there was an older conversation about the same usecase on the DITA Users List, maybe it will give you more ideas:
https://groups.yahoo.com/neo/groups/dit ... pics/35559
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 18
- Joined: Thu Jan 21, 2016 10:28 am
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service