Thanks again.  That was too easy.

My final problem with this attempt:
The style sheet is located at: 
file:/H:/Application%20Data/XMLmind/XMLEditor/addon/docbook/xsl/html-review.xsl
which is a microsoft share.  If I use that explicitly, it works fine.

However, if I use 
getApp().getActiveOpenedDocument().getConfiguration(); to get the 
configuration file, and then locate the style sheet relative to that 
directory, the API returns a URL containing the UNC (e.g., 
"file:/tinsman-v/me/Application%20Data/XMLmind/XMLEditor/addon/docbook/xsl/html-review.xsl")
 
rather than the drive letter.  And it fails to find the style sheet.

I suspect the UNC problem is not new. Is there any reasonable solution?
Thanks,
--Mike

At 12:59 AM 8/31/2007, you wrote:
>Mike Thompson wrote:
>>However I'm still stumped on how to get the docb.toHTML1 process 
>>command to use a custom XSLT style sheet using this 
>>technique.  I've tried a variety 
>>of  getProperty("docb.toHTML1.transform") functions on classes such 
>>as App, but have not found where that property resides.
>>I know I can set it in my custom.xxe file -- but I'd like to change 
>>it under program control.
>
>System.setProperty(
>   "docb.toHTML1.transform",
>   "file:///home/mike/xsl/My%20Custom%20Stylesheet.xsl");
>
>See "Using a custom XSLT style sheet" in 
>http://www.xmlmind.com/xmleditor/_distrib/doc/commands/transform.html#custom_xslt
>
>This works because the <property> configuration element mentioned in 
>the above document corresponds to an ordinary Java system property.
>
>See also
>http://www.xmlmind.com/xmleditor/_distrib/doc/configure/property.html
>
>
>
>
>
>


Reply via email to