Hi,
I have found the solution for my problem. If I swith the context to element telecom then it works easily. However, Roger Costello (Who has provided nice schematron tutorials over internet) has given me another solution. to write rule on individual telecom element. Its given hereunder:
<sch:rule context="author/telecom[starts-with(@value, ''TEL'')]>...</sch:rule>
<sch:rule context="author/telecom[starts-with(@value, ''FAX'')]>...</sch:rule>
<sch:rule context="author/telecom[starts-with(@value, ''MAILTO'')]>...</sch:rule>
I am posting this because it might help some other fellow.
Regards,
Qarshi
I have found the solution for my problem. If I swith the context to element telecom then it works easily. However, Roger Costello (Who has provided nice schematron tutorials over internet) has given me another solution. to write rule on individual telecom element. Its given hereunder:
<sch:rule context="author/telecom[starts-with(@value, ''TEL'')]>...</sch:rule>
<sch:rule context="author/telecom[starts-with(@value, ''FAX'')]>...</sch:rule>
<sch:rule context="author/telecom[starts-with(@value, ''MAILTO'')]>...</sch:rule>
I am posting this because it might help some other fellow.
Regards,
Qarshi