Skip to content

Commit

Permalink
Merge pull request music-encoding#1509 from rettinghaus/fix/canonical
Browse files Browse the repository at this point in the history
utils: fix url creation for processing instructions in canonicalized file
  • Loading branch information
bwbohl authored Jul 26, 2024
2 parents 6c5e761 + f831844 commit ac400fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/canonicalization/copy.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

<xsl:template match="/processing-instruction('xml-model')" mode="cleanup">
<xsl:variable name="pi-value.tokens" select="tokenize(., ' ')"/>
<xsl:variable name="pi-href" select="replace($pi-value.tokens[1], '&quot;validation/', '../../../source/&quot;validation/' )"/>
<xsl:variable name="pi-href" select="replace($pi-value.tokens[1], '&quot;validation/', '&quot;../source/validation/')"/>
<xsl:text>&#xa;</xsl:text>
<xsl:processing-instruction name="xml-model">
<xsl:value-of select="$pi-href, $pi-value.tokens[position() > 1]" separator=" "/>
Expand Down

0 comments on commit ac400fe

Please sign in to comment.