Re: [css2xslfo-support] Numeric Entities
Brought to you by:
wdonne
|
From: Andreas J. <li...@an...> - 2005-06-06 07:57:20
|
--On 6. Juni 2005 09:33:46 +0200 Werner Donn=C3=A9 <wer...@re...> =
wrote:
> Hi Andreas,
>
> The XML parser is supposed to resolve those entity references, so
> CSSToXSLFO
> shouldn't even see them. It uses an Xerces parser. Even if they would end
> up
> in the FO file, the parser of the XSL-FO processor would have to resolve
> them.
> Can you send me an example?
>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns=3D"http://www.w3.org/1999/xhtml">
<head>
<title>
</title>
</head>
<body>
hello › world
</body>
</html>
becomes
<?xml version=3D"1.0" encoding=3D"UTF-8"?>
<fo:root xmlns:fo=3D"http://www.w3.org/1999/XSL/Format" language=3D"en"=20
hyphenate=3D"true" font-size=3D"11pt" font-family=3D"serif"=20
country=3D"de"><fo:layout-master-set><fo:simple-page-master=20
margin-right=3D"25mm" margin-left=3D"25mm" margin-bottom=3D"10mm"=20
margin-top=3D"10mm" page-width=3D"210mm" page-height=3D"297mm"=20
writing-mode=3D"lr-tb" master-name=3D"blank"><fo:region-body =
margin-right=3D"0mm"=20
margin-left=3D"0mm" margin-bottom=3D"0mm"=20
margin-top=3D"0mm"/></fo:simple-page-master><fo:simple-page-master=20
margin-right=3D"25mm + 10mm" margin-left=3D"25mm - 10mm" =
margin-bottom=3D"10mm"=20
margin-top=3D"10mm" page-width=3D"210mm" page-height=3D"297mm"=20
writing-mode=3D"lr-tb" master-name=3D"even"><fo:region-body =
margin-top=3D"15mm"=20
margin-right=3D"0mm" margin-left=3D"0mm" margin-bottom=3D"15mm"=20
column-count=3D"1"/><fo:region-before region-name=3D"region-before-even"=20
extent=3D"10mm" display-align=3D"after"/><fo:region-after extent=3D"10mm"=20
display-align=3D"before"/></fo:simple-page-master><fo:simple-page-master=20
margin-right=3D"25mm - 10mm" margin-left=3D"25mm + 10mm" =
margin-bottom=3D"10mm"=20
margin-top=3D"10mm" page-width=3D"210mm" page-height=3D"297mm"=20
writing-mode=3D"lr-tb" master-name=3D"odd"><fo:region-body =
margin-top=3D"15mm"=20
margin-right=3D"0mm" margin-left=3D"0mm" margin-bottom=3D"15mm"=20
column-count=3D"1"/><fo:region-before region-name=3D"region-before-odd"=20
extent=3D"10mm" display-align=3D"after"/><fo:region-after extent=3D"10mm"=20
display-align=3D"before"/></fo:simple-page-master><fo:simple-page-master=20
margin-right=3D"25mm - 10mm" margin-left=3D"25mm + 10mm" =
margin-bottom=3D"10mm"=20
margin-top=3D"10mm" page-width=3D"210mm" page-height=3D"297mm"=20
writing-mode=3D"lr-tb" master-name=3D"odd-first"><fo:region-body=20
margin-top=3D"15mm" margin-right=3D"0mm" margin-left=3D"0mm" =
margin-bottom=3D"15mm"=20
column-count=3D"1"/><fo:region-after extent=3D"10mm"=20
display-align=3D"before"/></fo:simple-page-master><fo:simple-page-master=20
margin-right=3D"25mm" margin-left=3D"25mm" margin-bottom=3D"10mm"=20
margin-top=3D"10mm" page-width=3D"210mm" page-height=3D"297mm"=20
writing-mode=3D"lr-tb" master-name=3D"onesided"><fo:region-body=20
margin-top=3D"15mm" margin-right=3D"0mm" margin-left=3D"0mm" =
margin-bottom=3D"15mm"=20
column-count=3D"1"/><fo:region-before region-name=3D"region-before-even"=20
extent=3D"10mm" display-align=3D"after"/><fo:region-after extent=3D"10mm"=20
display-align=3D"before"/></fo:simple-page-master><fo:simple-page-master=20
margin-right=3D"25mm" margin-left=3D"25mm" margin-bottom=3D"10mm"=20
margin-top=3D"10mm" page-width=3D"210mm" page-height=3D"297mm"=20
writing-mode=3D"lr-tb" master-name=3D"onesided-first"><fo:region-body=20
margin-top=3D"15mm" margin-right=3D"0mm" margin-left=3D"0mm" =
margin-bottom=3D"15mm"=20
column-count=3D"1"/><fo:region-after extent=3D"10mm"=20
display-align=3D"before"/></fo:simple-page-master><fo:simple-page-master=20
margin-bottom=3D"10mm" margin-top=3D"10mm" page-width=3D"210mm"=20
page-height=3D"297mm" writing-mode=3D"lr-tb" master-name=3D"title"=20
margin-left=3D"25mm" margin-right=3D"25mm"><fo:region-body =
margin-right=3D"0mm"=20
margin-left=3D"0mm" margin-bottom=3D"0mm"=20
margin-top=3D"0mm"/></fo:simple-page-master><fo:page-sequence-master=20
master-name=3D"document"><fo:repeatable-page-master-alternatives><fo:conditi=
onal-page-master-reference=20
master-reference=3D"onesided-first"=20
page-position=3D"first"/><fo:conditional-page-master-reference=20
master-reference=3D"onesided"=20
page-position=3D"any"/><fo:conditional-page-master-reference=20
master-reference=3D"blank" page-position=3D"any"=20
blank-or-not-blank=3D"blank"/></fo:repeatable-page-master-alternatives></fo:=
page-sequence-master></fo:layout-master-set><fo:page-sequence=20
master-reference=3D"document" initial-page-number=3D"1"=20
format=3D"1"><fo:static-content flow-name=3D"region-before-even"><fo:block=20
xmlns:xh=3D"http://www.w3.org/1999/xhtml"=20
xmlns:css=3D"http://www.w3.org/1998/CSS" text-transform=3D"uppercase"=20
text-align=3D"start" font-style=3D"oblique"><fo:retrieve-marker=20
retrieve-boundary=3D"document" =
retrieve-position=3D"first-starting-within-page"=20
retrieve-class-name=3D"component"/></fo:block></fo:static-content><fo:static=
-content=20
flow-name=3D"region-before-odd"><fo:block=20
xmlns:xh=3D"http://www.w3.org/1999/xhtml"=20
xmlns:css=3D"http://www.w3.org/1998/CSS" text-transform=3D"uppercase"=20
text-align=3D"end" font-style=3D"oblique"><fo:retrieve-marker=20
retrieve-boundary=3D"document" =
retrieve-position=3D"first-starting-within-page"=20
retrieve-class-name=3D"component"/></fo:block></fo:static-content><fo:static=
-content=20
flow-name=3D"xsl-footnote-separator"><fo:block=20
xmlns:xh=3D"http://www.w3.org/1999/xhtml"=20
xmlns:css=3D"http://www.w3.org/1998/CSS"><fo:leader =
rule-thickness=3D"0.2pt"=20
rule-style=3D"solid" leader-pattern=3D"rule"=20
leader-length=3D"41%"/></fo:block></fo:static-content><fo:static-content=20
flow-name=3D"xsl-region-after"><fo:block=20
xmlns:xh=3D"http://www.w3.org/1999/xhtml"=20
xmlns:css=3D"http://www.w3.org/1998/CSS"=20
text-align=3D"center"><fo:page-number/></fo:block></fo:static-content><fo:fl=
ow=20
flow-name=3D"xsl-region-body"><fo:block>
<fo:block xmlns:xh=3D"http://www.w3.org/1999/xhtml"=20
xmlns:css=3D"http://www.w3.org/1998/CSS" margin-right=3D"0pt" =
margin-left=3D"0pt"=20
font-family=3D"serif" line-height=3D"1.33" padding-bottom=3D"0" =
padding-left=3D"0"=20
padding-right=3D"0" padding-top=3D"0" unicode-bidi=3D"embed">
hello › world
</fo:block>
</fo:block></fo:flow></fo:page-sequence></fo:root
|