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 Ryan Lortie <de...@desrt.ca> on 2008/09/07 03:30:01 UTC

FOP doesn't like XSL/Format as the default namespace

Hi.

Consider the following two FO documents (ignoring the obvious problem
that they're missing elements):

1)
<root xmlns='http://www.w3.org/1999/XSL/Format'/>

2)
<fo:root xmlns:fo='http://www.w3.org/1999/XSL/Format'/>


>>From my understanding, these two documents are exactly the same.  When
run on document #1, however, FOP emits the following warning:

6-Sep-2008 9:27:12 PM org.apache.fop.fo.PropertyList convertAttributeToProperty
WARNING: No PropertyMaker registered for xmlns. Ignoring property.

(no such warning for #2)

I'm pretty new to XSL-FO and XML in general, so I'm not sure if '<fo:'
is actually required... but this seems like a (small) bug in FOP.  Can
someone comment on that?

Cheers


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: FOP doesn't like XSL/Format as the default namespace

Posted by Vincent Hennebert <vh...@gmail.com>.
Hi Ryan,

Ryan Lortie wrote:
> Hi.
> 
> Consider the following two FO documents (ignoring the obvious problem
> that they're missing elements):
> 
> 1)
> <root xmlns='http://www.w3.org/1999/XSL/Format'/>
> 
> 2)
> <fo:root xmlns:fo='http://www.w3.org/1999/XSL/Format'/>
> 
> 
>>>From my understanding, these two documents are exactly the same.  When
> run on document #1, however, FOP emits the following warning:
> 
> 6-Sep-2008 9:27:12 PM org.apache.fop.fo.PropertyList convertAttributeToProperty
> WARNING: No PropertyMaker registered for xmlns. Ignoring property.
> 
> (no such warning for #2)

Looks like a bug to me. Can you please file a bug report?
https://issues.apache.org/bugzilla/enter_bug.cgi?product=Fop
Thanks!


> I'm pretty new to XSL-FO and XML in general, so I'm not sure if '<fo:'
> is actually required... but this seems like a (small) bug in FOP.  Can
> someone comment on that?

A namespace prefix (‘fo:’) is required when you are mixing xml dialects
(for example, XSL-FO and SVG), in order to identify which element
belongs to which dialect. Because it’s very verboxe, XSL-FO is almost
always automatically generated, and in that case it’s safer (and almost
always simply necessary) to use the version with namespace prefixes. But
if you are editing your file by hand, or if you are sure you won’t mix
xml dialects, then you can go for your first version above.

HTH,
Vincent

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org