News Products Support Download Licenses Company

Home > Products > downCast > Samples

 

Samples

Don't believe us.
See for yourself.

Overview Features Samples Download Support


Download free demo


Buy

downCast Manual

CSS2 specification

XSLT specification

Paragraphs and Inlines

A simple XML+CSS combination showcasing paragraphs containing named inline styles and local, manual formatting.

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE document PUBLIC "-//infinity-loop//DTD upCast 4.0//EN" "http://www.infinity-loop.de/DTD/upcast/4.0/upcast.dtd">
<?xml-stylesheet type="text/css" href="dc-parinlines.css"?>
<document xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:html="http://www.w3.org/HTML/1998/html4" xml:lang="de">
<part>
  <section level="1">
    <heading class="heading&#160;1" level="1">Paragraphs &amp; Inlines</heading>
    <par class="Normal">A paragraph that has a named, <inline class="important">important</inline> inline and some <inline style="color: #ff0000; font-style: italic;">manual</inline> formatting.</par>
  </section>
</part>
</document>

 

.important {
display: inline;
font-weight: bold;
}

.heading\a0 1 {
display: block;
margin-left: 0.0mm;
page-break-after: avoid;
margin-bottom: 1.1mm;
word-break-inside: normal;
margin-top: 4.2mm;
text-indent: 0.0mm;
margin-right: 0.0mm;
\-ilx-paragraph-outline-level: 0;
widows: 2; orphans: 2;
font-size: 16.0pt;
font-family: Helvetica, serif;
font-weight: bold;
}

.Normal {
display: block;
margin-left: 0.0mm;
margin-bottom: 0.0mm;
word-break-inside: normal;
margin-top: 0.0mm;
text-indent: 0.0mm;
margin-right: 0.0mm;
widows: 2; orphans: 2;
font-size: 12.0pt;
font-family: Times, serif;
}

Download .xml source
Download .css source
  Download .rtf source

Create template document using CSS

Create a template document with pre-defined character and paragraph styles by specifying them as CSS rules using the class selector shorthand and appropriate display property values.

@charset "UTF-8";
@page { size: 210mm 297mm; /* A4 */
    margin-top: 25mm;
    margin-bottom: 25mm;
    margin-left: 38mm;
    margin-right: 26mm; }

.extract { display: block;
    text-align: justify;
    margin-left: 34.8mm;
    margin-bottom: 0.0mm;
    word-break-inside: normal;
    margin-top: 0.0mm;
    text-indent: 0.0mm;
    margin-right: 4.2mm;
    font-size: 10.0pt;
    color: #000000;
    font-family: Melior, serif; }

.EXAMP { ... }
.chaptit { ... }
.body\2f no\a0 indent { ... }
...

Download .xml source
Download .css source
  Download .rtf source

 


© 2003-2007 infinity-loop GmbHSend mail to WebmasterAnbieterkennzeichnung §6 TDG