<?xml version="1.0" encoding="UTF-8"?>

<!-- This is the first ISM-RESOURCE-ELEMENT in the document -->
<sch:let name="ISM_RESOURCE_ELEMENT" xmlns:sch="http://purl.oclc.org/dsdl/schematron"
    value="(for $each in (//*) return if($each/@ism:resourceElement=true()) then $each else null)[1]"/>  
<!-- codeDesc
  Traverse each element and return a list of all elements containing the attribute
  resourceElement with a value of [true]. Then take the first one.
-->