clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since 58b3c63 was 3f8be484, 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
|
Line | |
---|
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 |
|
---|
19 | NAME=`basename $0`
|
---|
20 |
|
---|
21 | if [ -z "$1" ]; then
|
---|
22 | echo "USAGE: $NAME filename.xml"
|
---|
23 | exit
|
---|
24 | fi
|
---|
25 |
|
---|
26 | xmllint -xinclude -output /tmp/temp.xml $1
|
---|
27 |
|
---|
28 | xmllint -dropdtd -output full-$1 /tmp/temp.xml
|
---|
Note:
See
TracBrowser
for help on using the repository browser.