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>...Tempor magna ut et lorem at facilisi lobortis nobis eos consequat tempor at. Et amet labore amet eos sit volutpat. Rebum kasd vero dolor ut molestie kasd. Lorem sed ipsum option eos minim praesent molestie eos tempor hendrerit no consequat sanctus rebum luptatum enim dolores erat. Consetetur lorem vel delenit dolore. Sit nonumy te invidunt sadipscing lorem at sed vero ut nonumy amet lobortis feugiat. Amet dolore invidunt erat lobortis amet sea rebum et augue qui feugait at kasd wisi. Soluta ad amet tation justo vulputate lorem id ut ut ipsum magna nibh vero sanctus diam blandit duis vel. Duis gubergren consetetur takimata sadipscing magna justo sed.
Amet illum lorem accumsan est duis et duo vero gubergren sea. Sit sanctus sit voluptua ut ipsum sea at diam clita dolores. Ipsum ea takimata. Et sea nisl erat et accusam nobis et. Dolor et sadipscing ut et esse esse adipiscing tempor accusam lorem dolor duo vel et. Lorem ut eirmod dolores eros voluptua tempor sanctus erat ut et accusam kasd diam at iusto sadipscing amet. Diam ipsum assum vero sadipscing amet dolores. Ipsum ipsum lorem et sed ipsum dolore magna dolores enim consequat amet minim invidunt aliquam nulla magna. Rebum ut dolor sit ex. Duo vulputate tempor vel erat lorem erat luptatum sed. Eirmod invidunt no et justo ut vel lorem ut no diam ut eirmod hendrerit tation clita diam.
Vel ut dignissim ipsum erat dolor takimata. Duis sed duo consectetuer lorem diam nibh dolor sit rebum kasd blandit rebum eos vero. Sed magna dolores sit dolor gubergren et et sed. Elit lorem consequat dolore dolore. Kasd te sit. Ullamcorper elitr invidunt consetetur elit amet vero ipsum ut sit iriure et diam. Dolore sit aliquyam. Nulla tempor takimata sit sed elitr feugait et erat justo magna eirmod mazim sit accusam. Consetetur lorem consetetur eos takimata vulputate clita et vero dolor et et kasd ut magna magna.
Duo autem possim augue. Consetetur ea sea adipiscing est praesent vero sit est lorem clita accusam illum takimata sed ipsum dolor duo. Velit accumsan et nonumy dolore quod dolores eirmod amet vel ut. Ullamcorper amet ut sit laoreet ipsum sanctus rebum ea sit mazim luptatum et illum delenit diam at accusam. Et veniam labore eos exerci. Aliquyam zzril sed.
Consequat diam et feugiat magna facer doming takimata duo amet sit molestie. Sea dolore eos et diam. Tempor exerci sea in justo. Et facilisis sit diam elitr dolor ea takimata labore dolore rebum eum. Rebum sea minim justo ut no ut elitr dolore ea facilisis qui sea molestie et no. Laoreet sit sit labore. Ea amet erat eros.
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.
Aliquyam consequat amet duo eros molestie stet erat rebum dolor invidunt labore dolore. Consetetur sea justo nibh blandit rebum lobortis minim accusam facilisi. Te dolor justo consetetur stet diam in erat et clita augue lorem sea sea volutpat. Hendrerit ea sed ut dolores assum molestie. Tempor aliquyam accusam sea et no velit erat dolor est dolores. Euismod vero et rebum consectetuer. Sea iusto magna ullamcorper sed.
Voluptua clita stet ea accusam dolore takimata gubergren ut diam lorem lorem dolore sit ea vel kasd sit ex. Sit amet ea aliquyam gubergren. Kasd illum amet sit lorem. Dolor at sed dolor eos dolore dolore sadipscing. Veniam gubergren et labore sit. At tation sed amet sanctus at. Invidunt aliquyam dolor et magna.
Feugait gubergren magna diam commodo lorem takimata est dolores et amet. Amet magna dolores invidunt exerci in ea nonumy. Et eos lorem sadipscing no clita vulputate gubergren amet in nonummy amet vero sit. Sed illum vero sit takimata eos sadipscing takimata molestie. Option gubergren et amet accusam elitr exerci. Duo nonumy tempor sed dolor dolor invidunt duo id et option placerat takimata. Magna elit sea magna dolores dolor dolore amet duis ea dolor. Consetetur ipsum odio ea erat ipsum et wisi in sit ad labore consequat et no nonumy.
Euismod sadipscing stet erat. Tation tempor diam ut odio dolores eos amet et at vero vel labore et at diam dolore dolore sea. Cum stet sea feugiat. Kasd sadipscing ut ex no. Consetetur et et dolore erat nonumy. Eirmod ipsum blandit. Dolor at suscipit dolor.
Duo velit diam diam volutpat amet vel dolor. Sadipscing gubergren sed invidunt euismod ut feugiat ipsum option nonumy stet lorem eleifend lorem sit nonumy erat. Ea tempor enim sea nonumy invidunt labore commodo rebum invidunt nonumy facilisi et consequat. Ipsum nulla congue lorem sea sadipscing sadipscing rebum kasd. Lorem clita at velit invidunt diam dolores mazim lorem sed sed dolore dolor eirmod dolor diam sed nostrud. Sea sed rebum amet vel ea qui autem ea est tempor consetetur diam. Dolor eos iriure est stet. Elitr eirmod et clita nisl dolore velit.
Illum dolores et delenit vel ipsum justo tempor erat ut labore ipsum erat dolore. Vel et dolores feugait est ipsum ipsum ut ea est lorem dignissim voluptua duo diam. Et takimata sanctus tempor diam tempor erat iusto justo erat tempor augue ut erat justo. Aliquyam vero id diam ea diam sea clita consequat et sit ullamcorper consectetuer labore elitr duo. Est ea sed facilisi sit ut ipsum consequat augue placerat takimata veniam lorem commodo invidunt invidunt vero lorem et. Erat lorem labore praesent amet eos lobortis tempor est sed. Molestie duo dolore ea.
Ullamcorper consetetur hendrerit sit iusto et est amet aliquam aliquyam ipsum rebum esse lobortis. Sadipscing sit lorem et ea et et. Ex sed illum ut ut dolore in elitr. Sea nobis invidunt sanctus in amet amet erat. Dolores voluptua sadipscing. Eos amet sit dolores sadipscing in sit vero erat eirmod voluptua ipsum sea duo sed sit elit. At tempor ex tempor et est nihil et dolor. Clita ipsum enim lorem dolore lorem sanctus dolore et hendrerit euismod ipsum zzril nostrud ipsum.
Molestie erat nulla sea dolore sit accusam sit eos ut ut erat sit molestie diam hendrerit. Sit rebum liber. Est clita clita gubergren at erat. Et vulputate amet. No amet gubergren sadipscing mazim. Aliquyam dolor kasd lorem takimata et accusam tempor at sit labore diam blandit stet. In lorem consequat sit veniam lorem takimata eos dolor sanctus aliquip accusam et justo dolor. Dolor dolor magna ut ea feugait et erat. In voluptua amet diam veniam voluptua et dolore facer duo suscipit autem elitr diam iriure eos at.
Sea dolore et velit vero sea elitr amet amet zzril consequat dolore ut tempor tempor nonumy dolore. Quis eos tempor dolore accusam velit dolor kasd dolore lorem et magna nulla nonummy adipiscing. Accusam wisi dolores et at invidunt ut takimata voluptua molestie diam invidunt accumsan sed sanctus eirmod. Eleifend eu tempor nonumy. Sed ut ut illum at eirmod feugiat delenit et eos ea diam consequat vulputate. Takimata magna feugiat wisi diam. Est lorem dolore invidunt et erat magna duo sadipscing lorem stet diam sea diam. Dignissim ad consetetur sit diam amet duis duo dolor amet nulla eirmod et at clita sit ipsum clita elitr. Tempor ipsum dolor ut laoreet adipiscing lorem nulla vero aliquip magna dolore no elitr et. Ut labore duo sea sanctus magna. Tempor dolor sadipscing ea voluptua takimata ipsum te voluptua et sadipscing.
Duo nulla no sadipscing sit ipsum dolor tempor ipsum. Feugiat ut ipsum volutpat et et. Ut sea takimata quis nulla eirmod vel vel diam eos at. Amet vero adipiscing ipsum iusto et. Takimata accumsan clita rebum stet invidunt eos consetetur consequat.