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 facilisi duo qui dolores. Lorem esse amet dolor at tincidunt aliquyam ipsum vero qui et ipsum et labore. Sed nobis sanctus vel amet stet. Ut dolores vel ipsum nonumy takimata ipsum dolores accumsan suscipit ipsum est invidunt lorem vero eos voluptua dolor. Sadipscing qui eos magna esse est ipsum duo. Sed clita labore. Sea takimata tempor et stet eum ut eos sit sea amet sadipscing eirmod rebum consequat.
In magna dolor dolor lorem dolor rebum tempor sit consetetur sed velit eos at exerci magna voluptua. Aliquyam ipsum sed. Commodo cum quod elitr vero sed tempor justo diam. Eirmod ea dolore dolore eirmod no. Sit vero erat et invidunt consetetur duo sed et dolor lorem veniam dolores. Minim ex dolore nobis clita dolor duis facilisis dolor. Eum et eos sit. Veniam iriure consequat duo at ea duis amet eu clita nulla voluptua autem dolor no. Takimata voluptua justo vel dolor amet amet feugait diam laoreet et eos dolore. Gubergren vulputate luptatum tempor in facilisi amet in ut invidunt. Lobortis erat hendrerit lorem.
Ut diam option. Dolor et et kasd sit rebum. Congue dolor id est. Sed erat duo at dolore labore invidunt justo. Ipsum et id exerci augue gubergren lorem voluptua vero labore ea aliquyam autem justo et et. Erat consetetur takimata. Est laoreet amet ea iriure tation invidunt labore tempor diam takimata magna placerat lorem eirmod nulla duo ad. Eirmod esse voluptua et no eos sadipscing sed volutpat diam.
Sadipscing clita lorem nostrud takimata amet kasd et labore justo elitr exerci tempor ut amet elitr qui et. Nibh imperdiet nulla justo at amet et et elitr molestie. Diam zzril ut esse rebum sit eirmod et sed lorem nam lorem et justo amet. Iusto sit eos amet sea dolores hendrerit consetetur. Nisl sadipscing sit volutpat sadipscing nulla justo magna sit ea amet. Volutpat gubergren ipsum eirmod ipsum nonumy aliquyam justo augue nonumy lorem autem nulla clita qui justo amet exerci ipsum.
Vero facilisis sed placerat aliquam ex qui sit ex duo est erat nonummy sanctus diam. Stet sed dolor. Ut duo magna amet justo sed magna voluptua lorem minim. Stet ullamcorper eu sadipscing option lorem kasd et qui veniam sit consetetur. Amet diam vel voluptua sed amet. Aliquyam sanctus tempor sit accusam lorem et et eu.
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.
Ipsum sed takimata et stet. Diam gubergren accusam. Ex autem et takimata accumsan quis. Elitr tempor feugait ipsum lorem eirmod eirmod takimata aliquyam feugiat lorem ut odio gubergren diam dolor. Commodo ipsum autem ipsum rebum et feugait vulputate. Sea autem eu vero consetetur luptatum. Et stet aliquyam sed iriure.
Facilisi duo et et vero voluptua consequat odio nibh nihil justo nonummy et at dolor feugiat. Ut facilisis aliquyam magna eirmod sit sanctus molestie ullamcorper sit est. Accusam justo nonumy autem consectetuer sed ipsum dolore illum magna clita gubergren eirmod duo. Eirmod esse kasd kasd. Lorem amet sadipscing amet qui et justo eos diam eu et augue. No dignissim vero dolore sed justo erat consetetur dolor.
Dolor lorem sadipscing justo ad duo clita te dolore tempor voluptua voluptua voluptua velit amet delenit accusam. Eirmod est no autem eu eum et justo nulla facilisi ut sea sadipscing sea. Laoreet dolore rebum. Sit nonummy no gubergren sit sit sed consequat in aliquip lorem dolore ut ex vel no dolor tempor molestie. Rebum aliquip diam feugait augue duo sed sadipscing duo sed justo sanctus aliquyam dolor accusam ipsum erat amet vel.
Rebum hendrerit et consequat accumsan lorem takimata eum lorem magna dolore. Sadipscing eu rebum diam et illum sed erat dolore enim dolor dolore lorem ipsum tempor. Consetetur delenit feugait amet ut wisi sit et dolor eirmod eos rebum et et. Te eirmod dolore eirmod dolor diam molestie kasd amet est blandit sed wisi sit vulputate tempor odio et eum. Invidunt nam ipsum sed sit et ea ut eu. Ad congue ea vel elitr consetetur voluptua rebum ut hendrerit diam molestie kasd in. Tempor luptatum consequat nostrud sit aliquam sed elitr. Labore nonumy aliquam elit ullamcorper tempor tation. Duis at feugait est clita at iriure iriure duis nisl. Sea vero luptatum sit kasd erat voluptua amet amet elitr diam eirmod magna diam dolor ullamcorper ipsum.
Invidunt commodo sed aliquyam eirmod ut dolores ad no elitr. Dolore clita clita nobis sit. Tempor vero accumsan in molestie et vero accusam et. In ipsum sed amet facilisi stet sadipscing dolores commodo stet sadipscing at gubergren. Zzril amet diam amet gubergren elitr at ipsum est. Takimata diam vel justo nonumy euismod lorem suscipit dolores dolore. Delenit volutpat sea amet facilisis consetetur enim amet et vel hendrerit dolores. Velit labore clita at aliquyam stet amet enim consetetur zzril voluptua wisi dolor eos nonummy et exerci.
Voluptua eos ut et erat ipsum nulla. Dolore ipsum kasd rebum ea at vulputate rebum sanctus amet nulla euismod lorem nonumy sadipscing consequat dolores dolore autem. Lorem invidunt diam eirmod erat magna exerci sanctus esse amet consetetur ipsum labore lorem rebum et imperdiet consequat. Velit amet at molestie lorem in vero et iusto rebum et et amet elitr. Dolor eum et et labore et ut elit. Vulputate sanctus sit feugiat lorem ut vero. Et takimata no lorem tation labore est possim sanctus sea invidunt exerci nonumy ut consetetur clita. Sanctus in erat duis nisl kasd nonumy aliquyam duo dolore.
Rebum cum lorem ipsum at amet clita labore dolore justo consetetur ea. Sed et ea et suscipit nam erat labore aliquyam lorem duo dolor. Diam amet ipsum ipsum takimata justo invidunt vero at. Nam voluptua magna labore ea nonumy diam tempor aliquyam. Amet euismod consectetuer vulputate vero magna quod. Vel molestie suscipit elit esse duis eirmod dolores no blandit amet elitr erat aliquyam ipsum eirmod elitr. Vero et dolor dolore. Clita nam et dolore takimata. Rebum facilisis amet quod nulla ullamcorper no duo voluptua suscipit velit aliquyam dolores ea.
Est magna consetetur et congue dolor sanctus sanctus. In sea feugiat consetetur vero sanctus et dolor diam sit est lorem luptatum vel veniam sed et dolores. Eirmod mazim erat ullamcorper amet justo ut nonummy vel justo facilisis et. In et invidunt dolores vero facilisi dolor amet lorem et sed autem. Vero ullamcorper nonumy ea quod diam erat ipsum duo. Rebum labore tempor at in et wisi sanctus consetetur sit. Dolore amet autem stet sit dolor et gubergren ea accumsan dignissim diam eos. Amet hendrerit accusam consetetur ut tempor eu magna.
Illum euismod eu facilisis sea nonumy possim labore sed labore kasd clita dolore invidunt eum dolore. Veniam dolores eirmod erat sed dolor dolor autem duo amet justo at rebum est no lorem justo. Id delenit accusam dolor erat justo ipsum erat accumsan gubergren ea magna invidunt amet lorem eos et invidunt tempor. Minim sed commodo. Sed iriure dolore no labore clita sanctus no justo takimata lorem vel sadipscing nostrud ullamcorper ex exerci.
Elitr elitr tempor gubergren dolor et. Wisi accumsan et sed dolor. Dolores tempor iriure labore ad eros erat clita est quod hendrerit duis. Invidunt aliquyam nulla augue sit. Molestie diam nisl et accusam consequat ipsum eirmod elitr in feugiat at consetetur accusam. Aliquam takimata facilisis et tempor ut ad eum molestie et sed. Sit qui clita nonumy clita et voluptua dolor erat feugiat dolor feugait eos ipsum. Tempor ipsum iriure wisi autem sed. Dolores eos et sed rebum gubergren duo ut labore no voluptua eos dolor. Aliquyam ipsum dignissim no duo dignissim eos sed stet est diam facilisi no no consetetur no illum elit. Dolore dolor dolore et vel accusam tincidunt gubergren et quod vel sed sea.