Hello, thanks for the tip - this is what I suspected at first but then thought it couldn't be since this wouldn't be "proper" behavior by FOP ... or is it??
Anyway, it does work now after I went through and changed it from the default namespace to an explicit one as you suggested. Thanks again. Pascal Sancho wrote: > > Hi, > > I guess you are using the following namespace declaration elsewhere in > your XSLT: > > xmlns="http://www.w3.org/1999/XSL/Format" > > That probably causes the XSLT processor to add namespace to your > font-weight attribute, so you should obtain a XSL-FO portion like this > (wrong): > > <fo:inline fo:font-weight="bold">...</fo:inline> > > > To correct this behaviour, I suggest you to use the following explicit > namespace: > > xmlns:fo="http://www.w3.org/1999/XSL/Format" > > After that, you should add 'fo:' to every XSL-FO elements in your XSLT, > but not to attributes. > > HTH, > > Pascal > > >> -----Message d'origine----- >> De : AA R [mailto:[EMAIL PROTECTED] >> Envoyé : mardi 30 janvier 2007 02:13 >> À : [email protected] >> Objet : FOP 0.93 "Invalid property name" error >> >> Hello, for some reason I'm getting a "SEVERE" error for the >> following code: >> <xsl:template match="xyz:Emphasis"> >> <inline> >> <xsl:if test="@bold = 'Y'"><xsl:attribute >> name="font-weight">bold</xsl:attribute></xsl:if><xsl:apply-tem > plates mode="TmpRev-phase"/> </inline> </xsl:template> >> >> This is the error I get: >> org.apache.fop.fo.ValidationException: Error(Unknown >> location): fo:inline, Invalid property name 'fo:font-weight, >> >> followed by a long stack trace. I wasn't getting this error >> when I was using 0.20.5, and after further investigation it >> seems this type of error is happening everywhere the >> xsl:attribute element is used to create an attribute in the >> output. Any idea what the problem may be? > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/RE%3A-FOP-0.93-%22Invalid-property-name%22-error-tf3141165.html#a8714086 Sent from the FOP - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
