Michael Glavassevich schrieb am 31.03.2009 um 10:09:01 (-0400): > Michael Ludwig <mil...@gmx.de> wrote on 03/28/2009 12:39:14 PM: > > > Gareth Western schrieb am 02.02.2009 um 22:20:40 (+0000): > > > 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 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. > > > > The answer is probably too late, but I just learnt about the entity > > business that was saved from SGML into XML, and it might come in > > quite handy here. > > Depends on your scenario. I recall Gareth needed more than what > Xerces' current XInclude implementation currently supports. General > entities provide even less than that.
Hi Michael, it certainly does depend on the scenario. Gareth seemed to want to include the document without the document element <function-set> as that would have resulted in a schema violation. Freeing the data underneath <function-set> from the document grip and putting it in an external general parsed entity, which isn't constrained to conform to an XML document, would have allowed him to easily include it in any number of documents, which just consist of the internal or external subset, the document element, and the entity references. But I may have overlooked something. Cheers, Michael --------------------------------------------------------------------- To unsubscribe, e-mail: j-users-unsubscr...@xerces.apache.org For additional commands, e-mail: j-users-h...@xerces.apache.org