source: BOOK/editor-tools/Xinclude-resolver.sh@ 36e8256

Last change on this file since 36e8256 was 67300de, checked in by Joe Ciccone <jciccone@…>, 16 years ago

Create a clfs-1.1 branch in preperation for a RC.

  • Property mode set to 100644
File size: 720 bytes
RevLine 
[67300de]1#!/bin/bash
2
3# This script will create a copy of the given XML file
4# with the Xinclude tags resolved.
5
6# Must be executed from the same dir where the XML file
7# to be resolved is found.
8
9# The DTD declaration is removed from the output due that
10# xmllint add also the full set of entities.
11
12# Useful to see the actual text and commands and to know
13# in what files the Xincluded blocks are actually placed.
14
15# Remember to remove the full-*xml files after finished
16# your review of that files. They don't be commited to the
17# SVN repository.
18
19NAME=`basename $0`
20
21if [ -z "$1" ]; then
22 echo "USAGE: $NAME filename.xml"
23 exit
24fi
25
26xmllint -xinclude -output /tmp/temp.xml $1
27
28xmllint -dropdtd -output full-$1 /tmp/temp.xml
Note: See TracBrowser for help on using the repository browser.