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] Better rendering for programlisting


Hi Tom,

thanks but if I set this up with Saxon 6.5I get an error message from
my Ant build file:  No adjustColumnWidths function available. Details
below.

Best regards, Lars

Full error message:

build-html:
     [xslt] Transforming into
/home/vogella/workspace/docu/output/website/articles
     [xslt] Processing
/home/vogella/workspace/docu/output/website.tmp/Android/article.xml to
/home/vogella/workspace/docu/output/website/articles/Android/article.html
     [xslt] Loading stylesheet
/home/vogella/workspace/docu/de.vogella.publishing/mystylesheets/myhtmldocbook.xsl
     [xslt] Loading Xslthl configuration from
file:/home/vogella/workspace/docu/de.vogella.publishing/docbook-xsl-1.76.1/highlighting/xslthl-config.xml...
     [xslt] No adjustColumnWidths function available.
     [xslt] Failed to process null

Here is the relevant part of my Ant Build file:

<target name="build-html" depends="copybookimages, copyvgwort,
copyadvertisement, copystaticfiles, copyimages, xinclude,
remove-space,  build-htmlbook" description="Generates HTML files from
DocBook XML">
		<xslt style="${myhtml.stylesheet}" extension=".html"
basedir="${outputtmp.dir}" destdir="${article.dir}">
			<include name="**/*article.xml" />
			<param name="html.stylesheet" expression="${stylesheet}" />
			<param name="section.autolabel" expression="1" />
			<param name="section.label.includes.component.label" expression="1" />
			<param name="make.valid.html" expression="1" />
			<param name="html.cleanup" expression="1" />
			<param name="chunker.output.encoding" expression="UTF-8" />
			<param name="highlight.source" expression="1" />
			<param name="highlight.xslthl.config" expression="${xslthl.config.url}" />
			<param name="highlight.default.language" expression="java" />
			<param name="ignore.image.scaling" expression="1" />
			<param name="use.extensions" expression="1" />
			<param name="linenumbering.extension" expression="1" />
			<outputproperty name="indent" value="yes" />
			<classpath refid="saxon.class.path" />
		</xslt>

		<!-- Copy the stylesheet to the top level directory-->
		<copy todir="${article.dir}/..">
			<fileset dir="lib">
				<include name="styles.css" />
			</fileset>
		</copy>
	</target>


2012/5/6 Thomas Schraitle <tom_schr@web.de>:
> Hi Lars,
>
> Am Sonntag, 6. Mai 2012, 17:53:35 schrieb Lars Vogel:
>> A bit of topic, but how do I activate line numbers in a program listing?
>
> 1. Add the attribute-value pair linenumbering="numbered" in programlisting
>   or screen.
>
> 2. Use Saxon and put the saxon65.jar DocBook extension in your classpath.
>   Linenumbering won't work with xsltproc currently.
>
> 3. Enable linenumbering by using the parameters use.extensions=1 and
>   linenumbering.extension=1 either on the commandline or in your
>   customization layer.
>
> 4. Rebuild your document.
>
> Hope I didn't forget anything. For more information, see here:
> http://www.sagehill.net/docbookxsl/AnnotateListing.html#LineNumbering
>
> Have fun! :-)
>
> --
> Gruß/Regards
>  Thomas Schraitle
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
>



-- 
Lars
http://www.vogella.com - Eclipse, Android and Java Tutorials
http://www.twitter.com/vogella - Lars on Twitter


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