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 Binod Garg <bi...@gmail.com> on 2008/12/31 14:09:53 UTC
Regarding case.
I have used style attributes in my html like <span style=COLOR: red;
FONT-WEIGHT: bold'> .This is giving exception like
org.apache.fop.fo.ValidationException: null:1:4537: Error(1/4537):
fo:inline, Invalid property name 'FONT-WEIGHT'. or
org.apache.fop.fo.ValidationException: null:1:4537: Error(1/4537):
fo:inline, Invalid property name 'COLOR'. When I am replacing this with
lowercase as <span style=color: red; font-weight: bold'> this works fine.
Can sumbody please let me know the cause for this and a quick fix for this.
Thanks,
Binod
RE: Regarding case.
Posted by "Amick, Eric" <Er...@mail.house.gov>.
Unlike HTML, attribute names in XML (and thus property names in FO) are
case-sensitive. The fix is to use lowercase names.
Eric Amick
Legislative Computer Systems
Office of the Clerk
________________________________
From: Binod Garg [mailto:binod.garg@gmail.com]
Sent: Wednesday, December 31, 2008 8:10
To: fop-users@xmlgraphics.apache.org
Subject: Regarding case.
I have used style attributes in my html like <span style=COLOR: red;
FONT-WEIGHT: bold'> .This is giving exception like
org.apache.fop.fo.ValidationException: null:1:4537: Error(1/4537):
fo:inline, Invalid property name 'FONT-WEIGHT'. or
org.apache.fop.fo.ValidationException: null:1:4537: Error(1/4537):
fo:inline, Invalid property name 'COLOR'. When I am replacing this with
lowercase as <span style=color: red; font-weight: bold'> this works
fine. Can sumbody please let me know the cause for this and a quick fix
for this.
Thanks,
Binod