On 09/05/2014 11:15 AM, Niels Grundtvig Nielsen wrote:
Hurrah! another manager buys the idea of single-sourcing, so I'm making
a .pdf from a ditamap. After solving the page layout question – the
online help doesn't explicitly mention you aren't allowed spaces between
numbers and units, and does suggest you need single quotes round values
No, there is definitely no way to add whitespace between the number and
its unit in an XSLT stylesheet parameter like
page-inner-margin="1.25in".
The reason for this is that the value of the XSL stylesheet parameter is
``injected'' as is into the XSL-FO file our XSL stylesheets generates.
Something like "1.25 in" is simply not a valid XSL-FO (or CSS) length.
– with a few iterations, I have one question to check: I suppose there's
no way to say "keep row together" or "insert page break before table"?
1) About "keep row together":
Customize attribute-set "row" using "XMLmind XSL Customizer" (see FAQ
http://www.xmlmind.com/xmleditor/faq.html#custom_deliverables) by adding
to it parameter:
keep-together
with value:
always
Reference:
http://www.w3.org/TR/xsl/#keep-together
(For DITA simpletables, the attribute-set is called "strow".)
If it does not work, this probably means that the XSL-FO processor you
are using to generate PDF (e.g. FOP) does not support
keep-together="always" on a fo:table-row.
2) About "insert page break before table":
This is generally done by the means of a (non-standard)
processing-instruction inserted by the author in the source of her/his
document. Example:
<?page-break?>
<table>
...
We currently don't support such processing-instruction in our in-house
DITA and XHTML XSL stylesheets.
Using the same method as 1) you can force a page break before *all*
tables but I don't think this is what you want.
Customize attribute-set "table" using "XMLmind XSL Customizer" (see FAQ
http://www.xmlmind.com/xmleditor/faq.html#custom_deliverables) by adding
to it parameter:
break-before
with value:
page
Reference:
http://www.w3.org/TR/xsl/#break-before
(For DITA simpletables, the attribute-set is called "simpletable".)
Paged output is of course a different animal, and not the primary
concern of any XML format :-}
The results are looking good already! so I can wait a while before
trying to persuade the manager in question to try delivering WebHelp
straight off …
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support