[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook] Re: xi:include problem
On 11/12/13 13:33, Norman Walsh wrote:
davep <davep@dpawson.co.uk> writes:That's how, not what Mr Walsh! Herrumph.Fair enough. Here's my everyday DocBook pipeline:
Interesting. Thanks Norm
<p:declare-step version="1.0" name="main" xmlns:exf="http://exproc.org/standard/functions" xmlns:p="http://www.w3.org/ns/xproc"> <p:input port="source"/> <p:output port="result"/> <p:input port="parameters" kind="parameter"/> <!-- The style option specifies the stylesheet. The standard HTML one by default. --> <p:option name="style" select="'/projects/docbook/xslt20/xslt/base/html/docbook.xsl'"/> <!-- The schema option specifies the schema. The RDFaLite one by default. --> <p:option name="schema" select="'/projects/docbook/docbook/relaxng/schemas/dbrdfalite.rng'"/>
??? Schema for ..... output? DBRDFa? Surely not the input docbook?
<!-- Expand XIncludes --> <p:xinclude/> <!-- I've started using some ad-hoc shortcuts in my writing. For example, I write about XML so often that I use <att> instead of <tag class="attribute">. The ndw2db.xsl stylesheet normalizes my shortcut markup back into proper DocBook. -->
Catch up Mr W! I've had those for yonks. Wrong list for emacs macros though....
<p:xslt name="normalize"> <p:input port="stylesheet"> <p:document href="/Users/ndw/stylesheets/ndw2db.xsl"/> </p:input> </p:xslt>
Ah... you're using XML as your macro processor.... Different.
<!-- Load the stylesheet and the schema. If I specify them as options, I want them resolved relative to the current working directory, not this stylesheet, so I have to work a little harder. --> <p:load name="style"> <p:with-option name="href" select="resolve-uri($style, exf:cwd())"/> </p:load> <p:load name="schema"> <p:with-option name="href" select="resolve-uri($schema, exf:cwd())"/> </p:load>
exfproc... are these 'standard' inasmuch as ... Calabash has them?
<!-- Validate my (normlized) DocBook markup --> <p:validate-with-relax-ng> <p:input port="source"> <p:pipe step="normalize" port="result"/> </p:input> <p:input port="schema"> <p:pipe step="schema" port="result"/> </p:input> </p:validate-with-relax-ng> <!-- And...style it! --> <p:xslt> <p:input port="stylesheet"> <p:pipe step="style" port="result"/> </p:input> </p:xslt> </p:declare-step> Be seeing you, norm
Does this stop on error Norm? As per bash scripts or Ant script? Very tempted to try this. regards -- Dave Pawson XSLT XSL-FO FAQ. http://www.dpawson.co.uk
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]