[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Use of CDuce (was: Re: [Demexp-dev] CDuce binding in Makefile.)
From: |
David MENTRE |
Subject: |
Use of CDuce (was: Re: [Demexp-dev] CDuce binding in Makefile.) |
Date: |
Wed, 13 Oct 2004 21:17:15 +0200 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
Hello Serge,
me:
> let d = load_xml "demexp_base.xml" in
> map [d]/<participant_base>_/<participant
> kind="individual">_/<login>String with
> <login>s -> s
Serge Leblanc <address@hidden> writes:
> For map-with function, have a look at :
> http://www.cduce.org/manual_expressions.html#seq
> For understand the Queries XPath-like expressions look at :
> http://www.cduce.org/tutorial_queries.html#xpath
Ok. So if I understand correctly:
- [d]: in the xml file "demexp_base.xml" loaded in variable d;
- for all String nodes under the tree path <participant_base> -->
<participant kind="individual"> --> <login> ("_" means match-all?);
- return the string node element s.
Have I understood?
So, if I'm correct, one can load an arbitrary part of the XML
document? And I suppose we can also modify this arbitrary part
(e.g. rewrite a given login)?
I also suppose that CDuce .cd files can be parameterized by ocaml
variable so, once compiled into ocaml, we could create ad-hoc functions
to manipulate our XML database?
Yours,
d.
--
pub 1024D/A3AD7A2A 2004-10-03 David MENTRE <address@hidden>
5996 CC46 4612 9CA4 3562 D7AC 6C67 9E96 A3AD 7A2A
- [Demexp-dev] CDuce binding in Makefile., Serge Leblanc, 2004/10/10
- Re: [Demexp-dev] CDuce binding in Makefile., David MENTRE, 2004/10/10
- Re: [Demexp-dev] CDuce binding in Makefile., Serge Leblanc, 2004/10/10
- Message not available
- Re: [Demexp-dev] CDuce binding in Makefile., David MENTRE, 2004/10/10
- Re: [Demexp-dev] CDuce binding in Makefile., Serge Leblanc, 2004/10/11
- Re: [Demexp-dev] CDuce binding in Makefile., David MENTRE, 2004/10/11
- Re: [Demexp-dev] CDuce binding in Makefile., skaller, 2004/10/11
- Re: [Demexp-dev] CDuce binding in Makefile., Serge Leblanc, 2004/10/12
- Use of CDuce (was: Re: [Demexp-dev] CDuce binding in Makefile.),
David MENTRE <=
- [Demexp-dev] Re: Use of CDuce, David MENTRE, 2004/10/13
- [Demexp-dev] Re: Use of CDuce, Serge Leblanc, 2004/10/14
- [Demexp-dev] Re: Use of CDuce, David MENTRE, 2004/10/15