This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: xmllint - xinclude
- From: Bob Stayton <bobs at caldera dot com>
- To: fyl2xp1 <vnhu38f93 at subdimension dot com>,docbook-apps <docbook-apps at lists dot oasis-open dot org>
- Date: Tue, 13 Aug 2002 10:11:22 -0700
- Subject: Re: DOCBOOK-APPS: xmllint - xinclude
- References: <004c01c242e7$fdb06670$0f11bc93@htrtttt>
On Tue, Aug 13, 2002 at 05:39:28PM +0100, fyl2xp1 wrote:
> OK, not really specific to docbook, well It is
> for my project which is entirely in docbook.
> But this refers to generating html output.
>
> I am using ant to compile all my docbook
> sources, this is no problem. I deciced that
> it would be a good idea to modularise
> my html pages that are serving the docbook
> documents. This was because I had a
> common menu which appeared in all
> the items so it was tedious to edit all the items'
> web pages when I wanted to add a new item.
>
> I pulled the common menu out and placed it in
> a separate XML file, then placed xincludes
> inside each of the html files to pull the common
> menu in. My problem occurs when doing this
> using xmllint and its --xinclude option. Everything
> is output fine, except:
>
> <style type="text/css" media="all">@import
> "../../nice.css";</style>
>
> The I need the ../../nice.css bit to be in actual
> quotes, not entity references, it seems as though
> xmllint changes these references because it thinkgs
> they are content in the html page, I have tried
> various output options with xmllint but I cannot
> seem to fix this problem. Is there a way to do this,
> all I want --xinclude to do is, do the xinclude but leave
> the rest of my document untouched.
I don't know how to tell xmllint to not convert the quotes.
But are you sure you need quotes here?
The CSS syntax I use to import a stylesheet is
<style type="text/css">@import url(../../nice.css)</style>
That survives xmllint just fine.
--
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
Caldera International, Inc. fax: (831) 429-1887
email: bobs@caldera.com