XInclude Problem

Discussion in 'XML' started by stuart.kerrigan@gmail.com, Sep 2, 2008.

  1. Guest

    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)" /
    >

    <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
     
    , Sep 2, 2008
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Erdem Guven

    XInclude

    Erdem Guven, Aug 12, 2004, in forum: XML
    Replies:
    1
    Views:
    783
    Matthias Jung
    Aug 12, 2004
  2. CB
    Replies:
    1
    Views:
    687
    Igor Zlatkovic
    Aug 25, 2004
  3. SL
    Replies:
    0
    Views:
    691
  4. tsterkel
    Replies:
    0
    Views:
    597
    tsterkel
    Apr 25, 2005
  5. rene
    Replies:
    3
    Views:
    1,386
  6. Larry
    Replies:
    1
    Views:
    1,525
    Richard Tobin
    Sep 20, 2005
  7. Andi

    SAXParser xinclude problem

    Andi, Dec 1, 2008, in forum: Java
    Replies:
    6
    Views:
    2,277
  8. RolfK
    Replies:
    0
    Views:
    1,243
    RolfK
    Feb 6, 2009
Loading...