My manpage for xsltproc mentions use of a stylesheet but not
a DTD:
<------------ output for `man xsltproc` ------------------------
xsltproc is invoked from the command line with the name of
the stylesheet to be
used followed by the name of the file or files to which the
stylesheet is to be ap-
plied. It will use the standard input if a filename provided is - .
If a stylesheet is included in an XML document with a
Stylesheet Processing In-
struction, no stylesheet need be named at the command line.
xsltproc will automati-
cally detect the included stylesheet and use it.
>-------------------------------------------------------------------
What confuses me is that there are several .xml files containing DTD's:
<-------------------------------------------------------------------
cd ~/prog_dev/boost-release/1_33_0/libs/
find . -name \*.xml -exec grep DOCTYPE {} \; -ls
<!DOCTYPE library PUBLIC "-//Boost//DTD BoostBook XML V1.0//EN"
1884511 8 -r--r--r-- 1 evansl evansl 7955 Jul 16 2004
./algorithm/string/doc/concept.xml
<!DOCTYPE library PUBLIC "-//Boost//DTD BoostBook XML V1.0//EN"
1884512 4 -r--r--r-- 1 evansl evansl 958 Aug 3 2004
./algorithm/string/doc/credits.xml
>--------------------------------------------------------------------
So why are these included within the .xml if xsltproc ignores them?
BTW, if the DOCTYPE is simply replaced with something like:
<?xml-stylesheet type="text/xsl" href="toc-nestnum.xsl"?>
then toc-nestnum.xsl is used and doesn't have to appear on
the command line, just like the manpage claims:
<------------------------------------------------
make users_guide.html
/usr/bin/xsltproc -o users_guide.html users_guide.xml
head -3 users_guide.xml
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="toc-nestnum.xsl"?>
<root>
Compilation finished at Sun Sep 4 15:48:06
>------------------------------------------------
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Boost-docs mailing list
[email protected]
Unsubscribe and other administrative requests:
https://lists.sourceforge.net/lists/listinfo/boost-docs