Thanks for the tips! I'm getting there slowly ... N
-----Original Message----- From: Hussein Shafie [mailto:[email protected]] Sent: donderdag 26 januari 2017 10:56 To: Grundtvig Nielsen Niels Cc: '[email protected]' Subject: Re: [XXE] taking easy profiles farther 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 ********************************************************************************************* Worldline SA/NV - Chaussee de Haecht 1442 Haachtsesteenweg - 1130 Brussels - Belgium RPM-RPR Bruxelles-Brussel - TVA-BTW BE 0418.547.872 Bankrekening-Compte Bancaire-Bank Account 310-0269424-44 BIC BBRUBEBB - IBAN BE55 3100 2694 2444 "The information contained in this e-mail and any attachment there to be confidential and may contain information which is protected by intellectual property rights. This information is intended for the exclusive use of the recipient(s) named above. This e-mail does not constitute any binding relationship or offer toward any of the addressees. If you are not one of the addressees , one of their employees or a proxy holder entitled to hand over this message to the addressee(s), any use of the information contained herein (e.g. reproduction, divulgation, communication or distribution,...) is prohibited. If you have received this message in error, please notify the sender and destroy it immediately after. The integrity and security of this message cannot be guaranteed and it may be subject to data corruption, interception and unauthorized amendment, for which we accept no liability." -- XMLmind XML Editor Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xmleditor-support

