Skip to content

Commit

Permalink
add mode='#all' to template, closes #45
Browse files Browse the repository at this point in the history
the default mode is rarely touched in this Stylesheet since the initial match template at https://github.com/Edirom/MerMEId/blob/de50ec700d7eead0514d22fe601979e2a0ce437f/filter/xsl/filter_put.xsl#L37 only applies templates recursively in the "convertEntities" mode.
NB: This might be an issue for several other templates (e.g. "m:expression") as well!
  • Loading branch information
peterstadler committed May 14, 2021
1 parent 1db4e2b commit 8b9dfb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filter/xsl/filter_put.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<xsl:copy-of select="$new_doc"/>
</xsl:template>

<xsl:template match="m:music">
<xsl:template match="m:music" mode="#all">
<xsl:element name="music" namespace="http://www.music-encoding.org/ns/mei">
<xsl:choose>
<!-- If no new content has been uploaded into <music>, reinstate the original content from the database. -->
Expand Down

0 comments on commit 8b9dfb6

Please sign in to comment.