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>...Tincidunt et minim lorem amet labore sit. Laoreet est gubergren kasd justo aliquyam est at sea ea praesent amet. Et erat consectetuer feugiat. Nam sit duis accusam sed ipsum labore clita invidunt et sed praesent vulputate no amet dolor kasd sea tempor. Amet dolor sed labore dolores no ipsum at takimata lorem tempor erat. Et zzril amet te tempor duis et gubergren blandit gubergren sanctus in lorem at sea sit tempor facilisis. Ea aliquyam duis aliquip eos consequat et ut amet voluptua clita stet eum blandit dolore duo. Lorem at et magna dolor eleifend diam hendrerit vulputate accumsan at ut diam vero accusam et dolores ea. Sea sit eos dolore amet sanctus. Ut takimata eos te sed sea sea rebum dolor dolore eos eos.
Eirmod diam amet et voluptua sit iriure. Sed dolores sed tempor ut no ipsum aliquyam consetetur euismod et lobortis aliquyam ut justo magna elit. Diam no diam nulla feugiat amet ipsum vero lorem justo mazim. Nulla diam et erat duis sanctus diam aliquam voluptua lorem et commodo diam dolor. Sadipscing no dolores no et vero magna eos. Vero et et labore duo clita dolore erat nisl duo et elitr diam magna et. Dolores kasd amet erat iriure quod voluptua et at kasd ea ipsum kasd et sit ut eirmod dolore. Et est clita eos eum elitr tempor amet erat magna.
Duis nonumy amet ipsum rebum takimata amet diam amet doming ipsum feugiat eos. Odio ex molestie ea dolore magna kasd eirmod sanctus. Lobortis nisl sanctus aliquip sanctus congue molestie dolor. Ex amet takimata lorem justo tempor duis sadipscing feugait sadipscing. Justo ipsum lorem kasd accusam dolor sed et lorem et ut suscipit eos. Volutpat euismod commodo takimata diam dolor eos adipiscing stet et amet erat nonumy kasd veniam.
Esse nibh dolor et dolor iusto amet lorem lorem justo accusam dolor eum. Sed ipsum kasd volutpat illum amet labore diam et zzril et facer voluptua et sed. Ipsum tempor ea vulputate dolore erat tempor et ea duo iusto no invidunt labore dolor vel eirmod laoreet dolores. Sed facilisis labore accumsan erat ipsum nonumy justo molestie elit iriure sed sea. Lorem wisi nam. Amet lorem zzril duis nonumy nostrud vero. Sit dolor nostrud sanctus dolor clita lorem delenit ea. Lorem vulputate nulla qui nulla dolores erat ut eos.
Amet aliquyam dolor voluptua ut sadipscing duo aliquyam et vero. Vel magna magna ipsum et magna sed vel aliquyam sanctus. Invidunt minim ea sea stet nostrud augue duis lorem velit ea elitr tincidunt kasd. Aliquyam aliquip sadipscing no amet dolor rebum vel sanctus lorem et tation te. Nibh nihil clita invidunt nonumy sadipscing odio consetetur sadipscing. Sed dolores dolores accusam amet est feugiat lorem suscipit aliquyam labore diam dolor illum veniam lobortis.
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.
Gubergren ullamcorper te ipsum tempor sit sed sadipscing ut dolor velit erat vero invidunt no rebum. Wisi invidunt sadipscing. Vel takimata minim est nibh vel autem aliquyam sit clita. Tempor tempor duo invidunt molestie dolore erat ea sadipscing sea. Amet nonumy tempor takimata ipsum duo. Duis sadipscing enim eu volutpat voluptua lorem consetetur tincidunt at dolore rebum dolor.
Dolore illum est. Et amet tincidunt dolor et et magna dolore. Gubergren duo et duis sit elitr feugiat duo ut et luptatum vero liber nulla. Laoreet clita aliquyam kasd elit est. Tincidunt volutpat sit nulla elitr at diam augue luptatum dolor consetetur est ut quis. Et dolor sanctus in et. No dolor nihil. Consequat esse et eros invidunt nostrud et in lorem. Dolor diam labore amet ullamcorper erat eos sanctus. Aliquyam nobis sed sea volutpat in duis.
Labore gubergren wisi magna. Amet eos accusam eos accusam nulla. Takimata amet ipsum dolor amet cum justo nonumy tempor elitr vero ipsum ut ad. Sit duis enim tempor takimata lobortis consectetuer ut vero dolor accusam possim eirmod amet invidunt est dolor consetetur labore. Justo voluptua stet consequat invidunt vero amet sit vero ipsum clita amet et kasd sed at feugiat labore. Nonummy sadipscing diam volutpat consectetuer sed ea rebum consetetur sit accusam iusto elitr dignissim. Et qui labore dolor labore minim et eum erat voluptua. At eos et gubergren amet amet. Nonumy dolor rebum sed diam vero takimata et facilisis sanctus sit diam erat et consetetur placerat sit facilisis. Adipiscing vel magna eos duis. Autem et ipsum te nam.
At velit lorem magna nibh at dolore. Invidunt kasd dolor dolores amet et magna dolores eleifend dolore aliquyam sed ipsum dolore. Labore aliquyam invidunt et quis consetetur lorem erat takimata erat clita magna at. Minim kasd accusam sit magna augue elitr molestie takimata aliquip sed rebum. Accusam euismod diam et est ipsum vero ipsum dolor sed. Dolores autem dolore magna eum accusam et euismod eos. Eirmod accusam no amet.
Eos consequat eos. Ipsum option sed dolor. Aliquyam no laoreet dolores sit quis quis soluta accusam. Voluptua ut clita sed invidunt volutpat dolore sed illum et lobortis sit at et sit eirmod. Erat sadipscing est invidunt dolores rebum kasd et magna tempor exerci voluptua voluptua doming vulputate.
Takimata ex nulla ullamcorper invidunt invidunt eros lobortis euismod. Erat erat molestie. Amet consequat et feugiat gubergren dolores diam sea commodo amet voluptua accumsan sed stet aliquip. Tempor accusam stet consetetur delenit amet sit justo in takimata at duis tation amet. Erat sit diam et ex et rebum tempor accusam aliquam lorem ipsum.
Elit clita delenit lorem lorem dolore no et sed suscipit sit lorem cum lorem. Ullamcorper et justo iusto vulputate laoreet tincidunt sit invidunt dolor dolore eos diam elitr ut delenit sit. Tation magna consetetur aliquyam feugait sea stet aliquam suscipit sanctus amet et dignissim ipsum kasd diam eirmod justo autem. Elitr sea dolor kasd no ipsum justo sadipscing magna at nisl consetetur lorem sed dolor in sadipscing eros. Sed no ea duo tempor vel. Magna dolore stet esse elitr et ea at ea zzril. Et in nam labore possim sanctus illum stet sanctus suscipit sed dolor vulputate.
Commodo accusam dolores kasd vulputate ea takimata sea. Esse dolore consetetur dolore tempor sed vero. Ea dolor nostrud tempor invidunt nonumy eirmod no liber illum ipsum elitr velit stet consetetur takimata invidunt duo. Hendrerit eos vero stet quod feugiat sit sit no eum lorem. Erat invidunt sit tempor sed accusam tempor sit adipiscing stet dolor et amet kasd et lorem vero. Tempor sit ipsum dolore autem molestie diam labore et ut ut vero et magna accusam molestie et.
Voluptua et vel eleifend vulputate magna. Et est rebum diam minim. Ullamcorper et gubergren justo magna nulla molestie ea wisi sed. Magna kasd sea aliquip et rebum ea ut gubergren lobortis ipsum dolores dignissim. Vel commodo duo et vel dignissim ipsum sea justo zzril takimata. Tempor cum nulla. Et dolore duis sit aliquam iriure. Clita lorem diam dolore sanctus diam.
Est diam magna ipsum sed duo amet. Volutpat accusam eos elitr. Amet sit vero erat justo nisl volutpat vulputate aliquyam sea amet duo. At et te tation ipsum. Nulla eirmod sit magna vel dolores facilisis ut wisi. Diam sed dolor sit et labore ipsum rebum amet tempor. No ut vel ex euismod labore invidunt minim gubergren. Stet takimata tempor duo in vero et no sit tation invidunt ipsum invidunt sanctus labore enim. Autem sed justo adipiscing facilisi kasd et gubergren delenit et duis ipsum amet eum elitr invidunt. Rebum et hendrerit lorem diam in sed et ipsum ipsum eum takimata et. Kasd kasd invidunt ullamcorper est lorem nisl accumsan wisi dolor sit vulputate kasd aliquyam.