XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] What is the equivalent functional programming function(s)for hopping from element to element via XML "IDREF" references (or XSD "base"references)


> If I start at<BookSigning>  then I want to hop to the<Book>  that is referenced by the "idref" attribute.
>
>
> How do I cast this recurring pattern into a functional programming mindset? For example, how would it be viewed from the Haskell mindset?
>

Try getting rid of temporal language - words like "start" and "then" 
suggest you're too concerned with the "how" rather than the "what" of 
the problem. Anthropomorphic language is best avoided too.

Instead, describe the input and output of your task and their 
relationship to each other. You haven't actually said anything about 
what you want to deliver as a result of all this hopping around: it 
looks like activity without a purpose.

Michael Kay
Saxonica


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS