Oh right, I tried loading xml files with external entity declarations first, and that fails as well. A search on internet turned up the following message:
http://xqzone.marklogic.com/pipermail/general/2009-April/002716.html It tells that only local entity declarations are supported. An xdmp:xml-parse that parses external entities would be great.. :-/ Kind regards, Geert > -----Original Message----- > From: general-boun...@developer.marklogic.com > [mailto:general-boun...@developer.marklogic.com] On Behalf Of > Lee, David > Sent: vrijdag 19 maart 2010 1:03 > To: General Mark Logic Developer Discussion > Subject: RE: [MarkLogic Dev General] How to handle custom > namedentitiesinzipped xml? > > My totally uneducated *guess* is the DTD's will have to > pre-exist in the schemas database. > > > -----Original Message----- > From: general-boun...@developer.marklogic.com > [mailto:general-boun...@developer.marklogic.com] On Behalf Of > Geert Josten > Sent: Thursday, March 18, 2010 5:08 PM > To: General Mark Logic Developer Discussion > Subject: RE: [MarkLogic Dev General] How to handle custom > namedentitiesinzipped xml? > > Just to clarify: I could do the unzipping and parsing outside > MarkLogic Server, but I am interested to know how far I can > get with just the XQuery extensions.. > > Similar case: what if you have an HTTP appserver intended to > receive XML as body of the request, and it happens to contain > a dtd reference that needs to be parsed to resolve entities > contained in the XML? > > The same more or less accounts for encoding that was > specified in the xml declaration, but mismatches the encoding > specified in the HTTP appserver. Is it still being ignored? > There are a few ways around that, but an encoding option for > for instance xdmp:unquote or xdmp:tidy would make things easier. > > In short, I think I am looking for an xdmp:xml-parse function > (or something like that), that takes stringified xml, options > like encoding and dtd path, and returns the parsed result. > Preferably it would not ignore encoding in xml declaration, > and passing in a catalog to resolve dtd paths would be nice > as well. Even better would be adding this behaviour to all > existing xml parsing functions, but that might be more difficult.. > > Any comments welcome.. > > Kind regards, > Geert > > > -----Original Message----- > > From: general-boun...@developer.marklogic.com > > [mailto:general-boun...@developer.marklogic.com] On Behalf Of Lee, > > David > > Sent: donderdag 18 maart 2010 21:34 > > To: General Mark Logic Developer Discussion > > Subject: RE: [MarkLogic Dev General] How to handle custom named > > entitiesinzipped xml? > > > > cool, I must have missed the zip support. > > > > > > -----Original Message----- > > From: general-boun...@developer.marklogic.com > > [mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert > > Josten > > Sent: Thursday, March 18, 2010 4:32 PM > > To: General Mark Logic Developer Discussion > > Subject: RE: [MarkLogic Dev General] How to handle custom named > > entitiesinzipped xml? > > > > Just MarkLogic Server, reading them straight from file-system with > > xdmp functions at the moment.. > > > > Geert > > > > > -----Original Message----- > > > From: general-boun...@developer.marklogic.com > > > [mailto:general-boun...@developer.marklogic.com] On > Behalf Of Lee, > > > David > > > Sent: donderdag 18 maart 2010 21:21 > > > To: General Mark Logic Developer Discussion > > > Subject: RE: [MarkLogic Dev General] How to handle custom named > > > entities inzipped xml? > > > > > > What tool are you using to load zipped XML files ? > > > > > > > > > -----Original Message----- > > > From: general-boun...@developer.marklogic.com > > > [mailto:general-boun...@developer.marklogic.com] On > Behalf Of Geert > > > Josten > > > Sent: Thursday, March 18, 2010 4:13 PM > > > To: General Mark Logic Developer Discussion > > > Subject: [MarkLogic Dev General] How to handle custom named > > entities > > > inzipped xml? > > > > > > Hi, > > > > > > To my knowledge custom named entities in xml files are > resolved by > > > MarkLogic Server as long as there is a doctype pointing to a dtd > > > defining those entities and which is accessible from > > MarkLogic Server > > > (not sure where it starts looking first though). But what > > happens if > > > these xml files are zipped? > > > > > > Kind regards, > > > Geert > > > > > > > > > > > > drs. G.P.H. (Geert) Josten > > > Consultant > > > > > > > > > Daidalos BV > > > Hoekeindsehof 1-4 > > > 2665 JZ Bleiswijk > > > > > > T +31 (0)10 850 1200 > > > F +31 (0)10 850 1199 > > > > > > mailto:geert.jos...@daidalos.nl > > > http://www.daidalos.nl/ > > > > > > KvK 27164984 > > > > > > P Please consider the environment before printing this mail. > > > De informatie - verzonden in of met dit e-mailbericht - is > > afkomstig > > > van Daidalos BV en is uitsluitend bestemd voor de geadresseerde. > > > Indien u dit bericht onbedoeld hebt ontvangen, verzoeken > > wij u het te > > > verwijderen. Aan dit bericht kunnen geen rechten worden ontleend. > > > > > > _______________________________________________ > > > General mailing list > > > General@developer.marklogic.com > > > http://xqzone.com/mailman/listinfo/general > > > _______________________________________________ > > > General mailing list > > > General@developer.marklogic.com > > > http://xqzone.com/mailman/listinfo/general > > > _______________________________________________ > > General mailing list > > General@developer.marklogic.com > > http://xqzone.com/mailman/listinfo/general > > _______________________________________________ > > General mailing list > > General@developer.marklogic.com > > http://xqzone.com/mailman/listinfo/general > > _______________________________________________ > General mailing list > General@developer.marklogic.com > http://xqzone.com/mailman/listinfo/general > _______________________________________________ > General mailing list > General@developer.marklogic.com > http://xqzone.com/mailman/listinfo/general > _______________________________________________ General mailing list General@developer.marklogic.com http://xqzone.com/mailman/listinfo/general