My totally uneducated *guess* is the DTD's will have to pre-exist in the
schemas database.


-----Original Message-----
From: [email protected]
[mailto:[email protected]] 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: [email protected] 
> [mailto:[email protected]] 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: [email protected]
> [mailto:[email protected]] 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: [email protected]
> > [mailto:[email protected]] 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: [email protected]
> > [mailto:[email protected]] 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:[email protected]
> > 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
> > [email protected]
> > http://xqzone.com/mailman/listinfo/general
> > _______________________________________________
> > General mailing list
> > [email protected]
> > http://xqzone.com/mailman/listinfo/general
> > _______________________________________________
> General mailing list
> [email protected]
> http://xqzone.com/mailman/listinfo/general
> _______________________________________________
> General mailing list
> [email protected]
> http://xqzone.com/mailman/listinfo/general
> _______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to