This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes XInclude and XPointer Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "XInclude and XPointer" Watch "XInclude and XPointer" New topic
Author

XInclude and XPointer

Gareth Western
Ranch Hand

Joined: Apr 07, 2004
Posts: 45
I have an application which uses Xerces-J (2.9.0) to parse a large xml document which I'd like to split into several smaller files just to make it easier to manage. The main file looks like this:

Each of the included files is similar to the following:

The schema prevents me from including the entire inner file, as that would result in nested function-set elements, so I want to only include the "function" elements from each inner file. XPointer looks like it would be the answer to this, changing the main file to look something like:

... however according to the Xerces XInclude FAQ only the "element()" scheme is supported. Does this mean I can only reference specific individual elements from the included file, as opposed to the full range of functions? For example, the following works perfectly, but only includes the first function from PrivateFunctions.xml:

Any suggestions as to how to accomplish what I'm trying to do? Let me know if you have any questions / if I haven't explained the situation very well.

Thanks!

Gareth
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: XInclude and XPointer
 
Similar Threads
XML Validation
Help me for xsd creation
Xinclude, read 2 xml files
importing one xml in another
How to use XInclude with xalan/xerces for XSD validation and XSLT?