Creating a custom message based in conditions witth ACL
Feb 08, 2024
12:30 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Feb 08, 2024
12:30 PM
Creating a custom message based in conditions witth ACL
I have a lot of XML files that are revised by random people.
These XML files can have the element PARA and these PARA can have a list of children.
When the PARA has a FOO child, it is expected that this FOO will be around spaces, for example:
<PARA>SOME PARA TEXT <FOO>SOME FOO TEXT</FOO> MORE PARA TEXT.</PARA>
But if there aren't spaces around, it would be ideal to show a message to the person who is reviewing the XML. This must happen for all PARA children.
Is there a way to do such a thing with ACL?
Labels:
- Labels:
-
Content Authoring
1 REPLY 1
Feb 12, 2024
04:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Feb 12, 2024
04:21 AM
This one might be best done as a regular expression check. Look at the string (tagged text) representation of the XML and look for any <FOO> text that has something before it. For </FOO> with anything after it. The "\S+" character class would catch one or more non-space characters.
