Classification: UNCLASSIFIED
Caveats: NONE

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>

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.

Is this a bug in the Stylesheet Editor?  Should I just manually replace
"&lt;" and "&gt;" with "<" and ">" to get rid of the XEP warnings?

Thanks
clark


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Hussein Shafie
Sent: Thursday, September 27, 2012 3:36 AM
To: Clark Karr
Cc: '[email protected]'
Subject: Re: [XXE] Installing custom xslt style sheet (UNCLASSIFIED)

On 09/27/2012 12:30 AM, Clark Karr wrote:
>
> I've created a custom xslt style sheet with XXE's Customize Document 
> Conversion Stylesheets tool (a very nice tool), but I don't know what 
> to do next. I've read (and reread) section "10 Customizing the XSLT 
> style sheets used in the Convert Document submenu" located at:
>
> http://www.xmlmind.com/xmleditor/_distrib/doc/configure/customize_xslt
> .html

This section indeed describes how to customize the XSLT style sheets used in
the "Convert Document" submenu. However it describes how to do so manually,
that is, the hard way.




>
> But I don't really get what I'm supposed to do with the file I've
> created. Where am I supposed to save it and what else do I need to do to
> activate it?
>

The simple way is described here:

http://www.xmlmind.com/xmleditor/_distrib/doc/help/customizeConfigurationMen
u.html#editConversionStylesheetsAction

Basically you just need to use menu item "Options|Customize 
Configuration|Customize Document Conversion Stylesheets" and then use 
the corresponding dialog box.

Note that now you have created a custom XSLT style sheet, you'll just 
have to select it by:

1) Use "Options|Customize Configuration|Customize Document Conversion 
Stylesheets".

2) Select the output format of custom XSLT style sheet your in the 
dialog box. For example, select "Convert to PDF, PostScript" if you 
intend to use your custom XSLT style sheet to generate PDF.

3) Click "Add" to add your existing custom XSLT style sheet. Note that 
adding a custom XSLT style sheet automatically selects it in the 
combobox and thus, ``activates'' it. (Notice that the "XSLT stylesheet" 
frame contains a combobox showing the name of the currently 
``activated'' XSLT style sheet.)

You'll have to do 2) and 3) for all the output formats to which your 
custom XSLT style sheet applies. For example, a custom XSLT style sheet 
which generates XSL-FO may be used for PDF but also RTF, .docx, etc.

All this is detailed in: 
http://www.xmlmind.com/xmleditor/_distrib/doc/help/ConversionStylesheetsEdit
or_reference.html
 
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Classification: UNCLASSIFIED
Caveats: NONE



 
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to