Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old September 2nd, 2008, 03:35 PM
stuart.kerrigan@gmail.com
Guest
 
Posts: n/a
Default XInclude Problem

Greetings all,

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

<rubbishtags>
<mcs:document>

--- xml code here ----

</mcs:document>

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)" /
Quote:
>
<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?

Regards,

Stuart
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles