XSLT Conversion Command Filter

package ecs_xml

Definition

Description

If event matches Condition convert the XML document in FieldName with the XSLT Command and place the result into FieldName.

 

 

Comments

If either FieldName or Command is missing, blank or invalid, do nothing.

 

Example

<filter objectId="xsltCommand" type="XSLTConversionCommandFilter">
	<parameter autoSetDescription="true" comments="Add comments for Condition..." description="Match all Events" type="Condition">
		<negatePrimaryCondition>false</negatePrimaryCondition>
		<conditionRelation>All</conditionRelation>
	</parameter>
	<parameter type="FieldName">ev:rss.xml</parameter>
	<parameter type="Command">
		&lt;?xml version="1.0" encoding="UTF-8"?&gt;&#13;
		&lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;&#13;
		&lt;xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/&gt;&#13;
		&lt;!-- simply copy the message to the result tree --&gt;&#13;
		&lt;xsl:template match="/"&gt;&#13;
			&lt;xsl:for-each select="rss/channel/item"&gt;&#13;
				&lt;event&gt;&#13;
				&lt;item.title&gt;&#13;
				&lt;xsl:value-of select="title"/&gt;&#13;
				&lt;/item.title&gt;&#13;
				&lt;item.link&gt;&#13;
				&lt;xsl:value-of select="link"/&gt;&#13;
				&lt;/item.link&gt;&#13;
				&lt;item.desc&gt;&#13;
				&lt;xsl:value-of select="description"/&gt;&#13;
				&lt;/item.desc&gt;&#13;
				&lt;/event&gt;&#13;
			&lt;/xsl:for-each&gt;&#13;
		&lt;/xsl:template&gt;&#13;
		&lt;/xsl:stylesheet&gt;&#13;
	</parameter>
	<parameter type="FieldName">ev:events</parameter>
</filter>