Skip to content

fixing loc issue per task 1494310 #2225

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 2, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions includes/xsltransform-script.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
```xml
<msxsl:script implements-prefix='xy' language='C#'>
<![CDATA[
// Add code here.
]]>
</msxsl:script>
```
15 changes: 5 additions & 10 deletions xml/System.Xml.Xsl/XslTransform.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
```
<msxsl:script implements-prefix='xy' language='C#'>
<![CDATA[
// Add code here.
]]]><![CDATA[]>
</msxsl:script>
```
> [!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|
Expand Down Expand Up @@ -2793,4 +2788,4 @@ Root node is book.
</Docs>
</Member>
</Members>
</Type>
</Type>