source: editor-tools/Xinclude-resolver.sh@ 7d6c53c

Last change on this file since 7d6c53c was bf8c11f, checked in by Jim Gifford <clfs@…>, 19 years ago

r627@server (orig r625): jim | 2005-10-31 12:59:34 -0800
Import of Cross-LFS Book

  • Property mode set to 100644
File size: 720 bytes
RevLine 
[bf8c11f]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.