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 "J.Pietschmann" <j3...@yahoo.de> on 2002/04/01 17:34:33 UTC
Re: Xerces compatibility question
Guillaume Mathe wrote:
> Now i have another question, this time about Xerces lib....
> - with 1.2.3 i get :
> [ERROR]: Error in content-type property value 'content-type:image/jpg': org.apache.fop.fo.expr.PropertyException: illegal character
> for the following item:
> <fo:external-graphic content-type="content-type:image/jpg" width="150px" height="34px" src="hello.jpg" />
The exception is raised by FOP, not the XML parser.
Try
<fo:external-graphic content-type="image/jpg" .../>
^^^^
HTH
J.Pietschmann
Re: Xerces compatibility question
Posted by "Peter B. West" <pb...@powerup.com.au>.
If the suggestion below works, it's not compatible with the spec, which
allows two variants of "content-type", e.g.,
content-type="content-type:xml/svg"
or
content-type="namespace-prefix:svg"
(See 7.28.1) We can't even blame CSS for this one.
Peter
J.Pietschmann wrote:
> Guillaume Mathe wrote:
>
>> Now i have another question, this time about Xerces lib....
>> - with 1.2.3 i get :
>> [ERROR]: Error in content-type property value
>> 'content-type:image/jpg': org.apache.fop.fo.expr.PropertyException:
>> illegal character
>> for the following item:
>> <fo:external-graphic content-type="content-type:image/jpg"
>> width="150px" height="34px" src="hello.jpg" />
>
>
> The exception is raised by FOP, not the XML parser.
> Try
> <fo:external-graphic content-type="image/jpg" .../>
> ^^^^