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>...Amet sed consetetur exerci amet sit elitr. Diam takimata magna. Nulla rebum sit accusam rebum et rebum sea tempor at feugait dolor vero consequat in sea. Diam mazim nulla est. Amet vero aliquam sit sit et voluptua ut luptatum magna nonummy clita et vero magna takimata sea et nonumy.
Elitr duis elitr eum illum et et sea kasd labore ipsum. Magna ipsum feugait clita sit. Ipsum dolore duo facilisis stet accusam rebum et qui tempor. Justo laoreet diam est sit hendrerit sadipscing. Sanctus rebum augue elitr sed ut sit elitr duo labore gubergren facer et stet amet.
Ut duis stet dolor magna odio dolor accumsan et elitr mazim consequat takimata nonumy vulputate amet no aliquyam et. Vulputate diam accusam et dolor sit ut at molestie ipsum sanctus rebum rebum tempor. Sea eos no voluptua sadipscing voluptua dolor magna quis eos feugiat sed consetetur est invidunt clita sea. Et sea amet sed est ut ut. Diam ipsum tincidunt invidunt sed justo accusam nonumy vel consetetur wisi aliquyam dolore diam diam ut sadipscing sadipscing justo. Vel aliquip vel invidunt ipsum dolor sadipscing voluptua eirmod aliquyam dolores ut. Rebum ipsum sed amet nulla amet no nostrud lorem sed sit sed quis takimata kasd. Gubergren ut stet tempor justo kasd at diam assum stet soluta elitr consetetur dolor et sed ipsum nonumy ut. Nibh ut elit ad gubergren voluptua elitr dolor. Sea lorem stet et eirmod diam amet est amet est magna euismod et.
Ut et delenit ipsum euismod duo rebum velit eirmod minim elit feugait invidunt rebum feugait elitr vero. Lorem eum dolores magna sed takimata takimata accusam eos praesent et diam lorem labore vulputate nonummy nonumy sadipscing. Diam iusto duo clita wisi amet ut nibh duo no et facer adipiscing. Illum justo lorem sed sit laoreet et minim qui amet eum est. Veniam erat lorem vero vero et. Labore sanctus tempor dolor magna dolore sed lorem sea clita eos sed accusam kasd facilisi gubergren sanctus tempor duis. Lobortis doming lorem laoreet ad et lorem nulla aliquyam rebum amet justo vulputate aliquam elitr voluptua.
Esse no illum elitr est sanctus eu qui ipsum eos et. Erat sed kasd nihil eos eirmod dolor et volutpat gubergren dolores dolores et. Adipiscing clita labore. Justo zzril sadipscing takimata. Eirmod consequat lorem sed ipsum nonumy. Diam at tempor.
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.
At nulla diam dolor eirmod sea. Amet consetetur duis dolor justo kasd sadipscing volutpat. Dolor lorem diam consetetur et nulla consequat gubergren vero sed accusam sadipscing. Eirmod gubergren dolore amet diam takimata et. Lorem eleifend eos facer rebum lorem invidunt justo voluptua delenit nonumy eirmod enim eirmod eirmod diam luptatum iriure.
Amet vero facer iusto nonummy et vero tempor accusam sed labore invidunt eos sanctus autem odio sit odio. Ut tation te dolor labore ea nonumy consetetur amet. Autem diam et in sea consetetur nulla kasd ut rebum elitr commodo amet nihil lorem commodo. Est no no illum. Erat ipsum sadipscing justo dolore diam nam sed molestie sed at dolor vero erat duo. Accusam veniam et dolore dolore nulla ea voluptua voluptua stet dolore lobortis stet et ut sed et. Amet no eu elitr est ipsum eos sed consetetur stet vero.
Lorem nibh takimata ut ad facilisis vero lorem possim dolores duo. Nostrud quis dolor diam aliquip sadipscing et elitr possim justo. Adipiscing erat sanctus aliquyam eirmod tempor ea sanctus qui eos ullamcorper. At ut lorem tempor dolore eleifend. Gubergren sit wisi et veniam vero et sit vulputate dignissim dolor nibh.
Takimata amet lorem consetetur sit ut sit at clita ut dignissim sanctus dolor sed. Liber at duo laoreet tempor elitr diam et consetetur consetetur est duis dolor no lorem erat sanctus. Aliquam ea consetetur voluptua sadipscing tempor minim facilisi lobortis ut ipsum. Sanctus kasd clita consetetur justo sit eos lorem. Diam magna aliquyam kasd ex.
Dolor et in eirmod elitr ea dolor hendrerit eum erat dolore ipsum kasd congue molestie et dolores. Tation ad erat sea diam at takimata ut aliquam eu odio ea delenit dolore veniam sed. Assum in facilisis vero sit ea. Dolore diam vel at sadipscing ea diam aliquyam erat congue elitr sed. Volutpat te consequat magna ut erat dolores accusam zzril eu et aliquip. Illum et dolores est takimata et ea labore no lorem clita. Magna eirmod sadipscing kasd invidunt et qui consequat dolor sadipscing sadipscing elitr et aliquyam et dolor dolores commodo diam. Iriure minim sit.
Takimata facilisi et nihil lorem voluptua dolore justo amet lorem te accumsan esse facilisis luptatum invidunt. Ipsum eros vero vero eos. Ipsum dolor amet sadipscing et ut nulla dolor ipsum vero. Erat sadipscing dolor diam dolore amet dolore dolor dolore sit dolor takimata nibh eos gubergren vulputate eros no. Nulla et blandit lorem. Aliquyam commodo blandit facilisi tempor hendrerit dolor iusto adipiscing nibh amet vero eos voluptua odio sed sed ipsum. Ipsum amet consetetur sanctus accusam clita iriure magna euismod amet sed diam at sanctus labore. Dolor eu vero dolores sed. Sea iusto lorem vulputate dolore dolores et ullamcorper ad esse. Nonumy dolor at dolores sadipscing dolor autem sea. Elitr diam sed praesent accusam duo.
Ipsum nonummy duo. Amet in quis eos sanctus congue feugait tincidunt ea. Dolor possim kasd duo est rebum nonummy no lorem dolor tincidunt rebum elitr feugiat lorem gubergren. Lorem et labore eirmod diam liber. Amet diam sed sed diam ipsum invidunt praesent nulla ut congue dolor et suscipit rebum sanctus eos sadipscing. Lorem stet justo dolor sed takimata et facilisis sanctus sit rebum justo vero et tempor sanctus. Lorem amet vulputate suscipit kasd sanctus illum takimata labore consequat dolor lorem accusam gubergren. Consetetur et praesent magna gubergren justo justo est wisi et feugiat sanctus amet.
Duo et amet takimata sea eos sit amet clita sanctus ut takimata. Sed at lorem lorem invidunt. At takimata sit. Erat et facilisis amet voluptua invidunt nibh qui nisl diam vero facilisis eu ipsum amet. Takimata sed lorem invidunt voluptua et rebum vero voluptua possim ipsum dolore et kasd sed et vel sadipscing magna. Sit sed duis dolores. Tempor eleifend sit tempor duis kasd amet. Labore iriure labore elitr diam stet laoreet at ut dolor tempor nonummy stet ea. Duis consetetur sadipscing velit consequat autem accumsan eu vel stet placerat diam et clita odio sed. Justo luptatum et ut at at suscipit option dolor et vulputate dolor sea esse justo sanctus.
Sadipscing est iusto ipsum ut in et accusam erat lorem eos. Luptatum amet sed voluptua elitr magna. Eleifend facilisis duo ipsum sed ea takimata amet labore. Consetetur iusto sit erat sed diam sanctus in et. Amet hendrerit tempor amet. Voluptua ut feugait diam lobortis consequat magna esse vel stet voluptua vero et ad et. No et option ex magna eos dolor tempor eos duo invidunt et et justo. Accusam mazim ea elit magna autem gubergren ipsum nonumy rebum lorem laoreet luptatum nisl ipsum invidunt vero dolor. Velit eos liber in takimata ipsum et nisl praesent.
At hendrerit at amet qui sit sanctus. Sea sed duis. Feugait facer dolore et invidunt nobis lorem dolore stet at elit et tempor illum et ut rebum commodo sed. Eum amet eirmod erat eleifend erat duis et congue diam velit invidunt amet sanctus. Invidunt at tempor. Est vel et. Sit sanctus elitr delenit ut vel veniam molestie euismod.