[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook] xi:include problem
On 2013-12-14 17:18, Alex Kleider wrote:
I have figured out how to solve my problem. It's probably 'old news' to most but ... I use the following script: """ if [ -n "$2" ]; then outfile="$2"; else outfile="/dev/stdout"; fi infile=$1 rng=/usr/share/xml/docbook/schema/rng/5.0/docbook.rng xmllint --relaxng $rng --xinclude $infile > $outfile """
I've elaborated a bit; perhaps too much. Is the jing line redundant? """ #!/bin/bash # Usage: transform.sh file [outfile] # transform.sh does xIncludes, # outfile is preprocessed xml, it defaults to stdout # if outfile is provided, will create html output. set -e if [ -n "$2" ] then outfile=$2 else outfile="/dev/stdout" fi infile=$1 xsl=/usr/share/xml/docbook/stylesheet/docbook5/db4-upgrade.xsl rng=/usr/share/xml/docbook/schema/rng/5.0/docbook.rng xmllint --relaxng $rng --xinclude $infile > $outfile if [ -n "$2" ] then jing /usr/share/xml/docbook/schema/rng/5.0/docbook.rng $outfile xmlto --skip-validation $format $outfile fi """
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]