You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Michael Burbidge <mb...@adobe.com> on 2002/08/08 02:15:32 UTC
Namespaces on attributes?
Given the following xsl-fo document:
<?xml version="1.0" encoding="utf-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master fo:margin-right="1in" fo:margin-left="1in"
fo:margin-bottom="0.75in"
fo:margin-top="0.75in"
fo:page-width="8.5in" fo:page-height="11in"
fo:master-name="specpage">
<fo:region-body fo:region-name="specpage-body"/>
</fo:simple-page-master></fo:layout-master-set>
<fo:page-sequence fo:master-reference="specpage">
<fo:title>AST Specification</fo:title>
<fo:flow fo:flow-name="specpage-body" fo:font-family="Helvetica"
fo:font-size="10pt">
<fo:block>Hello, world!</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
Fop generates the following errors:
[ERROR] property 'fo:margin-right' ignored
[ERROR] property 'fo:margin-left' ignored
[ERROR] property 'fo:margin-bottom' ignored
[ERROR] property 'fo:margin-top' ignored
[ERROR] property 'fo:page-width' ignored
[ERROR] property 'fo:page-height' ignored
[ERROR] property 'fo:master-name' ignored
[ERROR] property 'fo:region-name' ignored
[ERROR] property 'fo:master-reference' ignored
[ERROR] property 'fo:flow-name' ignored
[ERROR] property 'fo:font-family' ignored
[ERROR] property 'fo:font-size' ignored
[ERROR] null
Either I don't understand namespaces or fop doesn't know how to deal with
namespaces on attributes.
Any help?
Michael-
Re: Namespaces on attributes?
Posted by xavier gibouin <xa...@axonie.com>.
Hi
you write :
<fo:simple-page-master fo:margin-right="1in" fo:margin-left="1in"
fo:margin-bottom="0.75in"
fo:margin-top="0.75in"
fo:page-width="8.5in" fo:page-height="11in"
fo:master-name="specpage">
....
you must write :
<fo:simple-page-master margin-right="1in" margin-left="1in"
margin-bottom="0.75in"
margin-top="0.75in"
page-width="8.5in" page-height="11in"
master-name="specpage">
...
Xavier Gibouin
Axonie
Espace Mercoeur
8, rue Mercoeur
44000 Nantes
02.40.48.53.23
xavier.gibouin@axonie.com
----- Original Message -----
From: Michael Burbidge
To: fop-user@xml.apache.org
Sent: Thursday, August 08, 2002 2:15 AM
Subject: Namespaces on attributes?
Given the following xsl-fo document:
<?xml version="1.0" encoding="utf-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master fo:margin-right="1in" fo:margin-left="1in"
fo:margin-bottom="0.75in"
fo:margin-top="0.75in"
fo:page-width="8.5in" fo:page-height="11in"
fo:master-name="specpage">
<fo:region-body fo:region-name="specpage-body"/>
</fo:simple-page-master></fo:layout-master-set>
<fo:page-sequence fo:master-reference="specpage">
<fo:title>AST Specification</fo:title>
<fo:flow fo:flow-name="specpage-body" fo:font-family="Helvetica"
fo:font-size="10pt">
<fo:block>Hello, world!</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
Fop generates the following errors:
[ERROR] property 'fo:margin-right' ignored
[ERROR] property 'fo:margin-left' ignored
[ERROR] property 'fo:margin-bottom' ignored
[ERROR] property 'fo:margin-top' ignored
[ERROR] property 'fo:page-width' ignored
[ERROR] property 'fo:page-height' ignored
[ERROR] property 'fo:master-name' ignored
[ERROR] property 'fo:region-name' ignored
[ERROR] property 'fo:master-reference' ignored
[ERROR] property 'fo:flow-name' ignored
[ERROR] property 'fo:font-family' ignored
[ERROR] property 'fo:font-size' ignored
[ERROR] null
Either I don't understand namespaces or fop doesn't know how to deal with
namespaces on attributes.
Any help?
Michael-