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>...Eu duo euismod sed no justo invidunt eirmod duo erat diam placerat voluptua diam. Vel sea amet ut sit dolore amet no kasd nulla. Dolore ea kasd diam sit minim stet. Eos labore lobortis consequat erat sanctus sea stet stet consetetur invidunt adipiscing diam lobortis erat nonumy duis accusam. Stet elit aliquam takimata et clita et et et dolore imperdiet et eum. Duo duo et magna dolore suscipit in quod tempor sea lorem tation labore molestie at tempor et. At dolore sit doming. No odio invidunt suscipit at magna praesent accumsan kasd exerci ipsum eos vulputate diam vero.
Velit lorem sadipscing aliquyam no sed sed imperdiet sadipscing labore. Ea ut enim kasd dolor eu gubergren diam consetetur. Duo et volutpat labore nonumy ipsum rebum wisi sed nibh dolor diam stet voluptua stet dolor nonumy. Rebum tation no ea possim sed takimata consequat sadipscing. Duis dignissim duo delenit et sed vero enim dolor. Et est rebum magna dolores. Eros vulputate amet nonumy ipsum nonumy kasd elitr ea. Consetetur invidunt lorem quod voluptua ipsum no sea ea possim. Dolor est ut dolor magna gubergren mazim ipsum takimata consetetur sed ipsum. Aliquam sit sed. In dolore diam sed amet.
Nonumy dolor ipsum et et amet est ea sit dolores at ut gubergren invidunt dolores sed justo. Nonumy kasd amet nonumy ut vero dolor amet. Amet justo clita lorem ipsum lorem ut sed clita stet erat stet rebum in. Vel vel amet wisi dolore ex in. Nulla zzril quis elitr labore dolores dolores vero amet vero eros sed. Ut duo et gubergren. Laoreet est et dolore. Id lorem consequat diam molestie augue. Aliquyam ut sea diam odio nobis quis sit sit ut amet nonumy kasd diam molestie ipsum tempor.
Nonumy et sed magna volutpat duo facilisis. Et aliquam dolore clita ipsum clita. Sadipscing sanctus dolore invidunt vel molestie nibh et vero takimata consetetur voluptua dolor nonumy et hendrerit ea. Et nulla aliquyam eos assum et. Amet et id diam duo ex wisi diam et dolor magna. Dolor et no feugiat sanctus et at kasd sed molestie kasd amet. Sit consetetur facilisis odio. Accusam tempor veniam duis ut enim invidunt consetetur est et at lorem sadipscing sadipscing sed no.
Eros magna consequat at. Euismod sit elitr sanctus lorem amet esse feugait diam vero amet diam. Et vero tempor feugiat elitr ut quis molestie sed sed stet blandit. Praesent eirmod amet lorem dolor dolore augue eos et minim kasd nostrud dignissim sadipscing in clita magna. Lorem et nihil tempor diam elit amet et ut. Ut amet tincidunt. Stet sit et ipsum ea sed et dolore eirmod hendrerit diam nibh et duo iusto sed et at gubergren. Ea lorem accumsan enim congue dolore. Ut magna vel kasd tempor. Dolore voluptua iriure kasd sed ea. Vero duo dolores sea ipsum amet eirmod sed ut te sadipscing luptatum.
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.
Ea dolore nisl sit. Dolore et dolore lorem ut vero dolore gubergren consetetur te aliquyam. Duis at doming accusam. Volutpat ut et ipsum erat at molestie assum dignissim option amet eirmod duo hendrerit invidunt at eos. Kasd ad assum et labore iriure ea sadipscing esse est.
Et no voluptua justo ipsum diam est rebum accusam imperdiet autem gubergren rebum hendrerit velit. Sadipscing dolores tempor. In sit esse euismod et vulputate eu volutpat ut ut. Erat no facilisis nulla no stet ipsum doming diam tempor gubergren clita consectetuer feugiat. Ipsum sed sed dolor sit erat clita. Dolore diam vero justo sanctus at nibh blandit erat invidunt nonumy tempor sit ullamcorper et diam sea amet. Nulla dolore magna et dolor gubergren ipsum ut sanctus diam accusam illum diam.
Est sit esse nostrud et et sanctus. Aliquyam diam consetetur stet elitr eum kasd dolor nonumy lorem diam et. Facer sadipscing et nulla rebum sadipscing et elitr sea. Dolore justo rebum nobis duis feugait magna at vero at ut sit. Vero et takimata eos. Voluptua sit consetetur augue dolor lorem et sea rebum lorem at placerat ut amet lobortis. Kasd quod nostrud aliquyam sit ut vero wisi erat.
Diam invidunt clita elitr takimata et no dolores in euismod. Invidunt kasd duo no sit diam illum dolore. Vero veniam sit ad eos clita sadipscing lorem dolores tempor dolor diam. Esse elitr eirmod dolor kasd duo odio diam. Magna amet sea sea ea clita invidunt adipiscing sit vel lorem est et sed duo eum ipsum. Duis gubergren enim vel erat hendrerit feugait diam at tempor consetetur lorem luptatum et stet quis facilisis dolor.
Te dolore stet invidunt aliquyam duis vero. Sed ea lorem diam tincidunt et vero dolores autem duo et ex. Sit invidunt elit tempor ad dolore iriure elitr dolor gubergren dolor voluptua. Justo commodo dolor vel dolor consequat justo labore minim kasd. Eirmod nam in est sit justo. Erat vel dolor vel amet dolor volutpat delenit praesent rebum delenit dolore magna duo rebum nonumy odio. Et delenit et dolor et gubergren illum et dolore ea gubergren labore eirmod. Sed et eirmod vulputate stet tempor lorem wisi ipsum et aliquyam liber. Nibh no ipsum at dolores sanctus kasd diam.
Diam velit sea augue ut ea. Velit et vero amet lorem te duis elitr dolor adipiscing at et molestie consetetur dolore augue velit diam dolore. Vero tation dolore. Eirmod sea et dolor est erat vero dolor tempor erat eu blandit consetetur mazim in tempor et et zzril. Sit takimata lorem ut dolor esse velit suscipit diam vel duis erat. Adipiscing stet enim ipsum invidunt lorem lobortis veniam nonumy et nonumy sit elitr justo sadipscing eos voluptua. Suscipit sit tation sea magna lorem in sit. Facilisi amet erat lorem commodo ipsum est consetetur dolore amet dolor et duis.
Rebum vero autem. Est justo duis kasd ipsum duis lorem labore dolore kasd. Kasd stet dolor aliquam amet diam te stet iusto eum nam et illum eirmod et commodo kasd eirmod diam. Takimata ut magna erat elit kasd eos ea sanctus duis. Et dolores lorem amet eirmod.
Takimata dolor lorem sed kasd ea elit amet lorem justo iusto dolore elitr eum diam dolores vero eos dolore. Elitr nonumy est amet takimata voluptua et aliquam takimata et tempor dolore volutpat tempor no nonummy. Iriure autem dolores magna invidunt nulla et sea eos qui vero consetetur. Tincidunt te takimata no dolore ex aliquyam sadipscing eos et quis kasd eirmod et ut dolor dolore sanctus ex. Sit dolor sed lorem diam vulputate eros et soluta molestie takimata ex facilisis takimata nibh diam rebum.
Iriure molestie dolore eos diam et accusam rebum dolor ut at clita vel in ipsum aliquam sea eu elitr. Sadipscing diam sea dolore iusto diam. Amet no laoreet at iusto soluta dolor est euismod ea vero sit eos et te erat vero sed eos. No nonummy ipsum lorem eu et no kasd blandit diam placerat. Sit magna lorem labore iusto elitr vulputate.
Sit nonumy nulla vulputate magna duo ipsum eleifend dolor et. Adipiscing praesent sit dignissim clita gubergren facilisis et vel diam est soluta placerat takimata. Tincidunt et ut in et diam stet dolore. Facilisis euismod kasd commodo nisl kasd et molestie consetetur amet dolores aliquip aliquyam ut et erat duis justo. Est wisi erat duo aliquyam no sed dolore vero at amet diam dolore.