Skip to content

Commit 1b4c8b5

Browse files
WilliamAntonRohmBillWagner
authored andcommitted
fixing loc issue per task 1494310 (#2225)
* fixing loc issue per task 1494310 * fixed Note syntax Co-Authored-By: WilliamAntonRohm <[email protected]>
1 parent 9b59dbd commit 1b4c8b5

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

includes/xsltransform-script.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
```xml
2+
<msxsl:script implements-prefix='xy' language='C#'>
3+
<![CDATA[
4+
// Add code here.
5+
]]>
6+
</msxsl:script>
7+
```

xml/System.Xml.Xsl/XslTransform.xml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -85,16 +85,11 @@
8585
8686
- 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.
8787
88-
`Note` It is recommended that you wrap script blocks in a CDATA section.
89-
90-
```
91-
<msxsl:script implements-prefix='xy' language='C#'>
92-
<![CDATA[
93-
// Add code here.
94-
]]]><![CDATA[]>
95-
</msxsl:script>
96-
```
88+
> [!NOTE]
89+
> It is recommended that you wrap script blocks in a CDATA section.
9790
91+
[!INCLUDE [xsltransform-script](~/includes/xsltransform-script.md)]
92+
9893
Functions can be declared within the `msxsl:script` element. The following table shows the namespaces that are supported by default.
9994
10095
|Supported Namespaces|Description|
@@ -2793,4 +2788,4 @@ Root node is book.
27932788
</Docs>
27942789
</Member>
27952790
</Members>
2796-
</Type>
2791+
</Type>

0 commit comments

Comments
 (0)