Can't create docbook 5 target.db file

Having trouble installing Oxygen? Got a bug to report? Post it all here.
steve.cuzner
Posts: 72
Joined: Thu Mar 26, 2015 4:57 pm

Can't create docbook 5 target.db file

Post by steve.cuzner »

Hi,

I'm trying to create a target.db file and the transformation fails with the message:

E[Saxon6.5.5] target.db (Access is denied)

I created my test doc by creating a new docbook 5 chapter from the Oxygen Editor 16.1 File->New menu. After adding some sections, titles, and IDs, I saved to my local file system. I then configured my scenarios and duplicated the standard framework transformation for DocBook HTML to DocBook HTML - target yes and in this new scenario, I changed the collect.xref.targets parameter to yes. I've copied the entire scenario from my project file and included it below. I later modified the output file to an explicit path instead of using the Oxygen variables.

My understanding of the stylesheets is that the target.db file should be saved to the same directory as the input file. I've even created a target.db file in this folder so there is at least a stub file there and I've verified that the file is writable. I've read other posts that in some situations the target.db file is written to the stylesheet directory and that would certainly be a problem for me. Where should I be looking for this file and how do I control it's output location.
<scenario>
<field name="advancedOptionsMap">
<null/>
</field>
<field name="name">
<String>DocBook HTML - target yes</String>
</field>
<field name="baseURL">
<String></String>
</field>
<field name="footerURL">
<String></String>
</field>
<field name="fOPMethod">
<String>pdf</String>
</field>
<field name="fOProcessorName">
<String>Apache FOP</String>
</field>
<field name="headerURL">
<String></String>
</field>
<field name="inputXSLURL">
<String>${frameworks}/docbook/xsl/html/docbook_custom.xsl</String>
</field>
<field name="inputXMLURL">
<String>${currentFileURL}</String>
</field>
<field name="defaultScenario">
<Boolean>false</Boolean>
</field>
<field name="isFOPPerforming">
<Boolean>false</Boolean>
</field>
<field name="type">
<String>XSL</String>
</field>
<field name="saveAs">
<Boolean>true</Boolean>
</field>
<field name="openInBrowser">
<Boolean>true</Boolean>
</field>
<field name="outputFile">
<File>C:/linktesting/out/html/targets.html</File>
</field>
<field name="outputResource">
<String>C:\linktesting\out\html\targets.html</String>
</field>
<field name="openOtherLocationInBrowser">
<Boolean>false</Boolean>
</field>
<field name="locationToOpenInBrowserURL">
<null/>
</field>
<field name="openInEditor">
<Boolean>false</Boolean>
</field>
<field name="showInHTMLPane">
<Boolean>false</Boolean>
</field>
<field name="showInXMLPane">
<Boolean>false</Boolean>
</field>
<field name="showInSVGPane">
<Boolean>false</Boolean>
</field>
<field name="showInResultSetPane">
<Boolean>false</Boolean>
</field>
<field name="useXSLTInput">
<Boolean>true</Boolean>
</field>
<field name="xsltParams">
<list>
<transformationParameter>
<field name="paramDescription">
<paramDescriptor>
<field name="localName">
<String>admon.graphics</String>
</field>
<field name="prefix">
<null/>
</field>
<field name="namespace">
<null/>
</field>
</paramDescriptor>
</field>
<field name="value">
<String>1</String>
</field>
<field name="hasXPathValue">
<Boolean>false</Boolean>
</field>
</transformationParameter>
<transformationParameter>
<field name="paramDescription">
<paramDescriptor>
<field name="localName">
<String>admon.graphics.extension</String>
</field>
<field name="prefix">
<null/>
</field>
<field name="namespace">
<null/>
</field>
</paramDescriptor>
</field>
<field name="value">
<String>.png</String>
</field>
<field name="hasXPathValue">
<Boolean>false</Boolean>
</field>
</transformationParameter>
<transformationParameter>
<field name="paramDescription">
<paramDescriptor>
<field name="localName">
<String>admon.graphics.path</String>
</field>
<field name="prefix">
<null/>
</field>
<field name="namespace">
<null/>
</field>
</paramDescriptor>
</field>
<field name="value">
<String>${frameworks}/docbook/css/img/</String>
</field>
<field name="hasXPathValue">
<Boolean>false</Boolean>
</field>
</transformationParameter>
<transformationParameter>
<field name="paramDescription">
<paramDescriptor>
<field name="localName">
<String>base.dir</String>
</field>
<field name="prefix">
<null/>
</field>
<field name="namespace">
<null/>
</field>
</paramDescriptor>
</field>
<field name="value">
<String>${cfd}/out/html/</String>
</field>
<field name="hasXPathValue">
<Boolean>false</Boolean>
</field>
</transformationParameter>
<transformationParameter>
<field name="paramDescription">
<paramDescriptor>
<field name="localName">
<String>callout.graphics.path</String>
</field>
<field name="prefix">
<null/>
</field>
<field name="namespace">
<null/>
</field>
</paramDescriptor>
</field>
<field name="value">
<String>${frameworks}/docbook/xsl/images/callouts/</String>
</field>
<field name="hasXPathValue">
<Boolean>false</Boolean>
</field>
</transformationParameter>
<transformationParameter>
<field name="paramDescription">
<paramDescriptor>
<field name="localName">
<String>collect.xref.targets</String>
</field>
<field name="prefix">
<null/>
</field>
<field name="namespace">
<null/>
</field>
</paramDescriptor>
</field>
<field name="value">
<String>yes</String>
</field>
<field name="hasXPathValue">
<Boolean>false</Boolean>
</field>
</transformationParameter>
<transformationParameter>
<field name="paramDescription">
<paramDescriptor>
<field name="localName">
<String>draft.mode</String>
</field>
<field name="prefix">
<null/>
</field>
<field name="namespace">
<null/>
</field>
</paramDescriptor>
</field>
<field name="value">
<String>no</String>
</field>
<field name="hasXPathValue">
<Boolean>false</Boolean>
</field>
</transformationParameter>
<transformationParameter>
<field name="paramDescription">
<paramDescriptor>
<field name="localName">
<String>highlight.source</String>
</field>
<field name="prefix">
<null/>
</field>
<field name="namespace">
<null/>
</field>
</paramDescriptor>
</field>
<field name="value">
<String>1</String>
</field>
<field name="hasXPathValue">
<Boolean>false</Boolean>
</field>
</transformationParameter>
<transformationParameter>
<field name="paramDescription">
<paramDescriptor>
<field name="localName">
<String>highlight.xslthl.config</String>
</field>
<field name="prefix">
<null/>
</field>
<field name="namespace">
<null/>
</field>
</paramDescriptor>
</field>
<field name="value">
<String>${frameworks}/docbook/xsl/highlighting/xslthl-config.xml</String>
</field>
<field name="hasXPathValue">
<Boolean>false</Boolean>
</field>
</transformationParameter>
<transformationParameter>
<field name="paramDescription">
<paramDescriptor>
<field name="localName">
<String>img.src.path</String>
</field>
<field name="prefix">
<null/>
</field>
<field name="namespace">
<null/>
</field>
</paramDescriptor>
</field>
<field name="value">
<String>../../</String>
</field>
<field name="hasXPathValue">
<Boolean>false</Boolean>
</field>
</transformationParameter>
<transformationParameter>
<field name="paramDescription">
<paramDescriptor>
<field name="localName">
<String>olink.debug</String>
</field>
<field name="prefix">
<null/>
</field>
<field name="namespace">
<null/>
</field>
</paramDescriptor>
</field>
<field name="value">
<String>1</String>
</field>
<field name="hasXPathValue">
<Boolean>false</Boolean>
</field>
</transformationParameter>
</list>
</field>
<field name="cascadingStylesheets">
<String-array/>
</field>
<field name="xslTransformer">
<String>Saxon6.5.5</String>
</field>
<field name="extensionURLs">
<String-array>
<String>${frameworks}/docbook/xsl/extensions/xslthl-2.0.1.jar</String>
<String>${frameworks}/docbook/xsl/extensions/saxon65.jar</String>
</String-array>
</field>
</scenario>
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Can't create docbook 5 target.db file

Post by sorin_ristache »

steve.cuzner wrote:I'm trying to create a target.db file and the transformation fails with the message:

E[Saxon6.5.5] target.db (Access is denied)
This error seems to come from trying to write the target.db file to the Program Files sub-directory where the Oxygen app is installed, which is of course forbidden without elevated admin rights, which is usually the case with applications started without admin rights.
steve.cuzner wrote:I later modified the output file to an explicit path instead of using the Oxygen variables.
I assume this means you modified the output file on the Output tab of the dialog for editing the DocBook transformation, is my assumption correct? In the case of the target.db file (the DocBook specific file that helps to resolve olink references) you should modify the path of this file in the targets.filename parameter, for example:

Code: Select all

targets.filename = D:/temp/docbook/output/target.db
Regards,
Sorin

<oXygen/> XML Editor Support
Post Reply