Tutorial Addendum On XSL-FO and XHTML - XHTML Advertisement - From Web to PDF
| |
Now, I accept acceptable an compassionate of all XML accompanying technologies: DOM, SAX, DTD, XSchema,
XSLT, XSL-FO, XHTML, and CSS. Let me put them calm and address a arrangement to advice
me adapt my addendum so they can be appear in both XHTML and PDF formats.
Requirements
Here is my requirements for my own system:
- Source copies of addendum should be accounting in XHTML format.
- Notes should be organized as one affiliate per file.
- Source XHTML files should be able-bodied formatted for Web browsers. A CSS book
should be acclimated to annal the best aftereffect possible.
- A XSLT book with XSL-FO statements is bare to catechumen XHTML antecedent files
to FO files.
- FO files for altered capacity should be alloyed into a individual final FO file.
- The final FO book can be formatted into a PDF file, accessible to print.
The XHTML Antecedent book Format
Since the XHTML antecedent files are the starting points, their formats haveto be simple
and simple to use. They haveto aswell accommodate all the formatting backdrop bare for
both Web browsers and PDF processors.
To get a abounding archetype of my XHTML antecedent book format, you can use your Web browser to appearance
the antecedent cipher while you are browsing this page on the Web. Actuality I will just show
you some sections from xhtml.xhtml:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="book_fo.xsl"?>
<html><head>
<meta title=" s Addendum On XSL-FO and XHTML"/>
<meta version="Version 1.01"/>
<meta author="Dr. Yang"/>
<meta copyright="Copyright (c) 2002 by Dr. Yang. ...
<meta pagetitle="eXtensible Hyper-Text Markup Accent (XHTML)"/>
<meta date="23-Dec-2002"/>
<meta filename="xhtml.xhtml"/>
<link rel="stylesheet" type="text/css" href="book.css"/>
<title> s Addendum On XSL-FO and XHTML - adaptable ...
</head><body>
<table>
<tr><td>
<font size="+3"> s Addendum On XSL-FO and XHTML</font>
<br/>- by Dr. Yang, Adaptation 1.01, 23-Dec-2002
</td></tr>
<tr><td></td>
<td>
<table>
<tr><td colspan="3" height="1"><img height="1" width="100%" ...
<tr><td width="1" rowspan="1"><img height="100%" width="1" ...
<td>
<table>
<tr><td>
<table cellspacing="0" cellpadding="0" border="0">
<tr><td aligh="left" colspan="3"><font size="-1"><b>...
<tr><td align="left"><font size="-1">Dr. Yang, ...
<td align="center"><font size="-1"></font></td>
<td align="right"><font size="-1">
[ <a href="../">Home</a> | <a href="help.xhtml">Help</a>...
</font></td></tr>
<tr><td><img height="1" ...
<tr><td>
<p>
eXtensible Hyper-Text Markup Accent (XHTML)
</p>
<p>
What is XHTML
</p>
<p>
<b>XHTML</b>: A markup accent for acclimation advice ...
World Advanced Web (WWW). XHTML is an advance of HTML to accommodated the ...
</p>
...
<p>
"Hello world!" Archetype of XHTML
</p>
<p>
1. Use any argument editor to access the afterward curve of argument into a file:
</p>
<pre><?xml version="1.0"?>
<html><body>Hello world!</body></html>
</pre>
...
</td></tr>
<tr><td><img height="1" ...
<tr><td align="left"><font size="-1">Dr. Yang, ...
<td align="center"><font size="-1"></font></td>
<td align="right"><font size="-1">
[ <a href="../">Home</a> | <a href="help.xhtml">...
</font></td></tr>
<tr><td aligh="left" colspan="3"><font size="-1"><b>
s Addendum On XSL-FO and XHTML - adaptable Hyper-Text Markup ...
</table>
</td></tr>
</table>
|
xhtml, notes, source, align, table, height, version, xhtml<, markup, files, extensible, world, hyper, width, language, colspan, , < font, font size, < meta, xhtml <, < table, font <, table <, xhtml xhtml, yang <, xhtml source, < img, < body, hyper text, < html, < xml, html <, extensible hyper, text markup, markup language, < font size, extensible hyper text, hyper text markup, xhtml publication from, aligh left colspan, href help xhtml, markup language xhtml, text markup language, xhtml source file, xhtml xhtml publication, stylesheet type text, |
Also see ...
"block" Statements"block": An XSL FO aspect confined as an activity account to accomplish one block areaby alive through the amid content."block" statements a
XSL FO Archetype block.foLet s do some absorbing tests on block and inline statements: <?xml version="1.0" encoding="utf 8"?<! block.fo Absorb (c) 2002 by Dr. Ya
"page sequence master" Statementspage sequence master: An XSL FO aspect confined as a acknowledgment account to ascertain a page arrangement layout. For example:
??? XHTML l? CSS ????? XSL FO ??U?? PDF ?l????????????l???????? XHTML ???L GB2312 ?????½?y???p
</td</tr<tr<td<img height="1" width...<tr<td align="left"<font size=" 1"??200212...<td align="center"<font size=" 1"</font</td<td align="right"<font size=" 1"[ <a h
PRE.block_syntax { FONT FAMILY: new bagman ; font style: italic; BACKGROUND COLOR: d0d0d0; MARGIN TOP: 4px; MARGIN LEFT: 0px; MARGIN RIGHT: 0px; MARGIN BOTTOM: 4px; BORDER: 10px; COLOR: black;
<fo:root <fo:layout master set <fo:simple page master master name="page" margin left="1.2in" margin right="0.8in" margin top="0.8in" margin bottom="0.8in" <fo:region before region name="header" exten
<xsl:template match="p[@class= section_title ]" <fo:block font size="125%" font weight="bold" space before="9pt" space after="4pt" <xsl:apply templates select="text()"/ </fo:block </xsl:template
</td<td width="1" rowSpan="1"<img height="100%" width="1" ...<tr<td colSpan="3" height="1"<img height="1" ...</table</td<td</td</tr<tr<td
TD.body { PADDING TOP: 25px; PADDING BOTTOM: 25px}TD.frame_top { BORDER WIDTH: 0pt; BACKGROUND COLOR: 707070; WIDTH: 750px; HEIGHT: 50px; TEXT ALIGN: center}TD.frame