Next in thread → Next in month →

RE: xi:include makes XML doc invalid; xmllint says so; seems wrong

From
Steve Whitlatch <>
Date
2004-02-22T18:25:28+00:00
ID
Thread
RE: xi:include makes XML doc invalid; xmllint says so; seems wrong
It may be a good idea for me to learn about DTD customizations, but for now,
that's just terrifying. As it turns out, my problem was that I was
attempting to use --valid and --postvalid with xmllint at the same time.
When I did that, the xi:include documents were not included prior to
validation. But then when I changed the command-line options to xmllint to
use --postvalid and not --valid (thanks Bob!!), it worked as expected.

So, a case can be made that --valid and --postvalid are mutually exclusive
options to xmllint. Maybe the manpage for xmllint has been updated to
indicate this. I should have figured this out. Maybe a case can be made
that --valid and --postvalid are not mutually exclusive. Maybe xmllint
should fail with some explanation when both --valid and --postvalid are used
at the same time. Maybe xmllint should default to using just --postvalid
when both --postvalid and --valid are used. I'll just go with the flow for
now.

Steve Whitlatch


-----Original Message-----
From: Steinar Bang [mailto:]
Sent: Saturday, February 21, 2004 6:19 AM
To: 
Subject: Re: xi:include makes XML doc invalid; xmllint says so; seems
wrong


>>>>> Steve Whitlatch <>:

> Perhaps I have missed something obvious. Any suggestions?

Doesn't look like your documents has DTD customizations for
XIncludes.  See Bob's book for how to do this:
	http://www.sagehill.net/docbookxsl/ValidXinclude.html#XincludeDTD
Next in thread → Next in month →