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