oXygen on XP and XInclude subdirectories in DocBook

Hi all, I am new to oXygen and am trying to wrap my head around an XInclude question. I'm planning a proof-of-concept project for DocBook. My local environment is Windows XP and I am committing files to our Linux-based public repository via svn. where all hrefs are in the same subdirectory it's easy to see how to do this. I'm trying to clarify how to make this happen in Docbook using oXygen (and -- where this becomes an oXygen question -- get them to validate). In the xi:include statements, do I use a pattern of file:///directory/filename.xml ...? I include a snippet of work in progress, if that helps clarify my question. <?xml version="1.0" encoding="utf-8"?> <book version="5.0" xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude"> ... etc. ... <xi:include href="/Intro/Introduction.xml" xmlns:xi="http://www.w3.org/2001/XInclude" /> <xi:include href="/Installation/Installation.xml" xmlns:xi="http://www.w3.org/2001/XInclude" /> <xi:include href="/Sysadmin/Administration.xml" xmlns:xi="http://www.w3.org/2001/XInclude" /> -- -- | Karen G. Schneider | Community Librarian | Equinox Software Inc. "The Evergreen Experts" | Toll-free: 1.877.Open.ILS (1.877.673.6457) x712 | kgs@esilibrary.com | Web: http://www.esilibrary.com | Be a part of the Evergreen International Conference, May 20-22, 2009! | http://www.lyrasis.org/evergreen

On 5/11/09 9:05 AM, "Karen Schneider" <kgs@esilibrary.com> wrote:
where all hrefs are in the same subdirectory it's easy to see how to do this. I'm trying to clarify how to make this happen in Docbook using oXygen (and -- where this becomes an oXygen question -- get them to validate). In the xi:include statements, do I use a pattern of file:///directory/filename.xml ...?
You should be using relative paths as long as all the files are reliably relative to each other, even if not in the same directory. If you're managing the source in something like SVN then you should be able to ensure that the files as authored on any machine are always in the right relative place. Given that, then your URLs for the XIncludes can be: href="../somedir/anotherdir/filename.xml" With no need for either "file://" or a leading "/" (which makes the URL absolute). The operating system shouldn't matter as long as you use URL syntax (and not Windows filename syntax) and avoid spaces or other "might need escaping" characters in your URLs. Cheers, Eliot ---- Eliot Kimber | Senior Solutions Architect | Really Strategies, Inc. email: ekimber@reallysi.com <mailto:ekimber@reallysi.com> office: 610.631.6770 | cell: 512.554.9368 2570 Boulevard of the Generals | Suite 213 | Audubon, PA 19403 www.reallysi.com <http://www.reallysi.com> | http://blog.reallysi.com <http://blog.reallysi.com> | www.rsuitecms.com <http://www.rsuitecms.com>
participants (2)
-
Eliot Kimber
-
Karen Schneider