We implemented the spacialized attribute fostyle to carry this information.
Because the browser just ignores this, you must be careful to structure it correctly for processing.
The proper structure is name: value; noting that the ":" after name is followed
by a space and the ";" between items is also followed by a space.
In some instances you may wish to pass through XSL FO attributes that are not
supported in HTML. This is an example, while the text in the HTML has a brown color
applied, we have applied a CMYK color for the PDF generation through the use of the
fostyle attribute. All fostyle attributes are applied
after HTML css and also after direct attributes and override those in the HTML. This
paragraph also has text-align justify in the HTML and font-stretch,
font-size-adjust and hyphenate in the PDF output. The fostyle attribute
is attached right in the HTML, just like style and uses the same
structure internally as style.
The code for the paragraph above looks like this:
<p style="color: brown; text-align:justify;"
fostyle="text-align-last: left;
font-stretch: wider;
font-size-adjust: 0.6;
hyphenate: true;
color: rgb-icc (255, 255, 0, #CMYK, .1, .2, .7, .5);">In some instances ...
Another common use for passing through custom elements is for properties that have specific meaning in a pagination situation like "keeps". There are several forms of keeps that can help you organize content so it is glued together as you like it.
The following are the most commonly used keeps:
keep-together.within-page: set to "always" and used to keep a block
of content always together in a single pagekeep-with-next.within-page: set to "always" and used to keep a
block of content glued to the next one always together in a single pagekeep-with-previous.within-page: set to "always" and used to keep a
block of content glued to the previous one always together in a single pagekeep-together.within-line: set to "always" and used to keep a span
of content glued always together in a single lineThe following shows some demonstrations of these capabilities.
This paragraph, the instructions and the following three para's of LoremIpsum
text are surrounded by a <div> with
keep-together.within-page as always, like
this:
<div fostyle="keep-together.within-page: always;">
<p>This paragraph, the instructions and the following five para's of LoremIpsum text are surrounded
by a <div> with "keep-together.within-page" as "always", like this:</p>...Et diam quod diam. Et lorem vel gubergren sit diam erat clita vel tempor lorem diam vero duo aliquip ut vero. Ea praesent ea et iriure et at ipsum rebum facer ipsum nulla nonumy sit aliquyam lorem. Vero invidunt ipsum ut eu sit sit dolores dolor feugiat justo sanctus. Vero sanctus kasd vero dolor dignissim et ipsum ullamcorper kasd soluta lorem doming magna dolore.
Takimata sea takimata lorem. Consequat ipsum adipiscing lorem accusam dolor magna clita no takimata. Ipsum gubergren sed diam et invidunt. Luptatum velit consequat voluptua clita duo et ea rebum clita lorem feugait hendrerit. Dolores et et eros takimata sea gubergren.
Magna sit sit ut consequat ipsum diam elitr dolore lorem dolores mazim te lorem et labore sit. Takimata eirmod amet sea et veniam dolores magna mazim et sanctus hendrerit. Diam accusam eu invidunt eros sed. Est dolores iriure. Iusto ut vero eos sed exerci amet eum takimata tempor gubergren at ipsum diam et ea. Et invidunt ut ipsum sed diam vulputate et amet sit lorem elitr justo. Diam rebum sed lorem vel est consetetur vero aliquyam diam nulla vel diam sit amet elit stet no ullamcorper. Nonumy voluptua ut duo adipiscing diam ut sit sed. Sit ex nisl et esse clita.
Tempor feugait tincidunt iriure consetetur sea. Aliquyam stet exerci sed qui labore diam dolor molestie diam. Takimata vero et justo ut sadipscing et amet dolore magna rebum dolores eum labore. Sadipscing in ea sea zzril aliquip et autem. Elitr dolor et voluptua sit sanctus lorem labore amet takimata lorem labore dolor ut nonumy diam.
Voluptua gubergren sed ipsum kasd voluptua dolore eros volutpat invidunt veniam aliquyam clita diam. Quis gubergren kasd justo iriure ipsum voluptua dolore erat et. Magna lorem nonumy ullamcorper diam amet takimata takimata sed invidunt dolor nonumy autem. Sed nonumy takimata eum nonumy dolore sit stet est dolor ut sed duis. Sed amet nulla. Elit exerci amet diam erat kasd nostrud ipsum vero lorem amet minim nostrud et sit vel lorem sed amet. Vero ut at dolores praesent diam et lorem dolore sadipscing lorem diam eros nonumy sed takimata.
Thus all of this content from the header through this paragraph is together on a single page.
A common practice in print documents is keeping together headings and some of the following lines of a paragraph so no heading is orphaned at bottom of a page and at least a few lines of text from any paragraph stay together.
What follows this are a series of headings and LoremIpsum paragraphs. The headings all have "keep-with-next.within-page" as "always" which will at least glue them to the paragraph. The paragraphs all have widows of "3" and orphans of "3" which will attempt to glue together at least three lines of paragraph at the bottom and top of any page. The LoremIpsum paragraphs are randomly generated on refresh of the page so you can test various layouts just by refresing and printing again.
No dolor voluptua ut consetetur lorem rebum in accumsan invidunt ea sadipscing nonummy quod dolore elitr eirmod voluptua amet. At lorem kasd ullamcorper accusam erat takimata iriure invidunt aliquam at tempor duis diam accumsan invidunt rebum. Rebum lorem lorem. Accusam sit labore eirmod amet. Sed justo sit et et sed lorem eirmod vel nulla consectetuer stet ipsum. Takimata sit exerci sed dolore eirmod justo sea tempor amet elitr no sed. Et rebum eros consequat vel sit. Ipsum consequat lorem sit labore invidunt sit aliquam ipsum. Sit est sit dolore aliquam tation diam sanctus sit est labore elitr. Stet dolore tempor duis est. Lorem amet dolores ut dolore.
Dolores eleifend erat sit duo lorem vero in sea no diam et eos et accusam eros. Sit qui vel labore sadipscing et dolor est eum sit lorem at labore. Duo exerci lorem ipsum magna. Amet tempor rebum dolores consetetur velit dolore diam sadipscing lorem. Commodo dolor magna aliquam ipsum amet magna vero amet labore. Est dolor dolor ipsum ut accusam. Sit sed dignissim sed et vero in accusam sed laoreet labore rebum ut minim diam at. Et ipsum diam justo magna diam aliquyam eirmod. Et magna aliquyam dolor vero et sit nostrud diam at sea justo sea nulla in kasd velit.
Suscipit lorem dolores ea clita clita justo accusam dolores. Ipsum nonumy est no et ut kasd gubergren tempor luptatum est clita et aliquyam. Dolore at vel erat imperdiet nonummy rebum consequat consetetur sit clita magna esse et. Accumsan kasd illum eos duo nonumy ipsum gubergren ipsum et. Sit option vero minim in sea. Et delenit labore at voluptua diam no et vero imperdiet voluptua. Imperdiet autem elitr diam voluptua.
Lorem illum ullamcorper erat soluta takimata stet eu eros ea feugait nihil sea odio dolor. Tempor consetetur zzril justo erat dolor ut labore et duo dolore in. No et autem invidunt magna accusam vero consectetuer nisl duis dolores vel tation duo. Ea ipsum praesent ut dolor magna liber et amet consetetur duo diam sit et molestie amet. Vero dolor dolore vero voluptua tation sit luptatum dignissim et sit euismod vel tempor accusam. Et aliquam vero ut amet ipsum justo eirmod diam accusam veniam minim feugiat diam gubergren ea.
Facilisi kasd et nulla nonumy sanctus et mazim. Dolor suscipit et vel tation dolor consetetur stet odio kasd eleifend sit takimata at. In eos amet et labore hendrerit iriure ut erat. Ipsum kasd no hendrerit dolore est stet sea invidunt elitr praesent dolor et est wisi tempor ea eirmod. Duo lorem ut ut in.
Eos labore facilisi facilisi magna clita mazim eleifend no. Ut nonumy sed vulputate lorem elitr tempor et voluptua amet luptatum sit invidunt ipsum diam ex. Enim et rebum at duo dolore dolor ipsum et ea minim velit et. Sea amet nonumy ipsum no diam ea eum sanctus rebum dolor ea ipsum et sed ut. Rebum et est erat dolor sit amet et praesent sed ut sed. Hendrerit wisi feugiat iriure mazim duo sea erat. Et amet dolore voluptua lorem vero tempor justo. Accusam nonumy no. Dolores veniam et nonumy amet labore invidunt elitr tempor sanctus duo lorem in suscipit. Gubergren no vero sed dolore ad ipsum magna nonumy at sit dignissim. Dolore rebum ut eirmod ipsum sed lorem.
Blandit sit eos mazim nonummy cum sadipscing rebum consetetur nonummy diam magna sea et. Kasd diam ut justo tempor et rebum dolor eos eos nibh vero amet erat. Stet sanctus in ea vulputate sed velit tation invidunt ad sit enim eu ipsum. Dolore at in clita sed accusam iriure augue aliquyam takimata lorem amet vero et sit. Sadipscing ut sadipscing ea magna clita tincidunt dolore dolores diam.
Sanctus sed vero et dolor. Diam dolor kasd takimata dolor no dolor feugait sea aliquyam dolor et feugiat eirmod ut et ipsum nibh nonumy. Invidunt assum sit no sit facilisi luptatum in takimata nonumy et iusto tincidunt no aliquyam lorem. Aliquip et vel tation eos est nonumy aliquyam illum suscipit sit stet eos nonumy euismod. Aliquyam autem ut amet tation clita stet nihil sit sit ut stet magna magna. Sed tempor qui et clita. Sed aliquyam sit in augue minim ipsum consequat iriure labore amet et stet duis aliquyam id. In eum eirmod sit delenit est. Dolore amet amet ipsum gubergren voluptua.
Dolore duo et duo invidunt nonummy sadipscing enim wisi ea dolores dolores ea at vel voluptua tation magna. Sed suscipit iriure voluptua rebum sea nulla quis rebum dolores sit vero duo aliquyam consetetur. Amet sea kasd no sed dolor at et invidunt no. Aliquam accusam consectetuer justo diam sit tincidunt voluptua ea sea elitr suscipit. Nonumy dolores consequat ut et elitr et tempor vero lorem. Adipiscing ea est magna magna lorem dignissim diam wisi diam aliquyam et dolore lorem justo. Stet velit dolor dolore. Est invidunt accusam diam justo feugait dolore consetetur ipsum sit amet tempor elitr ipsum. Invidunt vel amet luptatum esse ipsum tempor et no dolor zzril invidunt dolor rebum dolor. Diam nonumy accusam consetetur quis ut diam eum ut lorem erat consequat.
Labore ullamcorper amet takimata iusto justo id magna nulla ea duo et kasd diam lorem magna et. Sit labore duo dolor clita exerci luptatum. Ex eirmod elitr magna in dolor magna sea delenit est diam doming. Dolore accusam aliquyam nulla in at vel vero vel elitr. Erat consequat velit est ut tempor vero est at.