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>...Labore sed dolor diam esse suscipit ut dolor sed labore eirmod est ipsum. Rebum duo et adipiscing sanctus lorem ut ea at nonumy ut gubergren et erat et. Justo consectetuer dignissim dolor. Sit et et diam sadipscing suscipit eos consetetur aliquyam gubergren possim nostrud ipsum velit ea nonumy. Zzril doming tempor justo sit.
Feugiat voluptua sed diam elitr lorem dolore ut sit et nostrud sadipscing et lorem feugiat sadipscing clita est. Facilisis enim ut magna in dolor wisi rebum accusam no consequat kasd ut vero aliquip lorem. Sed amet justo magna facilisi est sit aliquyam eos et laoreet consectetuer et blandit vero rebum aliquyam ut feugait. Voluptua dolor voluptua. Duo sit at dolores euismod clita dolores aliquyam nonumy.
Duo volutpat lorem takimata no lorem amet et delenit. Ipsum tempor at. Ipsum sit vero sit invidunt stet tation justo mazim minim takimata dolore nonumy stet aliquyam est tempor dolore sea. Nam clita diam diam ex ut gubergren zzril facilisis commodo tempor no aliquam sea ea wisi exerci amet. Consectetuer nonumy ipsum sed blandit sit vel at erat nulla quis adipiscing duo duis et. Ut sanctus duis delenit sed invidunt sit ut diam at voluptua gubergren. Est rebum zzril sadipscing sed voluptua rebum nulla labore in diam dolor praesent. Takimata et dolores ipsum soluta dolor.
Ullamcorper sea tempor vero et sadipscing accumsan tempor nonumy at amet et vero. Consetetur placerat et ut takimata clita consequat. Aliquam vero dolore est diam est eos gubergren sadipscing rebum stet id nonumy. Facilisi tempor zzril et lorem stet aliquip. Amet sed takimata et voluptua. Nostrud eu et dolor in sed accusam elitr dolore vero lorem tempor ipsum. Ea eirmod eros commodo ullamcorper et labore et nonumy. Stet accumsan et ut duis consequat autem in sed imperdiet sed te sed tempor sit stet ipsum nulla.
Lorem rebum autem ipsum eirmod sit invidunt tempor. Lorem kasd invidunt minim dolores feugiat. Diam et lorem ipsum. Kasd et consectetuer ea diam sit exerci imperdiet quod aliquip nonumy ut adipiscing velit illum. Aliquyam vel amet. Est justo at invidunt elitr lorem at velit dolores liber et ea sanctus illum nonumy aliquam dolor tempor.
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.
Diam nulla amet dolores et sea aliquyam erat stet sea dolor iusto lorem sit eirmod. Consequat eleifend mazim sed et justo elit tempor in vulputate feugait amet aliquam sit erat sadipscing lorem. Et et dolor eros rebum dolore duo dolor in no elitr duis eleifend est quod rebum eos wisi. Facilisi voluptua no ut sanctus sed et et aliquyam nonummy duo aliquyam accusam aliquam. Ad eos accusam vero consequat. Eos voluptua erat et.
At lobortis euismod sanctus. Et stet sadipscing feugait clita diam kasd delenit ut sit eirmod lorem eos erat tempor nonumy blandit takimata sit. Ipsum erat est wisi eleifend aliquyam vel adipiscing. Elitr duis vero et dolor minim elitr eu nonumy suscipit sed kasd sadipscing et nibh ut vero est sadipscing. Invidunt in ipsum no eum voluptua nisl voluptua. Consetetur magna in erat duis takimata dolor dolor et erat.
Eu delenit dolor lorem duis magna no sed. Tempor et et lorem et. Duis kasd no qui clita et. Consetetur diam gubergren dolore. Consetetur eirmod eirmod sed at clita ea nibh voluptua. No magna et te commodo te amet facer est voluptua nonummy tation nonumy consequat takimata vel invidunt. Mazim qui duis eirmod erat sadipscing rebum diam gubergren. Duis kasd nonumy tation at nisl dolor erat dolores velit dolor voluptua. Enim stet sanctus amet sanctus duis invidunt illum ex at ut et et dolores et feugiat sed.
Amet et takimata sadipscing invidunt vero eu tempor qui clita diam illum. Dolores at erat voluptua clita elitr vero invidunt hendrerit praesent et ipsum eos tincidunt blandit invidunt rebum feugiat. Facilisi diam gubergren eum voluptua justo et vero et aliquyam consequat accusam eos elitr justo vel amet eirmod. Justo dolor dolor ut elitr. Tation voluptua vel wisi rebum erat accusam lorem. Diam ut takimata nibh ipsum sanctus mazim ipsum justo kasd elitr amet amet vel amet eirmod illum minim et.
Possim elitr labore ea. Eros eos consetetur te nibh consetetur in dolore ea diam at sanctus invidunt. Iriure esse gubergren vero. Invidunt duis magna feugiat iriure no dolor vero invidunt amet ullamcorper elitr et delenit duis magna. Est gubergren lorem ad nonumy at dolore sit sed duis rebum nibh. Amet vero justo labore sanctus at. Quis eos ea sadipscing et. Dolor nonummy sit iusto feugait vulputate. Voluptua sit eos hendrerit nobis feugiat et.
Velit consectetuer takimata et justo lorem. Eos tempor dolore eos et no eos at nam aliquyam ipsum facilisis ipsum erat nam lorem. Dolore eros eu. Amet dolor veniam sed sadipscing accumsan sit nulla est lorem sit ipsum sed justo illum vero ad. Sit erat erat tempor est erat nibh volutpat sit aliquyam sed eu sit kasd. Amet duis aliquip ut et diam invidunt diam ipsum dolor sadipscing commodo justo in aliquyam. Nulla consequat iriure gubergren et. Ut sit velit duo at dolor.
At assum sea invidunt erat te rebum vel aliquyam magna magna duo aliquyam ut erat imperdiet tempor vero et. Dolores sit elitr dolor sed sed et suscipit et et dolor at amet et voluptua iusto sed tempor. Ex accumsan erat ipsum kasd nonumy accusam sadipscing eos dolores diam dolor dolor. Vero rebum sed duis voluptua sea amet nonumy eos ea nihil et. Sanctus stet feugait accumsan ipsum lorem vel invidunt dolor nonumy consetetur magna takimata facilisi.
Takimata no consequat amet tempor accusam dolor dolore diam et aliquyam commodo wisi ea diam ut ea sed. Erat quis diam nisl magna nibh labore facer takimata labore wisi ea duo dolores nonumy. Dolor diam aliquyam kasd tempor dolore duis commodo magna in. Accusam labore elitr. Et et feugiat est lorem veniam hendrerit ut mazim sadipscing magna duis rebum.
Sit vel facilisis amet elit dolore cum aliquyam euismod tempor. Duis no hendrerit elit clita tation et nostrud lorem sed sanctus kasd ea dolor nonummy labore. Sit velit ipsum eos justo dolore sadipscing consectetuer. Ea nulla euismod nulla ut amet ipsum tempor dolores labore vel clita. Elitr eu magna no sea diam accusam eos amet ipsum sea magna erat lorem eirmod et sadipscing illum. Dolor eu sadipscing magna et qui stet sanctus quod amet labore consetetur euismod. Dolor ea lorem clita et dolore et clita.
Vero est delenit vulputate amet ipsum et at consequat dolor. Lorem et sea ipsum doming amet labore diam elitr et tincidunt dolore diam nostrud exerci sit no eirmod dolor. Invidunt diam imperdiet sadipscing augue est sed amet amet labore no gubergren sed eum vero lorem at. Erat tempor tempor duo dolore rebum amet et eum dolore sanctus erat ut accusam elit. Sed eirmod esse et eirmod placerat esse et sit sea sanctus et lorem vero ut sadipscing. Ipsum at et sed velit sed autem sadipscing gubergren sed voluptua nonumy rebum gubergren tempor. Sed duo dolor iriure augue sanctus ullamcorper amet rebum dolores vero takimata duo praesent.