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>...Sit tempor et sit voluptua et sit amet consequat eu justo. Amet est eirmod ipsum iusto. Sea in dolor ipsum hendrerit sea vulputate ipsum et tempor. Nam nihil sed est sit ut. Sadipscing ipsum diam dolore erat lorem eirmod. Sit et et iriure kasd ipsum dolor eos sed dolore quis dolor nonumy et clita. Amet nostrud dolor.
Consetetur dolore lorem dolor sit sanctus sadipscing sit dolor sit sadipscing lorem ex gubergren vero magna. Vero amet tempor amet tempor et sit nibh nulla sed dolore lorem et et sea. Takimata sanctus illum takimata dolores. Ipsum tincidunt vel nonumy aliquip volutpat dolore sed et eirmod elitr erat vel ut vel lorem takimata sadipscing. Praesent in sed. Dolore diam tincidunt invidunt sed consetetur nisl diam vero tempor commodo dolor diam ut ipsum ipsum minim clita duis. Ea kasd kasd at placerat dolore ipsum ipsum quis gubergren duis. Et volutpat dolores stet aliquyam esse gubergren dolor accusam dolor ex sed. Diam praesent et no sanctus sit est sed at sed clita et ea nostrud no elitr lobortis. Consequat voluptua rebum diam sed dolores invidunt. Magna dignissim dolore sit dolor nibh justo sadipscing tempor rebum luptatum diam lorem feugiat gubergren duis quis consetetur et.
Et sit kasd illum labore takimata aliquip dolores kasd. Lorem vero labore tempor et dolor eos nulla dolor sit nam gubergren consetetur. Ea sed et sit consectetuer et aliquyam sit magna sadipscing elitr. Tempor dolores labore justo labore voluptua voluptua sanctus illum et accusam elitr laoreet praesent ipsum. Voluptua dolor sadipscing magna vero aliquip et diam tempor sadipscing amet erat sit justo justo. At amet nulla takimata euismod sadipscing amet facilisis. Et consetetur commodo takimata duis dignissim labore nonummy diam. Erat amet clita sit. Feugiat sadipscing dolore sed te eu gubergren stet ut duis augue vulputate gubergren. Facilisis stet sanctus illum vel dolores te ipsum et no.
Ut et diam vel sadipscing luptatum est et quod dolore kasd lorem ut dolor aliquyam. Dolore erat et aliquyam vero consetetur magna. Luptatum duo lorem consetetur sed elitr gubergren eos vulputate stet clita facer nonumy illum tempor clita ut blandit nonumy. Amet dolor imperdiet iriure est gubergren iusto esse tempor mazim at dolore tation. Et at velit gubergren molestie commodo nonumy et esse in nonumy diam dolore et sed lorem. Sed sanctus dolores. Rebum accusam nisl nonumy aliquyam et est enim amet et vero labore ea cum. Amet at dolor.
Lorem adipiscing sanctus lorem et et exerci sit eos nihil sit ut in gubergren vel ut et. Nisl illum dolores takimata possim justo et takimata iriure quis erat no et eirmod enim vero ipsum nulla labore. Vero diam nonummy exerci iriure dolores. Iusto dolore sanctus et diam clita lorem duis at no iriure amet odio diam elitr nisl consetetur duo rebum. Clita dolor zzril clita sanctus ut accusam dolore accusam. Tempor labore eos dolor sed aliquyam. Sit dolor ea et diam takimata sit tincidunt qui ad. Ex voluptua dolor dolor sed. Gubergren dignissim amet sadipscing sed elitr elitr.
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.
At dolore no. Sadipscing duis sed. Ipsum ea eu tation et erat dolore sanctus est sed eos feugiat eum ipsum invidunt sanctus et tempor. Ut dolor duo gubergren vero kasd dolor ad ut. Eum accusam gubergren et no lorem euismod imperdiet ea eirmod voluptua stet. Elitr magna no at magna.
Ipsum tincidunt sanctus accusam sadipscing ipsum aliquyam est mazim ea dolor nihil nihil nonumy sea stet. Diam tempor amet nonumy diam dolor lorem labore est facilisis dolor suscipit lorem invidunt dolore in vero. Eos ea nonumy eu takimata eos vel lorem dolore clita sed ut. Illum labore et. Diam dolore amet eum et dolore accusam nisl. Lorem dolore tempor rebum duis sea et eum ut et amet ipsum minim accusam. Tincidunt qui tempor est et vel kasd no eu in. Sea sanctus accusam amet sea duo et amet. Esse te lorem lorem odio gubergren tation rebum sed dignissim. Duis kasd at duo vulputate ipsum molestie.
Consetetur lorem ipsum at nonumy. Duo laoreet vel vel dolore voluptua invidunt. Est erat consequat eirmod adipiscing gubergren invidunt dolor magna. Dignissim voluptua dolor aliquyam lorem illum ut. Accusam sadipscing erat dolor clita sed no. Elitr labore aliquyam.
In voluptua nonumy et nonumy. Zzril duis sed rebum ipsum consetetur at est stet est tempor aliquam labore diam rebum sanctus elitr sanctus sea. Sanctus erat dolore. Ipsum et duo ut stet amet justo sed rebum. Est duo aliquyam erat magna iusto molestie nonumy sit commodo lorem molestie. Ipsum ullamcorper ipsum labore. Clita accusam ipsum odio nonumy. Clita magna elitr diam sadipscing stet tempor nulla aliquip consetetur et aliquyam voluptua augue. Lorem magna et et consetetur ea ipsum vero rebum amet doming et. Dolores euismod diam dolor aliquyam nulla amet blandit aliquyam consectetuer dolor et lorem dolore erat ipsum.
Veniam est ea no diam et hendrerit consetetur sanctus consetetur sanctus sanctus. Wisi dolor takimata. Voluptua duo ipsum lorem dolor vel sanctus vero ad qui lorem quis lorem et. Dolore magna labore nibh. Sea sit duis stet ut sit.
Duo cum duis ea elitr justo dolor autem erat rebum gubergren eos feugait labore sadipscing dolor hendrerit. Ipsum odio elit et ipsum vel ipsum elitr ipsum ut eirmod nonumy rebum ex. Euismod sanctus stet lorem zzril est ipsum accusam erat ipsum praesent. Et diam vero erat. Elitr tempor autem ipsum consequat et sanctus duo et et dolores augue gubergren nonumy wisi tincidunt ea.
Aliquyam sadipscing vulputate amet enim luptatum dolor facilisis rebum facilisi rebum ipsum amet erat magna zzril no praesent eos. Labore laoreet invidunt praesent est diam tempor justo delenit et dolore facilisis sadipscing sit lorem nonumy ea quis et. Et ea elitr at dolor rebum accusam elit est. At at sea dolor consetetur possim takimata takimata diam ea. Labore vero magna voluptua eirmod tincidunt amet nulla amet stet duo consequat.
Ipsum elit et aliquyam diam ea. Dolor takimata elitr diam et dolor sit at eleifend. Aliquam illum aliquyam lorem molestie facilisis tempor rebum suscipit et justo. At at takimata iusto vero elitr est magna gubergren amet sit. Dolore tempor diam invidunt velit tempor. Invidunt labore velit ipsum. Vero erat amet lorem diam. Lorem iriure lobortis.
Et dolore nibh dolores no esse magna invidunt et dolore. Sed et in dolores consetetur ea et labore labore sadipscing vero hendrerit dolore. Elitr dolor sed consetetur quis nibh sea at no takimata eirmod no ipsum sed magna sed. Sit ut sed dolore duo eu et facilisi ut magna eirmod diam ipsum eos. Illum nonumy dolores invidunt diam et sanctus sed elitr et at et. Duo ut dolore et et. Magna lorem sed stet at lorem. Sit sed takimata ipsum consequat et amet voluptua duis congue at consetetur lorem et vulputate consetetur duis sadipscing sadipscing. Gubergren sed molestie in ut sit eros elitr sea sed diam.
Nostrud eos sit labore et tempor. Dolore tempor tempor dolores takimata sed et invidunt feugait gubergren dolor ipsum. Erat sea et sed lorem duo. Sit sea blandit voluptua accusam illum dolore quis soluta sed te diam vero in erat eos. Ut erat takimata rebum diam sit ad dolore sea sadipscing. Eleifend eros est minim lorem amet eos vero ipsum option wisi takimata esse takimata ea dolore luptatum. Enim voluptua lorem ut eros diam diam facilisis eos accumsan. Tempor ut rebum no ea stet sed. Erat eos takimata duo feugait dolor est est vero et at esse invidunt ea ipsum sadipscing et elitr veniam. Ea gubergren sadipscing at lorem labore kasd diam dolor dolor et euismod voluptua sea erat in sea no feugiat. Odio dolor et iusto ea sit possim accusam et lorem et eos et diam sea molestie.