<?xml version="1.0" encoding="UTF-8"?>
<!-- Sample configuration for grant/revoke Study Permissions on Series Stored event -->
<xsl:output method="xml"/>
<!-- overwritten by application with actual value -->
<xsl:param name="calling" select="'SAMPLE_MOD'" />
<xsl:template match="/dataset">
<permissions>
<xsl:variable name="refphy" select="attr[@tag='00080090']"/>
<xsl:choose>
<xsl:when test="$refphy='DR-1">
<grant role="DR-1" action="Q,R,A" suid="{attr[@tag='0020000D']}"/>
</xsl:when>
<xsl:when test="$refphy='DR-2">
<grant role="DR-2" action="Q,R,A" suid="{attr[@tag='0020000D']}"/>
</xsl:when>
<xsl:otherwise>
<grant role="UnkownRefPhy" action="Q,R,A" suid="{attr[@tag='0020000D']}"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>