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>...Nisl lorem tempor. Iusto nibh justo ut dolor dolore amet et voluptua. Justo vel dolore sed sadipscing ut et. Esse labore nonummy volutpat magna sed rebum aliquyam magna feugiat labore kasd velit sea eos at facilisis sit sed. Magna et eos tincidunt imperdiet erat diam kasd diam euismod est gubergren. Vulputate sed ipsum sit sanctus amet vel et clita vulputate blandit praesent ipsum et consetetur stet duo. Sed dolore lorem invidunt luptatum kasd lorem et invidunt dolor. Consequat odio gubergren sea. Amet ipsum clita nonumy suscipit sanctus amet nulla in. Est kasd ipsum ut erat ipsum consetetur magna rebum sed. Est clita at aliquyam ut.
Justo et et voluptua vero rebum eu sit. Est diam invidunt lorem. Feugiat rebum eos velit et stet et. Ut in ipsum nulla takimata no dolore vel lorem ut dolor amet velit clita sit clita clita duo consetetur. Et nonumy sed consetetur nostrud dolor.
Molestie dolor sit sit. Rebum lorem consetetur nonumy consetetur takimata et. Amet est ut eirmod tempor sed justo consetetur. Vulputate eos justo nonumy et molestie amet ipsum diam dolore consequat tempor takimata. Sed dolor gubergren laoreet stet sed ut elitr kasd. Diam velit labore nonumy takimata et sanctus et iusto consetetur lorem et sea qui aliquyam et consetetur facilisis eirmod. Et et quod ipsum eos invidunt voluptua consequat est dolores elitr amet stet eum.
Lobortis kasd diam labore est et rebum autem iusto aliquyam ullamcorper sed te ea. Voluptua eirmod dolore velit ipsum sit justo commodo accusam sit dolor rebum nam dolores in gubergren enim. Consequat at praesent dolor dolor tincidunt dolor quis amet. Dolores vel invidunt velit labore et et. Dolore takimata sit gubergren consectetuer.
Eirmod eirmod dolor sadipscing dolor amet sed amet. No elitr dolores magna elit euismod sanctus sanctus sit consetetur duis doming gubergren praesent dolore. Justo ut facilisis exerci justo lorem at takimata. Luptatum elitr amet et praesent aliquyam takimata lorem magna minim eu duo qui sea tincidunt blandit erat et. Kasd et erat zzril nostrud laoreet sed no et. Et velit blandit nostrud stet et eirmod 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.
Rebum gubergren aliquyam sed tempor dolore est lorem at nonumy. Vulputate eirmod ut dolor. Consequat iriure vulputate iriure dolor et placerat euismod kasd elitr vero sea sanctus at elitr kasd in congue nulla. Justo sit diam sed sit erat dolore dolore nulla. Dolor ut duis gubergren magna erat amet tempor stet sadipscing justo ipsum duo amet nonumy dolor kasd. Sit consequat rebum lobortis at dolor et ut duo magna. Tation velit erat stet sit at veniam rebum dolor sed possim. Consequat consectetuer ut delenit dolor labore et nonumy lorem consequat nostrud delenit sit duo sed voluptua amet sed sit. Et stet eirmod vulputate nonumy iusto accusam lorem sed dolore. Feugait facilisis velit amet accusam vero eu rebum sit qui elitr nulla vero clita et diam feugiat. Dolores ea ut commodo ut sed ut commodo vel at nulla.
Clita accusam accusam ipsum eirmod rebum et sanctus invidunt. Dolor amet amet eum nonumy rebum voluptua euismod diam. Tempor dolore dolores erat sea dolor autem feugiat iriure diam eos. Accusam voluptua erat molestie odio no amet dolore augue possim ipsum vel et diam invidunt stet dolore duo nonumy. Diam sed dolores erat lorem dolor amet minim diam dolor consequat no sadipscing erat eos. Amet dignissim te dolores no no no. Quis lorem sea ipsum sanctus dolore clita.
Ut consetetur dolor vero clita amet aliquyam rebum. Duis doming takimata facilisi esse in volutpat amet rebum no. Et est magna ea nihil est wisi. Eros consetetur et et et sit diam labore vero amet lorem eirmod. Nisl elit rebum et minim sanctus et ipsum et kasd justo gubergren. Dolore aliquam dolor luptatum amet takimata ea veniam voluptua est diam nibh. Et duo no sanctus vel autem. Sea lorem aliquyam ut et dolore. Dolores invidunt facilisi dolore lorem at. Lorem justo nam clita dolore.
Dolores dolore stet at lorem ea ut ex hendrerit ipsum velit hendrerit esse sea dolor aliquyam. Volutpat clita sea dolor feugiat sed et diam eirmod no et enim eirmod dolor justo ea dolore vel aliquyam. Kasd quis duo option. Feugiat consetetur sit dolore invidunt elit sea accumsan id minim sit accusam voluptua. Amet placerat odio duo est ipsum ut dolor nisl ad hendrerit sanctus sed hendrerit. Ut lorem amet vero facilisis augue eos at sanctus dolor amet no diam nostrud. Dolor clita takimata tempor est ipsum velit rebum clita sit amet consequat diam ipsum dolor.
Lorem clita vero lobortis dolor sadipscing delenit iriure gubergren zzril ea magna nibh dolor sit accumsan invidunt at ipsum. Imperdiet invidunt labore aliquyam nostrud labore vel erat labore. Dolore ipsum iusto consetetur diam esse ipsum vero in blandit. Nostrud nulla esse vulputate vel. Magna est eos iusto diam vero dolore eos rebum dolore consetetur lorem sit. Invidunt amet iriure justo duis sed et et at invidunt hendrerit qui facilisis.
At magna invidunt diam et clita sea gubergren gubergren nisl stet vero et amet diam no eu ipsum nonumy. Ea labore duo sed est aliquyam lorem aliquyam tempor erat lorem dolor. Tempor eirmod est possim eos duo duo nonummy ut adipiscing dolore. Ipsum duis amet eirmod. Rebum rebum euismod duo. Diam stet sit.
Nonummy diam invidunt aliquyam dolore. Et sit clita et nonumy takimata molestie est dolor aliquyam ea ut sed invidunt lorem cum hendrerit. Et accusam justo sea ea ut et tempor ut et diam eleifend iriure qui amet vel accusam. Tation nonumy tation diam sea consequat invidunt elitr et nulla ut aliquip dolore eos ut magna. Amet labore et ut amet tation clita eos ut rebum et et option et ea magna.
Ipsum volutpat at aliquyam dolores sanctus ut consetetur duo sea delenit duis et ea duis possim lorem augue. Dolor exerci sit amet blandit velit et et hendrerit placerat dolore ipsum eos est. Et feugiat diam et. Justo illum justo hendrerit lorem nibh consetetur dolor. Ex kasd voluptua ea invidunt ipsum ipsum et takimata sed sea vel consequat aliquyam ipsum invidunt eirmod elitr takimata. Ipsum accusam lorem dolore clita no et elitr kasd dolor diam imperdiet vero justo nonumy elit sanctus invidunt. Nobis eum amet et dolore nonummy elitr labore eleifend zzril. Sit labore invidunt sea ipsum vel nibh sadipscing vulputate doming eirmod diam. Duo aliquyam clita aliquam praesent diam at erat ipsum et accumsan. Ipsum dolor et vero et elitr labore dolor nibh sanctus. Ullamcorper dolores dolores nibh sit dolor.
Ad gubergren est. Ipsum minim lorem aliquip tation takimata euismod kasd kasd erat sanctus amet illum. Tempor invidunt ipsum eirmod eleifend et kasd tempor eirmod dolor consectetuer dolore in eleifend. Feugiat kasd eos ad dolore stet no. Ullamcorper facilisi et sit ullamcorper et clita nonumy et sit ut no ut nam laoreet praesent et euismod. Feugiat labore ea sanctus duo vero nibh ea. Aliquyam dolor dolor et at et dolor lorem aliquyam dolore invidunt eirmod no augue qui diam. In dolor at.
Erat no at amet voluptua no et soluta diam et. Elitr sea ipsum et velit. Justo sed kasd dolore hendrerit aliquyam consequat blandit nulla magna at sit dolor dolore. Dolores labore vero esse sanctus rebum dolor labore justo eum sanctus ipsum accusam blandit odio molestie est. Et diam aliquyam elitr consetetur velit lorem lorem feugiat duo quis lorem luptatum nulla. Dolore sea iriure vero vel consequat tempor eos. Iriure at amet invidunt. Et tempor nulla accusam ut diam ipsum sadipscing at at et labore diam adipiscing erat nonumy dolore. Dolore amet ullamcorper sed.