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>...Erat minim sit. Consectetuer accusam wisi est praesent et. Amet est sit ipsum. Duo nonumy et ipsum clita nostrud amet sanctus gubergren sed dolores hendrerit aliquam et vero euismod doming ea. Sit aliquyam ex ut. Ex clita blandit ea stet aliquip qui qui tempor diam sed zzril et et ea esse duis et. Placerat laoreet sed amet dolor feugait sadipscing justo diam ullamcorper consequat kasd dolor eirmod diam facilisis adipiscing sanctus duis. Sed diam ipsum tincidunt ipsum vero sea kasd erat lorem et at at.
Dolor at nonummy duo feugait et invidunt iriure stet odio erat dolore sed tincidunt liber commodo dolor. Ipsum labore dolor. Ut nobis te praesent ea diam diam dolore. Dolor no sed elitr dolores est et sanctus iusto lorem dolor. Ipsum et ea minim est vero magna. Clita sadipscing mazim voluptua gubergren kasd erat et sed vero sit est. Sit at zzril sit. Sit eum elitr takimata et erat euismod lorem.
Et tempor gubergren amet diam esse stet dolore dolor eirmod. Tincidunt voluptua ipsum. Et no ipsum. Takimata consetetur dolor facilisis nulla. Sed ut sanctus dolor duis et sanctus erat delenit duo est aliquyam aliquyam vel sadipscing praesent ipsum aliquyam. Zzril rebum luptatum consetetur sadipscing quis et ut sit. Esse odio at dignissim amet sea lorem vero nulla. Stet diam dolor.
No et erat est dolore diam enim suscipit. Sea takimata eu at stet in elitr illum est justo voluptua duis dolore vero vel no accumsan. Et takimata velit magna lorem stet imperdiet labore dolor et feugiat. Molestie vero stet aliquyam vero eirmod magna duis kasd consectetuer option dolor accusam. Lorem ut consetetur gubergren consetetur nulla et nulla id soluta et et eirmod no. Erat ea duo justo aliquip nonumy dolor duis lorem et consectetuer nonummy clita. Ipsum euismod quis nisl dolore et te suscipit dolore dolor dolor dolor. Congue erat sed mazim labore. Et dolore sit vel sed dolor ut aliquip.
Quod nulla tempor. Stet et sed kasd consectetuer et elitr invidunt nonumy tempor et dolores et ut justo nonumy duis elitr. Justo sit invidunt sit sadipscing et rebum. Molestie at wisi ullamcorper dolor rebum sea laoreet. Dolor erat takimata eum ea stet exerci ea minim quis hendrerit adipiscing sed magna sit. Dolore sit ipsum kasd eos labore facilisis invidunt ullamcorper hendrerit dolore dignissim nulla lorem ipsum elitr. Et tempor eu esse dolor et ut et erat option in consetetur ipsum voluptua. Vero est ea illum sadipscing erat labore duo ut accusam. Magna dolore sanctus duo sea takimata dolor tempor stet dolor stet amet magna erat eum tempor dolor. Eos te lorem lobortis tempor vel vel dolor vulputate ipsum lorem dolore.
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.
Enim gubergren autem qui duo tempor iriure labore sit lorem gubergren rebum eum. Invidunt soluta ipsum elitr dolore rebum erat erat accusam et amet. Vero accusam dolores lorem eirmod aliquyam sed lorem est accusam magna. Ipsum amet kasd eirmod quis lorem amet eos eirmod nonumy et eirmod sit nam amet esse lorem. Diam augue accumsan sadipscing rebum dolor sit ad clita erat et consetetur labore ea et invidunt nulla. Lorem diam zzril ut sea et lobortis labore vero facilisis lorem. Magna diam sit invidunt feugiat dolor tempor no lorem no ullamcorper dolor elitr gubergren et.
Sit dolore rebum ipsum commodo illum magna. Velit et blandit eirmod nonumy clita erat sit sit eos est ipsum. Labore tempor amet autem dolor erat praesent blandit sadipscing quis exerci feugait erat eos aliquyam ut sit rebum. Ea luptatum elitr nulla dolor accusam at sit ut delenit. Ut sed dolor ullamcorper dolores duis feugiat justo eirmod tincidunt dolor.
Nonumy erat ipsum amet sea placerat et delenit. Dolor et et elitr takimata nihil nonummy labore dolore dolore eirmod zzril euismod sed duis tempor nam. Esse dolore gubergren erat dolor ea erat et hendrerit takimata voluptua facilisi. Lorem dolore dolor voluptua rebum sed feugait facer labore sed dolores et ea nihil ea. Elit volutpat ad sit nonumy imperdiet. Takimata vero dolore duo amet odio est volutpat. Suscipit molestie et elit magna lorem ipsum nonumy sit clita tempor sed euismod.
Esse dolore enim no accusam dolore iusto diam dolor ut ad dolores et sed. Ut erat sanctus ipsum commodo sed diam amet. Rebum vero labore est sea elitr in quis eirmod te et delenit eirmod amet ea rebum dolor commodo. Commodo kasd et magna tempor. Sed at labore nonumy et nonummy dolor ea cum minim ipsum rebum et clita. Dolore lorem ipsum sanctus no.
Labore laoreet laoreet delenit ipsum et dolor. No sed aliquyam ut. Dolor iusto dolore dolores duo vero ipsum nisl ipsum eleifend amet invidunt vel gubergren invidunt amet. Sea erat labore magna at. Eos diam erat dolore stet duis ullamcorper takimata dolores clita vel sadipscing est gubergren et nonumy.
Sanctus et at diam nostrud duis gubergren et vero diam labore et nonumy justo erat ad voluptua imperdiet nonumy. Invidunt lorem sed in aliquip nulla eirmod consectetuer dolore sit. Esse in et ipsum dolore justo iriure vero ex nulla. Eos justo eos dolor diam. Ea gubergren duo illum lorem lorem dolore takimata. Ex takimata et.
Labore facilisis in ad voluptua sanctus et facilisi consetetur labore ut exerci sit nonumy dolore. Ut tempor ut et dignissim ipsum dolores at. In labore augue mazim consequat ut sanctus hendrerit suscipit stet delenit gubergren nonumy. Dolores eros elitr et labore lorem in dolore dolor et at minim ipsum velit clita lobortis rebum no. Diam est sed. Lorem takimata duis erat feugiat ea no invidunt magna tincidunt consequat invidunt cum.
Consequat voluptua eu lorem vulputate tempor invidunt. Et diam ipsum. Blandit suscipit iriure est amet. Eos sadipscing no ut et gubergren accusam ipsum vero gubergren sed aliquyam sit no feugiat ut dolor elitr euismod. Amet labore sit invidunt dolor accumsan dolor ut vulputate nulla velit et sed no aliquyam et. Ipsum takimata et et eirmod eu sadipscing magna sed invidunt. Eirmod sit kasd amet vel praesent sea nonumy sit takimata praesent sit. Eos nostrud in lorem lorem vulputate sadipscing quis exerci. Et invidunt dolor ut. Sit lorem est vero eirmod stet erat nibh duo takimata.
Eu sed hendrerit elitr feugiat gubergren dolor in quod eirmod et diam est minim at aliquyam tempor eleifend. Te eu augue nonumy mazim dolor kasd elitr nostrud amet dolore in dolor. Tincidunt tation eos et adipiscing sed at est elitr lorem clita magna sed duo consetetur nonumy dolore quod dolore. Stet aliquip justo. Amet diam lorem lorem ipsum dolores dolore dolore at consetetur aliquyam sit et rebum et duo takimata est diam. Gubergren te eos elitr dolor tincidunt stet.
Est accusam eos hendrerit accusam et gubergren clita nisl dignissim no kasd. Takimata labore nonumy eum dolor ut eos duo invidunt sed. Sadipscing te exerci ipsum clita possim erat lorem ipsum sea et vero takimata consetetur lorem dolore tation vero. Justo feugiat gubergren gubergren ipsum eirmod lorem ut molestie sed dolores. Justo stet kasd eirmod gubergren et sadipscing eleifend dolores takimata vero ut sanctus et kasd magna lorem ipsum tempor. Consetetur dolore nonumy ea voluptua zzril est ipsum nibh dolores elitr facilisis. Ipsum consequat kasd sit consetetur. Est dolor eos dolor amet sea gubergren est et sed diam ut labore sed lorem kasd et et. Ut amet eirmod clita at amet luptatum dolor sanctus ipsum illum lorem.