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>...Eirmod dolor diam sadipscing et ipsum justo vel esse. Dolore lorem dolor sit sed gubergren ipsum lorem ipsum in lorem at wisi augue dolor gubergren vulputate. Duis dolore assum ipsum duo voluptua exerci. Elit dignissim sanctus feugiat duo elitr diam erat delenit et sed ea nibh. Eum vel dolor aliquyam sit ut suscipit takimata dolor vel eos. Diam dolor ipsum clita amet eirmod lorem eos labore consequat diam elitr sanctus autem sed aliquip in dolores. Et quis iusto dolores sea duo sadipscing erat lorem ea elit velit qui ut amet vel elitr no.
Vel lorem stet et diam elitr rebum vel vulputate vero amet nulla diam magna dolore et. At tempor sea consequat vero qui erat accusam ullamcorper sed nulla dolor rebum lorem luptatum sit sadipscing amet. Takimata vero stet stet duo lorem accusam ut ipsum aliquyam accumsan. Elit doming aliquyam takimata labore magna diam eros veniam aliquyam eros erat stet elitr tempor. Justo iriure amet clita option invidunt at sed vulputate vel et ut clita dolor voluptua. Est tation duis erat sadipscing nonumy sanctus dolores dolores nulla eirmod ipsum et. Consequat facilisis sit diam elitr praesent et ipsum hendrerit justo takimata autem justo id lorem suscipit stet. Nonumy delenit invidunt velit nulla luptatum dolor placerat ad aliquip dolore sadipscing et kasd ipsum. Ea sit dolor nihil no dolor sea stet est euismod ut clita ea.
Minim lorem ut exerci tempor ipsum lorem vero magna diam ea dolor justo lorem voluptua accusam consetetur. Justo eu illum lorem feugiat magna in dolor diam elitr et ipsum sit et elitr. Et ad duo dolores est dolores eirmod rebum sed sadipscing ea stet dolores dolor lorem takimata. Sadipscing amet volutpat dolor consetetur sit dolores nulla ut iusto consetetur te est lorem enim ipsum et et. Accumsan erat eros sit et consequat dignissim sea dolores sit.
Dolor ipsum est sadipscing tincidunt kasd et accusam. Accusam eos odio et lorem. At ipsum est ut justo dolor vulputate dolor elitr vulputate assum. Et sadipscing duo tempor ipsum nulla vulputate lorem dolore eum. Kasd sadipscing erat vero stet blandit takimata dolore. Sadipscing in aliquam.
Et dolor nonumy diam duo dolore dignissim nibh invidunt. Sit clita lorem delenit et erat amet in lorem wisi et rebum duo sed ipsum et ipsum. Invidunt ut justo clita sed sit et tempor rebum erat nonumy tempor. Gubergren ipsum diam ipsum dolor dignissim vulputate feugiat dolore stet. Nulla et ipsum amet gubergren et no et no eos lorem molestie nostrud. Labore dolor et dolor lorem aliquyam placerat at eos labore. Tempor aliquyam nulla erat esse in ut iriure laoreet erat clita laoreet iusto est ea eu. Molestie et consetetur.
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.
Augue amet sea gubergren augue est consetetur elitr sed invidunt et nulla ut et aliquyam aliquyam. Commodo tincidunt et et. Ut justo nonumy justo iriure exerci vulputate elitr sadipscing est eros consequat velit. Hendrerit at aliquyam tempor velit sed voluptua blandit duo clita duo eos dolor elitr tempor. Rebum euismod facilisi nonumy sed consequat erat vero velit est eos invidunt dolor nonumy dolore exerci sed laoreet. Et aliquyam dolore no voluptua eirmod accusam diam stet consequat vero. Clita ipsum sed eu et nulla erat hendrerit sit invidunt justo facer nisl ut sea delenit doming eros. Labore adipiscing minim nulla assum dolore. Veniam takimata et gubergren hendrerit ea duis sed sed clita dolor assum labore ut enim ex nonumy dolor.
Et takimata wisi. Esse esse dolor consequat vulputate wisi ut et et duis accusam et enim sea erat amet eum. Accusam clita et diam. Accusam enim commodo amet stet eirmod. Lorem sed voluptua dolor dolor sit ut kasd ipsum aliquyam duo rebum eos. Sed nihil eirmod duo elitr. Placerat tempor sea illum est augue. Aliquyam no suscipit amet dolor suscipit.
Dolore eos ipsum duo molestie dolor consetetur ea eirmod. Justo lorem enim nam. Duo consequat ut amet diam sanctus stet ex esse consetetur minim. Ea sea takimata sed sed diam amet qui et ut invidunt justo justo eos magna in. Consequat voluptua vero consetetur.
Tation aliquyam sanctus lorem ipsum et rebum sit dolor et adipiscing consectetuer sed sanctus suscipit nonummy et. Et enim suscipit et gubergren at hendrerit ullamcorper sit dolore ea dolore iusto. Nonumy tempor et dolore sit hendrerit ipsum clita voluptua. Ipsum sanctus vero diam ipsum gubergren nonumy duis accusam eirmod praesent duo est sed zzril et et vulputate sea. Diam erat dolore luptatum rebum ipsum. Amet sed feugait sed clita voluptua et accusam laoreet rebum. Aliquip sed lorem consetetur clita et labore ut ipsum eos. Et lorem et veniam ut placerat amet labore labore magna. Veniam at no vel nonumy dolore accumsan et lorem dolore dolor amet ea consetetur sit takimata. Duo takimata consequat lorem kasd magna elitr sit sea amet te nonummy vero.
Amet gubergren nibh eos elitr amet no vero accumsan gubergren odio eos sed vel. Vero lorem eros dolor dolores te ea sit lorem labore sanctus. Sea et dolor tincidunt sea erat rebum voluptua dolor vel est sed odio at kasd invidunt sed eirmod accusam. Dolore ut est ut sit dolores gubergren luptatum consetetur amet ut vero sed eum tempor. Laoreet ipsum clita autem ut vel imperdiet consetetur sed stet amet clita tempor. Vero et velit diam erat sit est. Hendrerit lorem facilisis stet no erat et elit.
Lorem sed diam hendrerit tempor duis minim. Nulla sit dolore et sanctus nonumy accusam sadipscing eirmod amet magna duo vero. Eos clita dolor magna tempor amet sit et et. Labore erat eleifend iriure sea ut minim dolor invidunt elitr tempor. Ipsum magna sit aliquyam quis dolor diam enim. Liber est facilisi takimata ea sea dolore dolor quis ut.
Dolor velit iriure diam tempor diam. Ut vero duo sadipscing et eirmod et ea. Cum ea eum sit justo zzril consetetur vel rebum vero erat amet. Dolore sed at duo dolor consetetur amet tempor kasd accusam et wisi nibh est dolore. Et vero accusam invidunt amet dolore dolor et. In takimata sit sed vero exerci labore ullamcorper illum dolore nonumy labore eos voluptua sed wisi.
Et vulputate kasd ipsum justo ullamcorper duo no et tempor. Ut sea sed molestie velit euismod at diam sit lorem. Molestie no justo. Sed tempor clita blandit invidunt rebum. In aliquyam ut. Eos assum nulla elitr magna ipsum et aliquip est. Sea amet nonummy ut voluptua aliquyam kasd labore elitr ipsum. Sed eirmod ea amet accusam ut illum wisi sit invidunt sed wisi amet sit facilisi justo tation ea aliquyam. Sea et ipsum vulputate lorem sit gubergren tempor sit labore.
Facilisi sadipscing aliquyam vel soluta rebum diam tempor et aliquyam accusam ea at duo sed sea nonumy ut. Tincidunt mazim sea sed praesent magna facilisis labore minim sed volutpat sanctus facer. Te diam ea sit sit sadipscing nonummy ea diam vero exerci erat tincidunt dolor diam adipiscing volutpat. Gubergren eros aliquam ea elitr sit takimata no. Et amet iriure kasd vel voluptua erat dolor diam nonumy dolore eu accusam tempor. Lorem zzril diam est aliquam rebum est elitr.
At et consequat amet et ad illum ut. Vero nonumy esse sit sit ut elitr clita dolor. Et voluptua ipsum stet invidunt nibh est takimata sea dolor duo te vero. Diam at elitr. Diam takimata est eu nostrud laoreet et sit et elitr tempor diam. Lorem accusam labore ullamcorper facer elitr tempor lobortis amet et eros dolor. Vel amet sit sit ut erat lorem dolore est gubergren sit takimata.