Skip to content

Commit

Permalink
Normalise attributes in remd namespace for production aggregates
Browse files Browse the repository at this point in the history
See ukf/ukf-meta#143.
  • Loading branch information
iay committed Dec 2, 2019
1 parent 68087c1 commit 6bfeaa9
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 0 deletions.
21 changes: 21 additions & 0 deletions mdx/uk/ns_norm_export.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,27 @@
</xsl:template>


<!--
***************************************
*** ***
*** R E M D N A M E S P A C E ***
*** ***
***************************************
-->


<!--
@remd:*
Normalise namespace to not use a prefix. Applies to attributes only.
-->
<xsl:template match="@remd:*">
<xsl:attribute name="remd:{local-name()}" namespace="http://refeds.org/metadata">
<xsl:value-of select="."/>
</xsl:attribute>
</xsl:template>


<!--
***************************************
*** ***
Expand Down
21 changes: 21 additions & 0 deletions mdx/uk/ns_norm_export_preview.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,27 @@
</xsl:template>


<!--
***************************************
*** ***
*** R E M D N A M E S P A C E ***
*** ***
***************************************
-->


<!--
@remd:*
Normalise namespace to not use a prefix. Applies to attributes only.
-->
<xsl:template match="@remd:*">
<xsl:attribute name="remd:{local-name()}" namespace="http://refeds.org/metadata">
<xsl:value-of select="."/>
</xsl:attribute>
</xsl:template>


<!--
***************************************
*** ***
Expand Down
21 changes: 21 additions & 0 deletions mdx/uk/ns_norm_uk.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,27 @@
</xsl:template>


<!--
***************************************
*** ***
*** R E M D N A M E S P A C E ***
*** ***
***************************************
-->


<!--
@remd:*
Normalise namespace to not use a prefix. Applies to attributes only.
-->
<xsl:template match="@remd:*">
<xsl:attribute name="remd:{local-name()}" namespace="http://refeds.org/metadata">
<xsl:value-of select="."/>
</xsl:attribute>
</xsl:template>


<!--
***************************************
*** ***
Expand Down

0 comments on commit 6bfeaa9

Please sign in to comment.