File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4242 <xsl : text >
 }
 </xsl : text >
4343 </xsl : template >
4444
45+ <xsl : template name =" escape-backslashes" >
46+ <xsl : param name =" text" />
47+ <xsl : choose >
48+ <xsl : when test =" contains($text, '\')" >
49+ <xsl : value-of select =" substring-before($text, '\')" />
50+ <xsl : text >\\</xsl : text >
51+ <xsl : call-template name =" escape-backslashes" >
52+ <xsl : with-param name =" text" select =" substring-after($text, '\')" />
53+ </xsl : call-template >
54+ </xsl : when >
55+ <xsl : otherwise >
56+ <xsl : value-of select =" $text" />
57+ </xsl : otherwise >
58+ </xsl : choose >
59+ </xsl : template >
60+
4561 <xsl : template match =" mc:media" >
4662 <xsl : param name =" level" />
4763 <xsl : param name =" attributes" />
5672 <xsl : text >{</xsl : text >
5773 <xsl : value-of select =" substring($indent, 1, 1 + 4 + $level * 2)" />
5874 <xsl : text >"ref": "</xsl : text >
59- <xsl : value-of select =" @ref" />
75+ <xsl : call-template name =" escape-backslashes" >
76+ <xsl : with-param name =" text" select =" @ref" />
77+ </xsl : call-template >
6078 <xsl : text >"</xsl : text >
6179 <xsl : apply-templates select =" mc:implementationChecks|mc:policyChecks" >
6280 <xsl : with-param name =" level" select =" $level + 2" />
You can’t perform that action at this time.
0 commit comments