-
Notifications
You must be signed in to change notification settings - Fork 3
Description
The stylesheet seems only to process worktypes that have vc:worktype/@refid. It will not process text strings, and we anticipate most vc:worktype values will be text strings. And it only processes worktypes if they are derived from one of six vocabularies. Finally it outputs the value as the object of rdf:type.
Is that the you we want to leave the stylesheet? (There are a few problems with this; for example, the rdfs:range of rdf:type is rdfs:Class.)
If so, perhaps accommodation could be made for variant values of vc:worktype/@source, as the stylesheet requires “AAT” but none of the validating .xsd files prohibit “aat” (lower case). In other words the stylesheet, at the template xsl:template match="vc:worktypeSet" mode="workType", could have something more forgiving like:
xsl:if test="(@vocab = 'AAT' | @vocab = 'aat' | @vocab = 'Aat') and @refid"