cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

PTC Arbortext editor : Validation in attribute

arifk
2-Guest

PTC Arbortext editor : Validation in attribute

Hi all,

 

Please any one let me know how to implement validation, as i have a xml document and the xml document has hierarchy of element as parent and child element and have the attribute as whose value can be Y or N.

 

If the parent have the attribute value as Y and if the child element have also attribute value as Y, so here parent has the attribute value as Y, so no need to have attribute value as Y in child.

 

In this case how can i show a message to user that, no use of making the attribute value as Y, if the parent is having already.

 

Can anyone help me on this?

 

1 REPLY 1

Interesting use-case! The easiest way to achieve this would be via Schematron validation. Arbortext Editor supports this if you place the .sch file in the doctype folder(s) for the document types you need to add this feature. Your .sch file would simply "report" the bad pattern of Y-in-Y to the user.

Top Tags