On 01/26/2017 09:57 AM, Grundtvig Nielsen Niels wrote:
It's of course possible to mix profiling attributes excluding contents
and attributes flagging contents in the same profile.
/profiling/about_profiles_files.html#flagging_contents/



Encouraging! what I would like to do is set two attributes – status and
rev – on the same <ph> element, so I can then use easy profiling to say

IF status=new and rev=1r09 THEN include but do not highlight

IF status=new and rev=1r10 THEN include and highlight

IF status=deleted and rev=1r09 THEN do not include

IF status=deleted and rev=1r10 THEN include and highlight



If this sort of evaluation is possible, could you give me a pointer on
how to implement it? I don’t mind if it isn’t, but it would be helpful
to know either way. Thanks in advance!


This is not possible using attribute status, which has a fixed set of values. Here, we need a "recentlydeleted" value in addition to "deleted".

Let's suppose, we replace attribute status="XXX" by attribute otherprops="status=XXX". (Attribute otherprops can have any value, including something like "status=XXX", which clearly expresses the role of otherprops for your use case.)

In this case, please use attribute otherprops to exclude and attribute rev to flag. This gives us:

---
IF otherprops="status=new" and rev=1r09 THEN include but do not highlight

IF otherprops="status=new" and rev=1r10 THEN include and highlight

IF otherprops="status=deleted" and rev=1r09 THEN do not include

IF otherprops="status=recentlydeleted" and rev=1r10 THEN include and highlight
---

Reference: http://www.xmlmind.com/xmleditor/_distrib/doc/profiling/about_profiles_files.html#flagging_contents





--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to