On 09/27/2012 09:04 PM, Clark Karr wrote:
>
> Thanks again.  My customizations are in place and working, but I'm getting a
> lot of XEP warnings about font-size; e.g.,
>     XEP warning: Bad attribute font-size: Could not parse attribute value
> "<xsl:value-of select="$body.font.master"/><xsl:text>pt</xsl:text>"
>
> These are coming from font-size in section.title.levelX.properties.  The
> original params.xsl reads:
> <xsl:attribute-set name="section.title.level1.properties">
>    <xsl:attribute name="font-size">
>      <xsl:value-of select="$body.font.master * 1.728"/>
>      <xsl:text>pt</xsl:text>
>    </xsl:attribute>
> </xsl:attribute-set>
>
> My customization file reads:
>    <xsl:attribute-set name="section.title.level1.properties">
>      <xsl:attribute name="font-size">&lt;xsl:value-of
> select="$body.font.master"/&gt;
>      &lt;xsl:text&gt;pt&lt;/xsl:text&gt;</xsl:attribute>
>    </xsl:attribute-set>

This is 100% correct. See below.



>
> Thoughtout the customization file many "<" and">" are represented as"&lt;"
> and "&gt;".
>
> Weirdly, XEP complains only about the font-size in
> section.title.levelX.properties.

XEP is 100% correct:

---
&lt;xsl:value-of select="$body.font.master"/&gt; 
&lt;xsl:text&gt;pt&lt;/xsl:text&gt;
---

is an invalid literal value for the font-size XSL-FO attribute. See below.




>
> Is this a bug in the Stylesheet Editor?

No, not at all. "XMLmind XSL Customizer" is designed for users who 
cannot ``program'' in XSLT.

These users are not supposed to type XSLT expressions or elements as the 
value of an attribute belonging to the attribute set. These users are 
supposed to enter *literal* *values*.

For example, in the case of the above example, you were expected to type:

---
16pt
---

and not:

---
<xsl:value-of select="$body.font.master * 1.728"/>
<xsl:text>pt</xsl:text>
---

as the value of attribute section.title.level1.properties/font-size.



> Should I just manually replace
> "&lt;" and "&gt;" with "<" and">" to get rid of the XEP warnings?
>

If you know XSLT (which seems to be the case), you'd better completely 
forget about "XMLmind XSL Customizer" and instead use a text editor or a 
programmer's XML or XSLT editor.

XXE allows to invoke such editors from within its "Customize Document 
Conversion Stylesheets" dialog box.  See "Edit" in 
http://www.xmlmind.com/xmleditor/_distrib/doc/help/ConversionStylesheetsEditor_reference.html
 
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to