Class XsltTransformComponent
Implements a message pipeline component that transforms the message content using XML Stylesheet Transformation (XSLT).
Inherited Members
Namespace: Nevatech.Vsb.Repository.Processing
Assembly: Nevatech.Vsb.Repository.dll
Syntax
[DataContract(Namespace = "http://schemas.nevatech.com/sentinet/2011/02")]
public sealed class XsltTransformComponent : TransformationComponentBase, IValidator, IEquatable<MessagePipelineComponentBase>, IExtensibleDataObject
Remarks
XSLT online testing tool: http://xslttest.appspot.com/
Constructors
XsltTransformComponent()
Declaration
public XsltTransformComponent()
Fields
ElementName
Name of the root element when object is serialized to XML.
Declaration
public const string ElementName = "TRANSFORM-XSLT"
Field Value
| Type | Description |
|---|---|
| string |
Properties
StyleSheet
Gets or sets the XSLT style sheet.
Declaration
[DataMember(Name = "Data")]
public string StyleSheet { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
Equals(MessagePipelineComponentBase)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(MessagePipelineComponentBase other)
Parameters
| Type | Name | Description |
|---|---|---|
| MessagePipelineComponentBase | other | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool | True if the specified object is equal to the current object; otherwise, false. |
Overrides
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool | True if the specified object is equal to the current object; otherwise, false. |
Overrides
GetHashCode()
Returns hash code for the value of this instance.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | Hash code for the value of this instance. |
Overrides
ProcessMessage(MessagePipelineContext)
Transforms the message content using XML Stylesheet Transformation (XSLT).
Declaration
[SuppressMessage("Microsoft.Usage", "CA2202:Do not dispose objects multiple times")]
[SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes")]
[SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope")]
public override MessagePipelineResult ProcessMessage(MessagePipelineContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| MessagePipelineContext | context | Provides the message processing context. |
Returns
| Type | Description |
|---|---|
| MessagePipelineResult | Value indicating if message should continue on its way to the recipient or must be stopped and returned to the sender. |
Overrides
ToString()
Returns string representation of the object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | String representing the object's content. |
Overrides
Validate()
Evaluates the state of the object.
Declaration
public override bool Validate()
Returns
| Type | Description |
|---|---|
| bool | True if state is valid; otherwise, false. |