[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Compare logical expressions with XPath/XSLT

Subject: Re: Compare logical expressions with XPath/XSLT
From: "Liam R. E. Quin liam@xxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 7 Mar 2019 18:35:21 -0000
Re:  Compare logical expressions with XPath/XSLT
On Thu, 2019-03-07 at 15:54 +0000, Michael MC<ller-Hillebrand
mmh@xxxxxxxxx wrote:

> We have larger objects (documents) and many child objects (chapters),
> and both can have a property, let's call it "Project Name". The task
> is to find conflicts between the document's and the chapter's project
> setting. Behind each project name there is a configurable boolean
> expression using AND, OR and NOT, which defines whether two projects
> may match or not.

One approach might be to translate the constraints to a constraint
language -- alloy, prolog, etc -- and let that do the work.

This looks a lot like configuration management (wasn't the service
modeling language, SML, in this area?).

But you could also categorize the products into compatibility sets:
whenever there's a P that requires A AND NOT B, A and B must be in
separate sets for P, and any product Q that requires B and that is
itself required means you have a conflict. Since this is transitive,
i'd possibly write a recursive function to compute it for one product,
and then call that on each product in turn. But ibm saying that without
having thought abuot it very deeply.

There's a lot of redundancy; use the saxon memo pragma.

The word subset is perhaps confusing; better to say the constraints are
not mutually satisfiable.


Liam Quin, https://www.delightfulcomputing.com/
Available for XML/Document/Information Architecture/XSLT/
XSL/XQuery/Web/Text Processing/A11Y training, work & consulting.
Web slave for vintage clipart http://www.fromoldbooks.org/

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.