diff --git a/includes/xsltransform-script.md b/includes/xsltransform-script.md new file mode 100644 index 00000000000..44d6b32f455 --- /dev/null +++ b/includes/xsltransform-script.md @@ -0,0 +1,7 @@ + ```xml + + + +``` \ No newline at end of file diff --git a/xml/System.Xml.Xsl/XslTransform.xml b/xml/System.Xml.Xsl/XslTransform.xml index 6b981421f8f..c134a60b2ea 100644 --- a/xml/System.Xml.Xsl/XslTransform.xml +++ b/xml/System.Xml.Xsl/XslTransform.xml @@ -85,16 +85,11 @@ - The `msxsl:script` element must include an `implements-prefix` attribute that contains the prefix representing the namespace associated with the script block. This namespace must be defined within the style sheet. A style sheet can include multiple script blocks which are grouped by namespace. You cannot have script blocks with multiple languages within the same namespace. Script blocks can call a function defined in another script block, provided the script blocks reside within the same namespace. The contents of a script block are parsed according to the rules and syntax of the scripting language (supplied by the `language` attribute). For example, if you had a C# script block, comments would be prefixed by the `//` characters. The comments must be valid XML content. - `Note` It is recommended that you wrap script blocks in a CDATA section. - -``` - - - -``` +> [!NOTE] +> It is recommended that you wrap script blocks in a CDATA section. + [!INCLUDE [xsltransform-script](~/includes/xsltransform-script.md)] + Functions can be declared within the `msxsl:script` element. The following table shows the namespaces that are supported by default. |Supported Namespaces|Description| @@ -2793,4 +2788,4 @@ Root node is book. - \ No newline at end of file +