Skip to content

XSLT Stylsheet Issue #9: vc:worktype #21

@gerontakos

Description

@gerontakos

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions