Thanks but I don't yet see a solution. I want to call: System.setProperty( "docb.toHTML1.transform", xlsName);
Experimentation leads me to conclude that "xlsName" must be a string that is an absolute URL. Please tell me if that is not so. The xls file named by xlsName is a file that is relative to the configuration directory. The API: URL thURL = getApp().getActiveOpenedDocument().getConfiguration().getURL(); returns a URL that does indeed start with file://server/path... So I see no way of deriving an absolute URL that java can handle. If "xlsName" in the above SetProperty function can be relative -- or a file path rather than a URL, then I will have a solution. getApp().getActiveOpenedDocument().getStyleSheetInfo() does not help me because the document does not know about the style sheets of interest. I guess I could figure out how to get the document to know about the style sheet -- but even if I do, I fear the URL will again include a UNC. The only other alternative I see is to re-implement the docb.toHTML1.transform command in my custom.xxe, and make copies of the resources that it expects to copy. --Mike At 01:21 AM 9/3/2007, you wrote: >Mike Thompson wrote: >>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? > >[1] "file:/tinsman-v/me..." does not specify an UNC path. It should >start with "file://tinsman-v/me...". > >[2] In all cases, Java cannot handle file://server/path URLs. >Use XMLmind's utility FileUtil.urlToFile(URL) to convert this kind >of URL (provided that its starts with "file://") to a java.io.File object. > >See >http://www.xmlmind.com/xmleditor/_distrib/doc/api/com/xmlmind/xmleditapp/kit/OpenedDocument.html#getStyleSheetInfo() > >[3] Why not use directly >getApp().getActiveOpenedDocument().getStyleSheetInfo()? This >directly lists all the CSS style sheets associated with current document. > >See >http://www.xmlmind.com/xmleditor/_distrib/doc/api/com/xmlmind/xmleditapp/kit/OpenedDocument.html#getStyleSheetInfo()

