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


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[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!

Fair enough. Here's my everyday DocBook pipeline:

Interesting. Thanks Norm

<p:declare-step version="1.0" name="main"
   <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 -->

   <!-- 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"/>

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 name="schema">
     <p:with-option name="href" select="resolve-uri($schema, exf:cwd())"/>

exfproc... are these 'standard' inasmuch as ... Calabash has them?

   <!-- Validate my (normlized) DocBook markup -->
     <p:input port="source">
       <p:pipe step="normalize" port="result"/>
     <p:input port="schema">
       <p:pipe step="schema" port="result"/>

   <!-- And...style it! -->
     <p:input port="stylesheet">
       <p:pipe step="style" port="result"/>

                                         Be seeing you,

Does this stop on error Norm?
As per bash scripts or Ant script?

Very tempted to try this.


Dave Pawson

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