Hi Mohamad,
If you have an XSLT that can convert a single YAML text document into its YAXML representation, than it should be trivial to hook that XSLT into an MLCP ingest to have it applied while importing documents. That XSLT shouldn't be much more difficult than the one going the other way, though it might help make an EBNF for YAML and feed that into a parser generator, for example bottlecap.de/rex.. Kind regards, Geert Van: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] Namens David Ennis Verzonden: dinsdag 6 mei 2014 20:43 Aan: MarkLogic Developer Discussion Onderwerp: Re: [MarkLogic Dev General] YAML support HI. This might be a starting point for you: It is a draft guideline of an XML representation of YAML - called YAXML. http://yaml.org/xml.html The sample shows the other way around - XML ->xslt -> yaml, but it does outline how the various parts of a YAML file are represented in XML. So, if you already have a parser for your YAML files, perhaps they could be used to pre-process them to YAXML format before ingestion. The sample stylesheet on the website should be a starting point of being able to transform back to YAML on the way out of MarkLogic. Looking forward: MarkLogic 8 promises to deliver server-side javascript support.. Considering that there are already great Javascript YAML libraries, it would seem that in the future, you could harness one of these to convert YAML to YAXML on ingestion.... Kind Regards, David On 6 May 2014 15:56, Mohamad Thahir <thahirmoha...@gmail.com <mailto:thahirmoha...@gmail.com> > wrote: Does MarkLogic support YAML for ingestion? Can someone recommend best way to ingest YAML docs Sent from my iPhone _______________________________________________ General mailing list General@developer.marklogic.com <mailto:General@developer.marklogic.com> http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general