Skip to content

Commit 935ac84

Browse files
authored
replace problematic cdata section (#2019)
1 parent 79c2a43 commit 935ac84

File tree

1 file changed

+3
-22
lines changed

1 file changed

+3
-22
lines changed

xml/System.Xml.Xsl/XslCompiledTransform.xml

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -584,27 +584,8 @@ xslt.Load(typeof(bookOrders));
584584
> [!NOTE]
585585
> The "Transform" assembly used in this example was built using the xsltc.exe utility. For detailed information on using this command line tool, see [How to: Perform an XSLT Transformation by Using an Assembly](~/docs/standard/data/xml/how-to-perform-an-xslt-transformation-by-using-an-assembly.md).
586586
587-
The code example above uses the following transformation:
588-
589-
```
590-
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
591-
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
592-
xmlns:user="urn:my-scripts">
593-
<msxsl:script language="C#" implements-prefix="user">
594-
<![CDATA[
595-
public double modifyPrice(double price){
596-
price*=0.9;
597-
return price;
598-
}
599-
]]]><![CDATA[]>
600-
</msxsl:script>
601-
<xsl:template match="Root">
602-
<Root xmlns="">
603-
<Price><xsl:value-of select="user:modifyPrice(Price)"/></Price>
604-
</Root>
605-
</xsl:template>
606-
</xsl:stylesheet>
607-
```
587+
The previous code example uses the following transformation:
588+
[!code-xml[XsltDynamicMethodLoad-xslt](~/samples/snippets/csharp/VS_Snippets_Data/XsltDynamicMethodLoad/CS/Transform.xslt)]
608589
609590
]]></format>
610591
</remarks>
@@ -1841,4 +1822,4 @@ xslt.Load(typeof(bookOrders));
18411822
</Docs>
18421823
</Member>
18431824
</Members>
1844-
</Type>
1825+
</Type>

0 commit comments

Comments
 (0)