-->>
In the schematron line:
test='templateId[@root="2.16.840.1.113883.10.20.1.5"]'
the templateId is missing the 'cda:' namespace prefix.
<<--