Re: [css2xslfo-support] Numeric Entities
Brought to you by:
wdonne
From: <wer...@re...> - 2005-06-06 08:17:34
|
Andreas, This seems to depend on the parser. When I use the one in JDK1.5.0 the entity reference is translated into a control character. With Xerces 2.6.2 and Crimson it is not. I think it is a bug in the XML parses that has something to with the fact that we are dealing with a control character here. Regards, Werner. Andreas Jung wrote: > > > --On 6. Juni 2005 09:33:46 +0200 Werner Donné <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="http://www.w3.org/1999/xhtml"> > <head> > <title> > </title> > </head> > <body> > hello › world > </body> > </html> > > > > becomes > > <?xml version="1.0" encoding="UTF-8"?> > <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" language="en" > hyphenate="true" font-size="11pt" font-family="serif" > country="de"><fo:layout-master-set><fo:simple-page-master > margin-right="25mm" margin-left="25mm" margin-bottom="10mm" > margin-top="10mm" page-width="210mm" page-height="297mm" > writing-mode="lr-tb" master-name="blank"><fo:region-body > margin-right="0mm" margin-left="0mm" margin-bottom="0mm" > margin-top="0mm"/></fo:simple-page-master><fo:simple-page-master > margin-right="25mm + 10mm" margin-left="25mm - 10mm" > margin-bottom="10mm" margin-top="10mm" page-width="210mm" > page-height="297mm" writing-mode="lr-tb" > master-name="even"><fo:region-body margin-top="15mm" margin-right="0mm" > margin-left="0mm" margin-bottom="15mm" > column-count="1"/><fo:region-before region-name="region-before-even" > extent="10mm" display-align="after"/><fo:region-after extent="10mm" > display-align="before"/></fo:simple-page-master><fo:simple-page-master > margin-right="25mm - 10mm" margin-left="25mm + 10mm" > margin-bottom="10mm" margin-top="10mm" page-width="210mm" > page-height="297mm" writing-mode="lr-tb" > master-name="odd"><fo:region-body margin-top="15mm" margin-right="0mm" > margin-left="0mm" margin-bottom="15mm" > column-count="1"/><fo:region-before region-name="region-before-odd" > extent="10mm" display-align="after"/><fo:region-after extent="10mm" > display-align="before"/></fo:simple-page-master><fo:simple-page-master > margin-right="25mm - 10mm" margin-left="25mm + 10mm" > margin-bottom="10mm" margin-top="10mm" page-width="210mm" > page-height="297mm" writing-mode="lr-tb" > master-name="odd-first"><fo:region-body margin-top="15mm" > margin-right="0mm" margin-left="0mm" margin-bottom="15mm" > column-count="1"/><fo:region-after extent="10mm" > display-align="before"/></fo:simple-page-master><fo:simple-page-master > margin-right="25mm" margin-left="25mm" margin-bottom="10mm" > margin-top="10mm" page-width="210mm" page-height="297mm" > writing-mode="lr-tb" master-name="onesided"><fo:region-body > margin-top="15mm" margin-right="0mm" margin-left="0mm" > margin-bottom="15mm" column-count="1"/><fo:region-before > region-name="region-before-even" extent="10mm" > display-align="after"/><fo:region-after extent="10mm" > display-align="before"/></fo:simple-page-master><fo:simple-page-master > margin-right="25mm" margin-left="25mm" margin-bottom="10mm" > margin-top="10mm" page-width="210mm" page-height="297mm" > writing-mode="lr-tb" master-name="onesided-first"><fo:region-body > margin-top="15mm" margin-right="0mm" margin-left="0mm" > margin-bottom="15mm" column-count="1"/><fo:region-after extent="10mm" > display-align="before"/></fo:simple-page-master><fo:simple-page-master > margin-bottom="10mm" margin-top="10mm" page-width="210mm" > page-height="297mm" writing-mode="lr-tb" master-name="title" > margin-left="25mm" margin-right="25mm"><fo:region-body > margin-right="0mm" margin-left="0mm" margin-bottom="0mm" > margin-top="0mm"/></fo:simple-page-master><fo:page-sequence-master > master-name="document"><fo:repeatable-page-master-alternatives><fo:conditional-page-master-reference > master-reference="onesided-first" > page-position="first"/><fo:conditional-page-master-reference > master-reference="onesided" > page-position="any"/><fo:conditional-page-master-reference > master-reference="blank" page-position="any" > blank-or-not-blank="blank"/></fo:repeatable-page-master-alternatives></fo:page-sequence-master></fo:layout-master-set><fo:page-sequence > master-reference="document" initial-page-number="1" > format="1"><fo:static-content flow-name="region-before-even"><fo:block > xmlns:xh="http://www.w3.org/1999/xhtml" > xmlns:css="http://www.w3.org/1998/CSS" text-transform="uppercase" > text-align="start" font-style="oblique"><fo:retrieve-marker > retrieve-boundary="document" > retrieve-position="first-starting-within-page" > retrieve-class-name="component"/></fo:block></fo:static-content><fo:static-content > flow-name="region-before-odd"><fo:block > xmlns:xh="http://www.w3.org/1999/xhtml" > xmlns:css="http://www.w3.org/1998/CSS" text-transform="uppercase" > text-align="end" font-style="oblique"><fo:retrieve-marker > retrieve-boundary="document" > retrieve-position="first-starting-within-page" > retrieve-class-name="component"/></fo:block></fo:static-content><fo:static-content > flow-name="xsl-footnote-separator"><fo:block > xmlns:xh="http://www.w3.org/1999/xhtml" > xmlns:css="http://www.w3.org/1998/CSS"><fo:leader rule-thickness="0.2pt" > rule-style="solid" leader-pattern="rule" > leader-length="41%"/></fo:block></fo:static-content><fo:static-content > flow-name="xsl-region-after"><fo:block > xmlns:xh="http://www.w3.org/1999/xhtml" > xmlns:css="http://www.w3.org/1998/CSS" > text-align="center"><fo:page-number/></fo:block></fo:static-content><fo:flow > flow-name="xsl-region-body"><fo:block> > > <fo:block xmlns:xh="http://www.w3.org/1999/xhtml" > xmlns:css="http://www.w3.org/1998/CSS" margin-right="0pt" > margin-left="0pt" font-family="serif" line-height="1.33" > padding-bottom="0" padding-left="0" padding-right="0" padding-top="0" > unicode-bidi="embed"> > hello › world > </fo:block> > </fo:block></fo:flow></fo:page-sequence></fo:root > > -- Werner Donné -- Re BVBA Engelbeekstraat 8 B-3300 Tienen tel: (+32) 486 425803 e-mail: wer...@re... |