OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: RE: [docbook-apps] Generating html help with Xalan


Thank Bob. That solved the problem.

 

I have one issue left – the part that generates web help threw an exception:

 

java -cp "../../../src/xalan/xalan.jar;../../../src/xalan/xcercesImpl.jar;../../../src/xalan/xml-apis.jar;../../../src/x

slthl-2.0.1.jar" \

        -Dxslthl.config="file:///E:/ongoing/highlighters/xslthl-config.xml" \

    org.apache.xalan.xslt.Process \

                -param l10n.gentext.default.language en \

                -param glossary.collection ../../../src/glossary.xml  \

                -param document.name.stem manual \

                -param base.dir manual.html-web/ -xsl ../../../src/xsl.d/myweb-chunk.xsl \

                -param manifest.in.base.dir 1 \

                -in manual.xml

 

The error was:

Line #46; Column #83; org.apache.xml.utils.WrappedRuntimeException: Could not find variable with the name of document.name.stem

 

It looks to me that Xalan complained that it could not locate variable document.name.stem, but the value is passed through command line.

 

The line 46 has the following contents:

 

  $pagedata['product'] = '</xsl:text><xsl:value-of select="$document.name.stem" /><xsl:text>';

 

The above worked when the processor was xsltproc.

 

Thanks,

Sherwood

 

 

From: Bob Stayton [mailto:bobs@sagehill.net]
Sent: Tuesday, August 18, 2009 4:20 PM
To: Sherwood Hu; docbook-apps@lists.oasis-open.org
Subject: Re: [docbook-apps] Generating html help with Xalan

 

Hi,

The 'manifest.in.base.dir' parameter can do what you want.  See:

 

 

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net

 

 

----- Original Message -----

From: Sherwood Hu

Sent: Tuesday, August 18, 2009 11:47 AM

Subject: [docbook-apps] Generating html help with Xalan

 

I recently converted our doc building system to use Xalan-J with most recent version stylesheet (1.75.2). I ran into a problem when creating htmlhelp files.

 

java -cp "../../../src/xalan/xalan.jar;../../../src/xalan/xcercesImpl.jar;../../../src/xalan/xml-apis.jar;../../../src/x

slthl-2.0.1.jar" \

        -Dxslthl.config="file:///E:/ongoing/highlighters/xslthl-config.xml" \

    org.apache.xalan.xslt.Process \

                -param l10n.gentext.default.language en \

                -param glossary.collection ../../../src/glossary.xml  \

                -param chunk.section.depth 1 \

                -param html.stylesheet "styles_html.css" \

                -param base.dir manual.html-help/ -xsl ../../../src/xsl.d/my-html-help.xsl \

                -in manual.xml

 

The chunk html files are generated in subdirectory manual.html-help, thank to the base.dir parameter. However, all *.h and *hh* files are created under the current directory. I want to keep the current directory without intermediate files.

 

Previously with xsltproc, the –out argument allows me to specify the output directory. It seems that Xalan does not have such an option.

 

Any ideas to output the intermediate files into a sub directory? Thanks!



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]