OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: Relative Paths?


At 10:28 2003 03 19 -0800, Galen Boyer wrote:
>On Wed, 19 Mar 2003, pgrosso@arbortext.com wrote:
>> Relative paths are relative to the base URI which--in the
>> absence of other info (such as in your case)--
>
>Well, I could cut-n-paste the whole thing in, but that would piss alot
>of people off.
>
>> is the resource in which they were found.
>> 
>> So in the first case, images-db/schema_picture.bmp is relative
>> to dbms/docs/database.xmldoc and in the second case it is
>> relative to your document.
>
>So, in a subdocument, I must either do fully qualified paths or make
>relative references from the parent document?

That's not how I'd say it.  In particular, I don't know what
you mean by "make relative references from the parent document."

In each entity, paths should be relative to the location of that entity.

But since you did something and it works, I gather you figured it out.

>    Hm... (Gives it a go)
>
>Yep, that works.  Thanks, I have a way to proceed.
>
>The bummer is that a need to restructure a book that includes all sorts
>of subdocuments wouldn't involve just reworking xml tags, but also the
>data within those chapters and subsections.  Well, I guess it is
>attribute data of the xml tags, and not actual data.  Hm...
>
>Is there anyway for a subdocument to use a predefined entity that
>represents a path and prepend that to the appropriate files to be
>referenced. (ie, in a subdocument, and continuing with my image example,
>I tried the following which failed, but the idea is what I'd like to
>accomplish)
>
><imageobject>
>   <imagedata fileref="&database_doc_dir;/images-db/schema_picture.bmp"/>
></imageobject>


Something like that could be made to work.  

See also XML Base [1], though not all tools support it.

paul

[1] http://www.w3.org/TR/xmlbase/




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]