On 12/28/2010 05:50 PM, Alberto Perri wrote:
> 
> There is one more thing i would like to do now. Instead of changing the 
> value of field "XSL stylesheet" in XMLmind XSL Utility in order to
> make it point to my custom XSL file like you explained below, is there a way 
> to do this from the command line?
> 

No, because in principle this is never needed. Instructing  XMLmind XSL
Utility to use a custom XSL stylesheet rather than the stock one is done
once for all.

If you need to switch between different custom XSL stylesheets, then you
need to define different ``Conversions'', each conversion having a
different name and a slightly different specification. See
http://www.xmlmind.com/foconverter/_distrib/doc/help/com.xmlmind.xslutil.ConversionEditor.html

Let's call these conversions ditaToPDF1, ditaToPDF2, ditaToPDF3, etc.

After doing that, it's possible to invoke XMLmind XSL Utility as a
command-line tool. See
http://www.xmlmind.com/foconverter/_distrib/doc/help/running.html#command_line

Examples:

---
C:\xslutil-4_4_1\bin> xslutilc ditaToPDF1 E:\tmp\foo.xml E:\tmp\foo1.pdf

C:\xslutil-4_4_1\bin> xslutilc ditaToPDF2 E:\tmp\foo.xml E:\tmp\foo2.pdf

C:\xslutil-4_4_1\bin> xslutilc ditaToPDF3 E:\tmp\foo.xml E:\tmp\foo3.pdf
---

But I'm not sure this what you want to do.




---
PS: A custom XSL stylesheet must import the stock one.

This is done as follows in the context of XMLmind DITA Converter (ditac):

---
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
                xmlns:fo="http://www.w3.org/1999/XSL/Format";
                version="2.0">

  <xsl:import href="ditac-xsl:fo/fo.xsl"/>

  <!-- YOUR CUSTOMIZATIONS HERE -->

</xsl:stylesheet>
---
(More info. here:
http://www.xmlmind.com/ditac/_distrib/doc/manual/manual-6.html#customAttributeSet)

But this is done as follows in the context of XMLmind XSL Utility:

---
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
                xmlns:fo="http://www.w3.org/1999/XSL/Format";
                version="2.0">

  <xsl:import href="xslutil-config:dita/xsl/fo/fo.xsl"/>

  <!-- YOUR CUSTOMIZATIONS HERE -->

</xsl:stylesheet>
---

Same principle, just different pointers to the stock XSL stylesheet.


 
--
XMLmind FO Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xfc-support

Reply via email to