Hi, 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:
<function-set xmlns:xi="http://www.w3.org/2001/XInclude"> <xi:include href="PrivateFunctions.xml" /> <xi:include href="GroupFunctions.xml" /> ... </function-set> Each of the included files is similar to the following: <function-set> <function code="FC1000" /> <function code="FC1001" /> ... </function-set> The schema prevents me from including the entire inner file, as that would result in nested function-set elements, so ideally i'd like to only include the functions from each inner file. XPointer looks like it would be the answer to this, changing the main file to look something like: <function-set xmlns:xi="http://www.w3.org/2001/XInclude"> <xi:include href="PrivateFunctions.xml" xpointer="/function-set/*" /> ... </function-set> ... 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: <function-set xmlns:xi="http://www.w3.org/2001/XInclude"> <xi:include href="PrivateFunctions.xml" xpointer="element(/1/1)" /> </function-set> 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 --------------------------------------------------------------------- To unsubscribe, e-mail: j-users-unsubscr...@xerces.apache.org For additional commands, e-mail: j-users-h...@xerces.apache.org