remove xslt 2 functions -- replace, upper-case, lower-case, exists, xs:decimal, xs:integer.
exists logic changed to count()>0, just <if test='node', or string-length()>0 if the node has become a TreeFragment
Simplified logic in feature catalog citation, fixed logic in geographicElement//polygon