[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ProgSoc] XML languages



On Thu, Sep 27, 2007 at 03:10:12PM +1000, John Elliot wrote:
> Thomas Given-Wilson wrote:
> >Maybe something more like:
> >let f = (count (html li)) > 0
> >results = if (f *xmldoc*) then ul *xmldoc*
> 
> result = (f *xmldoc*) ? ul *xmldoc* : nil
> 
> Go on... you know you love it. :)

I don't know that love is the right term for it... :P

> >Again something a bit more complex:
> >let g = fun x -> (x = { <li>one</li>, <li>two</li> })
> >let results = for *each element* in *xmldoc*
> >		if (g *each element*) then li

Does this mean this can't be done to your knowledge, or are you just
passing over because it is trivial based on the above solution?

> You're gonna hate life when you discover that, strictly speaking, 
> character encodings, DTDs, entity definitions, namespaces and CDATA 
> sections are a part of the XML type system. So... you're gonna have to 
> cater for them somehow. That sucks.

Actually that doesn't overly bother me as I don't need to do actual XML,
just show that whatever can be done in XML processing currently I can do
with my stuff.

So... subtyped XML? :P

-
You are subscribed to the progsoc mailing list. To unsubscribe, send a
message containing "unsubscribe" to progsoc-request@xxxxxxxxxxxxxxxxxxx
If you are having trouble, ask owner-progsoc@xxxxxxxxxxxxxxxxxx for help.