Jaa


Defining the XSLT Content Formatter

The XSLT content formatter is the standard content formatter provided with Notification Services. You must configure the XSLT content formatter for each notification class that uses it.

Properties

Use the following properties and values when defining an XSLT content formatter:

  • ClassName (required) must be XsltFormatter.
  • Do not use the AssemblyName property for standard content formatter information.

Arguments

The XSLT content formatter takes three named arguments as initialization parameters:

  • XsltBaseDirectoryPath (required) specifies the directory that serves as the root location of all of your XSLT files.
  • XsltFileName (required) specifies the name of the XSLT file used to transform the raw notification data into the appropriate format for display.
  • DisableEscaping (optional) provides a Boolean value that indicates that the event data contains XML or HTML data, and prevents further transformation of the data. The default is false.

Example

The following example shows how to define an XSLT content formatter in an application definition file (ADF):

<ContentFormatter>
    <ClassName>XsltFormatter</ClassName>
    <Arguments>
        <Argument>
            <Name>XsltBaseDirectoryPath</Name>
            <Value>C:\TransformDirectory</Value>
        </Argument>
        <Argument>
            <Name>XsltFileName</Name>
            <Value>StockTransform.xsl</Value>
        </Argument>
        <Argument>
            <Name>DisableEscaping</Name>
            <Value>true</Value>
        </Argument>
    </Arguments>
</ContentFormatter>

See Also

Concepts

Configuring Content Formatters
Creating XSLT Files
XSLT File Locations

Other Resources

XSLT Content Formatter
Defining Notification Classes
Defining Notification Services Applications

Help and Information

Getting SQL Server 2005 Assistance