Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > XInclude Problem

Thread Tools

XInclude Problem
Posts: n/a
Greetings all,

I have a problem in that I have a series of xml documents as follows:-


--- xml code here ----


I would like to use a seperate xml file to include the xml documents
(minus the rubbish tags as they mess up my formatting) and have been
experimenting with a page containing code as follows:-

<xi:include href="intro/Introduction.xml" xpointer="xpointer(//
mcs:content)" />
<xi:include href="degree-struct/Struct.xml" xpointer="xpointer(//p)" /

<xi:include href="degree-struct/indexNewDeg.xml" xpointer="xpointer(//
p)" />

While the first line gives an error, the others work but do not
include header information etc. How do I go about giving xpointer the
correct arguments to only look at the contents of mcs:document?


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
xinclude / xpointer problem (validation by Altova XML Spy 2008 Sp1) RolfK XML 0 02-06-2009 05:30 PM
SAXParser xinclude problem Andi Java 6 12-03-2008 09:43 AM
[xinclude] How to use indirection in xinclude like "Catalog" in the entity world ? SL XML 0 02-15-2005 01:58 PM
XInclude Erdem Guven XML 1 08-12-2004 07:51 AM
Xinclude (was: Re: Nested <!ENTITY> Tags?) Ed Dennison XML 0 09-12-2003 07:47 PM