Classification: UNCLASSIFIED Caveats: NONE Hussein, As always, you answer quickly and concisely. Unfortunately, my knowledge of XSLT is shallow and spotty. The "XMLmind XSL Customizer" is perfectly suited to my level of expertise and is a welcome relief from editing files with a text editor. Rather than "forgetting" it, I plan to employ it as my primary customization tool.
Let me be the first (of many, I hope) to request you provide a mechanism within it to save XSLT expressions as displayed rather than as html codes. Until then I'll use a text editor to do a final pass to convert the html codes. Thanks again. The XMLmind XSL Customizer is great! Clark -----Original Message----- From: Hussein Shafie [mailto:[email protected]] Sent: Friday, September 28, 2012 5:58 AM To: Clark Karr Cc: [email protected] Subject: Re: [XXE] Installing custom xslt style sheet (UNCLASSIFIED) 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"><xsl:value-of > select="$body.font.master"/> > <xsl:text>pt</xsl:text></xsl:attribute> > </xsl:attribute-set> This is 100% correct. See below. > > Thoughtout the customization file many "<" and">" are represented as"<" > and ">". > > Weirdly, XEP complains only about the font-size in > section.title.levelX.properties. XEP is 100% correct: --- <xsl:value-of select="$body.font.master"/> <xsl:text>pt</xsl:text> --- 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 > "<" and ">" 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/ConversionStylesheetsEdit or_reference.html Classification: UNCLASSIFIED Caveats: NONE -- XMLmind XML Editor Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xmleditor-support

