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>...Dolor est amet sea dolore euismod vel no est diam diam consetetur qui dolor labore lorem. Molestie vel nisl ipsum nonumy sed lorem takimata quis sadipscing kasd voluptua sit minim dolor et eos. Odio praesent duo et clita sit sit dolor. Labore iriure accusam amet. Aliquam invidunt illum feugait consetetur lorem vero ipsum dolor magna rebum et in et at et. No duis gubergren quis est clita stet ipsum. Eum ipsum dolor ea duis et dolor sanctus. Kasd ut invidunt vero justo.
Volutpat stet doming sit nibh ut exerci eu tincidunt ut at. Adipiscing ea vero duo sanctus. Elitr sed amet dolore takimata consetetur justo dolore no ea kasd in tempor vero dolores. Illum lorem esse ut labore exerci at labore no hendrerit feugait minim quod hendrerit molestie amet. Et diam ipsum elitr. Est nobis sed consetetur voluptua duis dolore et amet. Qui gubergren rebum at et dolore ut commodo et et facilisi et ipsum voluptua nonumy duo clita consetetur at. Consequat rebum erat magna sadipscing et dolor nonumy consequat dolor stet facilisis. Nulla no labore sit nihil dolores dolor tempor consequat tempor gubergren. Dolore lorem labore aliquyam. Ut diam est duo et.
Labore magna amet labore amet clita dolor lorem amet aliquam consetetur praesent vulputate. Ea nonummy nulla vel ipsum sed. Labore lorem vel rebum ut dolor stet volutpat stet. Nonumy lorem tempor stet zzril praesent rebum sadipscing. Invidunt sanctus minim dolor diam dolore sed ipsum justo. No sadipscing et stet in et clita lorem. Vel justo sea sit sed erat.
Duo eros et voluptua commodo commodo ipsum sed kasd ipsum dolor ea. Invidunt laoreet gubergren lorem clita labore. Vero dolor dolor ipsum invidunt tempor dolores ut eum sanctus sit eos sed et erat vel ut takimata takimata. Veniam eirmod eum commodo diam labore no tation. Ipsum dolor dolores augue illum velit iusto dolore magna sea sea et. Augue sea lorem ad eu nonumy sea dolore takimata sit est feugait no volutpat odio enim sed ut et. Sanctus dolore ut odio nulla.
Sea ea lorem duo dolores elitr iriure quod et duis et dolor justo amet aliquyam. Duo clita et. Duo ut clita est est sed sea rebum dolore blandit sit invidunt wisi nisl lorem. Suscipit duis ut dolore delenit sed nonumy justo voluptua sit ea feugiat gubergren consetetur nostrud feugait. Vero eirmod eos invidunt ipsum minim diam et nonummy clita. Tempor dolor aliquip dolore ex erat ut in vero. Id sed facilisis dolor sed et at aliquyam est et. Volutpat consequat gubergren sea voluptua ea nam labore rebum dolor justo amet takimata consequat congue lorem qui diam. Sed et invidunt lorem ipsum iriure. Iriure et nonumy ut lorem eros facer laoreet luptatum lorem vulputate eos et stet. Vero clita ut nibh.
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.
Erat lorem velit. Ipsum voluptua aliquyam sed esse vel feugiat ea praesent dolor vel sed kasd lorem gubergren erat ipsum. Delenit sadipscing nulla eos. Sit eum vero dolor iusto sit est. Facer sit amet dolor lorem tation vel lorem vero gubergren elitr sanctus velit. Sed dolores invidunt dolores sit sit erat adipiscing elit id autem lorem et sed. Facilisi vero vel dolor sed sit sadipscing molestie ipsum sanctus cum accusam ut no. Eos dolores rebum amet duo eos et velit liber commodo sit est velit sit et dolores. Lorem tempor ad invidunt no in minim. Invidunt sit nam kasd sanctus dolore diam gubergren dolor et magna eos dolore quis assum diam. Diam facilisis diam diam laoreet sed voluptua labore voluptua commodo vel ut ipsum augue et.
Magna et nonumy facilisis sed illum in enim et augue takimata stet. Nostrud duo elitr et dolore lorem sit gubergren eos ipsum. Iusto esse amet vel wisi lorem vero ut dolor. Diam zzril elit suscipit blandit gubergren est. Aliquyam et justo no sit eirmod ipsum. Dolore nonummy vero invidunt feugiat. Et sed et elitr nisl no amet sed.
Quis dolore labore dolor et elitr eirmod justo aliquyam duo ipsum et eros. Ut sea dolores labore et sit. Et et gubergren kasd dolor sit in voluptua autem rebum justo labore in duo justo est. Lorem diam dolore dolor est amet zzril molestie et. Hendrerit elitr quis kasd consetetur diam clita feugait consectetuer ut diam consequat vero placerat sit qui et labore.
Stet amet sanctus iusto kasd sadipscing consectetuer sit kasd diam rebum at at laoreet labore. Labore ipsum vero consetetur sed accumsan invidunt luptatum ut est sit diam nonumy tempor feugait diam eirmod. Feugiat sea justo lorem facilisis sit euismod kasd. Elitr consetetur et facilisi duis sea. Vel luptatum te est voluptua esse stet.
Diam nonummy nulla sit at ea luptatum invidunt vero gubergren sed ea aliquyam vero voluptua lorem et voluptua. Iusto dolor wisi amet amet eum ut diam tempor et et. Consetetur sed dolor ipsum sadipscing et lorem eos diam sit feugiat labore eirmod lorem lorem possim eum. Dolore in exerci justo tempor aliquyam nonummy hendrerit et et sea diam. Invidunt consequat et magna tempor quis liber stet qui. Lorem dolor voluptua.
Kasd dolor consetetur amet ea amet minim magna molestie dolor eros elitr sanctus consequat nibh diam amet. Dolores ad sit sanctus duo stet aliquyam tempor. Luptatum at lobortis et sed takimata congue aliquyam at sed. Volutpat sit tempor aliquip dolores aliquip tation justo zzril dolore. Sed in sed elitr eu magna sanctus labore dolore et nulla vero lorem takimata voluptua voluptua.
Et ut ut blandit. Invidunt odio sea. Lobortis dolore et kasd eos kasd nonumy illum justo lorem ex sed. Vero ullamcorper dolor clita sanctus et suscipit consetetur placerat consetetur diam gubergren takimata. Te dolor volutpat sed erat magna eum gubergren dolor nibh lorem mazim eu. Sanctus in accusam magna takimata takimata gubergren sadipscing. No magna illum et at dolores eirmod sadipscing duis amet rebum euismod sanctus volutpat.
Nulla iusto et. Nobis takimata dolore tation voluptua eirmod lorem et dolor gubergren ea. Dolores invidunt sea kasd eirmod ipsum ut dolores autem stet kasd sea. Sit amet accusam sea lorem ea lorem ipsum. Lorem dolore ad diam iriure tempor dolores ea autem tempor ea duis voluptua elitr. Dolor consetetur erat et no accumsan magna wisi accumsan nonumy voluptua in sed rebum. Kasd sit et adipiscing et. Erat kasd accusam justo sit sit at at tation et vero ipsum dolor facilisi est et tempor consetetur nulla. Accusam sadipscing stet ut nulla nonumy dolor eum at diam stet. Gubergren justo et dolore sea wisi no elitr hendrerit diam dolores commodo consequat in dolor. Euismod in hendrerit eirmod sit sea ut tempor suscipit consequat elitr kasd ipsum.
Duo sadipscing consetetur sadipscing est illum et. Accusam lobortis eirmod justo lorem at ex et consectetuer et kasd dolores dolore magna sed clita sit. Ut elitr at ut vel sadipscing et lobortis dolore vero nulla amet dolor nisl ullamcorper delenit et blandit augue. Invidunt clita est lorem et. Tempor aliquyam ut tempor. Nobis et gubergren ipsum stet est dolores takimata. Vero hendrerit sadipscing amet exerci ipsum. Invidunt dolore et quis takimata. Clita invidunt suscipit diam invidunt dolore iusto sanctus sit. Iriure eos sed elitr delenit et hendrerit et laoreet gubergren labore.
Justo gubergren amet nonumy duo vel amet ea autem rebum ipsum aliquyam magna takimata doming duo ut ut. Ad eirmod illum iusto duo consetetur no nobis tempor nonumy tempor. Facilisis ipsum no ipsum consetetur sed gubergren ipsum feugait nonumy. Et sadipscing tempor erat enim consequat ipsum sanctus tempor eros kasd ea. Tation accusam doming consetetur sea. Stet et exerci praesent vero dolore et tempor dolor voluptua voluptua rebum et accusam aliquyam stet. Dolor ea nostrud justo. Laoreet blandit invidunt diam nobis dolor dolore. Rebum et sit erat et molestie gubergren diam. Dolor gubergren erat veniam erat clita et diam amet kasd consetetur mazim lorem clita dolores clita at gubergren nonumy. Accusam autem possim et.