blob: e446d6670e5176d9f811f009e75a3a9e052b2a6c [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="SMILA/Documentation/Bundle org.eclipse.smila.processing.pipelets.xmlprocessing,SMILA/Development Guidelines/How to write a Pipelet" />
<link rel="shortcut icon" href="http://wiki.eclipse.org/SMILA/Documentation/favicon.ico" />
<link rel="search" type="application/opensearchdescription+xml" href="http://wiki.eclipse.org/opensearch_desc.php" title="Eclipsepedia (English)" />
<link rel="alternate" type="application/rss+xml" title="Eclipsepedia RSS Feed" href="http://wiki.eclipse.org/index.php?title=Special:Recentchanges&amp;feed=rss" />
<link rel="alternate" type="application/atom+xml" title="Eclipsepedia Atom Feed" href="http://wiki.eclipse.org/index.php?title=Special:Recentchanges&amp;feed=atom" />
<title>SMILA/Documentation/Bundle org.eclipse.smila.processing.pipelets.xmlprocessing - Eclipsepedia</title>
<style type="text/css" media="screen,projection">/*<![CDATA[*/ @import "/skins/eclipsenova/novaWide.css?116"; /*]]>*/</style>
<link rel="stylesheet" type="text/css" media="print" href="http://wiki.eclipse.org/skins/eclipsenova/eclipsenovaPrint.css?116" />
<link rel="stylesheet" type="text/css" media="handheld" href="http://wiki.eclipse.org/skins/eclipsenova/handheld.css?116" />
<link rel="stylesheet" type="text/css" href="http://wiki.eclipse.org/skins/eclipsenova/Nova/css/header.css" media="screen" />
<link rel="stylesheet" type="text/css" href="http://wiki.eclipse.org/skins/eclipsenova/tabs.css" media="screen" />
<link rel="stylesheet" type="text/css" href="http://wiki.eclipse.org/skins/eclipsenova/Nova/css/visual.css" media="screen" />
<link rel="stylesheet" type="text/css" href="http://wiki.eclipse.org/skins/eclipsenova/Nova/css/layout.css" media="screen" />
<link rel="stylesheet" type="text/css" href="http://wiki.eclipse.org/skins/eclipsenova/Nova/css/footer.css" media="screen" />
<!--[if IE]><link rel="stylesheet" type="text/css" href="/skins/eclipsenova/IEpngfix.css" media="screen" /><![endif]-->
<!--[if lt IE 5.5000]><style type="text/css">@import "/skins/eclipsenova/IE50Fixes.css?116";</style> <![endif]-->
<!--[if IE 5.5000]><style type="text/css">@import "/skins/eclipsenova/IE55Fixes.css?116";</style><![endif]-->
<!--[if IE 6]><style type="text/css">@import "/skins/eclipsenova/IE60Fixes.css?116";</style><![endif]-->
<!--[if IE 7]><style type="text/css">@import "/skins/eclipsenova/IE70Fixes.css?116";</style><![endif]-->
<!--[if lt IE 7]><script type="text/javascript" src="/skins/common/IEFixes.js?116"></script>
<meta http-equiv="imagetoolbar" content="no" /><![endif]-->
<script type= "text/javascript">/*<![CDATA[*/
var skin = "eclipsenova";
var stylepath = "/skins";
var wgArticlePath = "/$1";
var wgScriptPath = "";
var wgScript = "/index.php";
var wgServer = "http://wiki.eclipse.org";
var wgCanonicalNamespace = "";
var wgCanonicalSpecialPageName = false;
var wgNamespaceNumber = 0;
var wgPageName = "SMILA/Documentation/Bundle_org.eclipse.smila.processing.pipelets.xmlprocessing";
var wgTitle = "SMILA/Documentation/Bundle org.eclipse.smila.processing.pipelets.xmlprocessing";
var wgAction = "view";
var wgRestrictionEdit = [];
var wgRestrictionMove = [];
var wgArticleId = "15199";
var wgIsArticle = true;
var wgUserName = null;
var wgUserGroups = null;
var wgUserLanguage = "en";
var wgContentLanguage = "en";
var wgBreakFrames = false;
var wgCurRevisionId = "284067";
var wgVersion = "1.12.0";
var wgEnableAPI = true;
var wgEnableWriteAPI = false;
/*]]>*/</script>
<script type="text/javascript" src="http://wiki.eclipse.org/skins/common/wikibits.js?116"><!-- wikibits js --></script>
<!-- Performance mods similar to those for bug 166401 -->
<script type="text/javascript" src="http://wiki.eclipse.org/index.php?title=-&amp;action=raw&amp;gen=js&amp;useskin=eclipsenova"><!-- site js --></script>
<!-- Head Scripts -->
<script type="text/javascript" src="http://wiki.eclipse.org/skins/common/ajax.js?116"></script>
<style type="text/css">/*<![CDATA[*/
.source-xml {line-height: normal; font-size: medium;}
.source-xml li {line-height: normal;}
/**
* GeSHi Dynamically Generated Stylesheet
* --------------------------------------
* Dynamically generated stylesheet for xml
* CSS class: source-xml, CSS id:
* GeSHi (C) 2004 - 2007 Nigel McNie (http://qbnz.com/highlighter)
*/
.source-xml .de1, .source-xml .de2 {font-family: 'Courier New', Courier, monospace; font-weight: normal;}
.source-xml {}
.source-xml .head {}
.source-xml .foot {}
.source-xml .imp {font-weight: bold; color: red;}
.source-xml .ln-xtra {color: #cc0; background-color: #ffc;}
.source-xml li {font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;}
.source-xml li.li2 {font-weight: bold;}
.source-xml .coMULTI {color: #808080; font-style: italic;}
.source-xml .es0 {color: #000099; font-weight: bold;}
.source-xml .br0 {color: #66cc66;}
.source-xml .st0 {color: #ff0000;}
.source-xml .nu0 {color: #cc66cc;}
.source-xml .sc0 {color: #00bbdd;}
.source-xml .sc1 {color: #ddbb00;}
.source-xml .sc2 {color: #339933;}
.source-xml .sc3 {color: #009900;}
.source-xml .re0 {color: #000066;}
.source-xml .re1 {font-weight: bold; color: black;}
.source-xml .re2 {font-weight: bold; color: black;}
/*]]>*/
</style>
<style type="text/css">/*<![CDATA[*/
@import "/index.php?title=MediaWiki:Geshi.css&usemsgcache=yes&action=raw&ctype=text/css&smaxage=18000";
/*]]>*/
</style><style type="text/css">/*<![CDATA[*/
.source-javascript {line-height: normal; font-size: medium;}
.source-javascript li {line-height: normal;}
/**
* GeSHi Dynamically Generated Stylesheet
* --------------------------------------
* Dynamically generated stylesheet for javascript
* CSS class: source-javascript, CSS id:
* GeSHi (C) 2004 - 2007 Nigel McNie (http://qbnz.com/highlighter)
*/
.source-javascript .de1, .source-javascript .de2 {font-family: 'Courier New', Courier, monospace; font-weight: normal;}
.source-javascript {}
.source-javascript .head {}
.source-javascript .foot {}
.source-javascript .imp {font-weight: bold; color: red;}
.source-javascript .ln-xtra {color: #cc0; background-color: #ffc;}
.source-javascript li {font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;}
.source-javascript li.li2 {font-weight: bold;}
.source-javascript .kw1 {color: #000066; font-weight: bold;}
.source-javascript .kw2 {color: #003366; font-weight: bold;}
.source-javascript .kw3 {color: #000066;}
.source-javascript .co1 {color: #009900; font-style: italic;}
.source-javascript .coMULTI {color: #009900; font-style: italic;}
.source-javascript .es0 {color: #000099; font-weight: bold;}
.source-javascript .br0 {color: #66cc66;}
.source-javascript .st0 {color: #3366CC;}
.source-javascript .nu0 {color: #CC0000;}
.source-javascript .me1 {color: #006600;}
.source-javascript .sc0 {}
.source-javascript .sc1 {}
.source-javascript .sc2 {}
.source-javascript .sc3 {}
.source-javascript .re0 {color: #0066FF;}
/*]]>*/
</style>
<style type="text/css">/*<![CDATA[*/
@import "/index.php?title=MediaWiki:Geshi.css&usemsgcache=yes&action=raw&ctype=text/css&smaxage=18000";
/*]]>*/
</style><link rel="stylesheet" type="text/css" href="Bundle_org.eclipse.smila.processing.pipelets.xmlprocessing.html" /> </head>
<body class="mediawiki ns-0 ltr page-SMILA_Documentation_Bundle_org_eclipse_smila_processing_pipelets_xmlprocessing">
<div id="globalWrapper">
<div id="column-one">
<!-- Eclipse Additions for the Top Nav start here M. Ward-->
<div id="header">
<div id="header-graphic">
<img src="http://wiki.eclipse.org/skins/eclipsenova/eclipse.png" alt="Eclipse Wiki">
</div>
<!-- Pulled 101409 Mward -->
<div class="portlet" id="p-personal">
<div class="pBody">
<ul>
<li id="pt-login"><a href="http://wiki.eclipse.org/index.php?title=Special:Userlogin&amp;returnto=SMILA/Documentation/Bundle_org.eclipse.smila.processing.pipelets.xmlprocessing">Log in</a></li>
</ul>
</div>
</div>
<div id="header-icons">
<div id="sites">
<ul id="sitesUL">
<li><a href="http://www.eclipse.org"><img src="http://dev.eclipse.org/custom_icons/eclipseIcon.png" width="28" height="28" alt="Eclipse Foundation" title="Eclipse Foundation" /><div>Eclipse Foundation</div></a></li>
<li><a href="http://marketplace.eclipse.org"><img src="http://dev.eclipse.org/custom_icons/marketplace.png" width="28" height="28" alt="Eclipse Marketplace" title="Eclipse Marketplace" /><div>Eclipse Marketplace</div></a></li>
<li><a href="https://bugs.eclipse.org/bugs"><img src="http://dev.eclipse.org/custom_icons/system-search-bw.png" width="28" height="28" alt="Bugzilla" title="Bugzilla" /><div>Bugzilla</div></a></li>
<li><a href="http://live.eclipse.org"><img src="http://dev.eclipse.org/custom_icons/audio-input-microphone-bw.png" width="28" height="28" alt="Live" title="Live" /><div>Eclipse Live</div></a></li>
<li><a href="http://planeteclipse.org"><img src="http://dev.eclipse.org/large_icons/devices/audio-card.png" width="28" height="28" alt="PlanetEclipse" title="Planet" /><div>Planet Eclipse</div></a></li>
<li><a href="http://portal.eclipse.org"><img src="http://dev.eclipse.org/custom_icons/preferences-system-network-proxy-bw.png" width="28" height="28" alt="Portal" title="Portal" /><div>My Foundation Portal</div></a></li>
</ul>
</div>
</div>
</div>
<!-- NEW HEADER STUFF HERE -->
<div id="header-menu">
<div id="header-nav">
<ul> <li><a class="first_one" href="http://wiki.eclipse.org/" target="_self">Home</a></li> <li><a href="http://www.eclipse.org/downloads/" target="_self">Downloads</a></li>
<li><a href="http://www.eclipse.org/users/" target="_self">Users</a></li>
<li><a href="http://www.eclipse.org/membership/" target="_self">Members</a></li>
<li><a href="http://wiki.eclipse.org/index.php/Development_Resources" target="_self">Committers</a></li>
<li><a href="http://www.eclipse.org/resources/" target="_self">Resources</a></li>
<li><a href="http://www.eclipse.org/projects/" target="_self">Projects</a></li>
<li><a href="http://www.eclipse.org/org/" target="_self">About Us</a></li>
</ul>
</div>
<div id="header-utils">
<!-- moved the search window here -->
<form action="http://wiki.eclipse.org/Special:Search" >
<input class="input" name="search" type="text" accesskey="f" value="" />
<input type='submit' onclick="this.submit();" name="go" id="searchGoButton" class="button" title="Go to a page with this exact name if one exists" value="Go" />&nbsp;
<input type='submit' onclick="this.submit();" name="fulltext" class="button" id="mw-searchButton" title="Search Eclipsepedia for this text" value="Search" />
</form>
</div>
</div>
<!-- Eclipse Additions for the Header stop here -->
<!-- Additions and mods for leftside nav Start here -->
<!--Started nav rip here-->
<!-- these are the nav controls main page, changes etc -->
<div id="novaContent" class="faux">
<div id="leftcol">
<ul id="leftnav">
<!-- these are the page controls, edit history etc -->
<li class="separator"><a class="separator">Navigation &#160;&#160;</li>
<li id="n-mainpage"><a href="http://wiki.eclipse.org/Main_Page">Main Page</a></li>
<li id="n-portal"><a href="http://wiki.eclipse.org/Eclipsepedia:Community_Portal">Community portal</a></li>
<li id="n-currentevents"><a href="http://wiki.eclipse.org/Eclipsepedia:Current_events">Current events</a></li>
<li id="n-recentchanges"><a href="http://wiki.eclipse.org/Special:Recentchanges">Recent changes</a></li>
<li id="n-randompage"><a href="http://wiki.eclipse.org/Special:Random">Random page</a></li>
<li id="n-help"><a href="http://wiki.eclipse.org/Help:Contents">Help</a></li>
<li class="separator"><a class="separator">Toolbox &#160;&#160;</a></li>
<li id="t-whatlinkshere"><a href="http://wiki.eclipse.org/Special:Whatlinkshere/SMILA/Documentation/Bundle_org.eclipse.smila.processing.pipelets.xmlprocessing">What links here</a></li>
<li id="t-recentchangeslinked"><a href="http://wiki.eclipse.org/Special:Recentchangeslinked/SMILA/Documentation/Bundle_org.eclipse.smila.processing.pipelets.xmlprocessing">Related changes</a></li>
<!-- This is the toolbox section -->
<li id="t-upload"><a href="http://wiki.eclipse.org/Special:Upload">Upload file</a></li>
<li id="t-specialpages"><a href="http://wiki.eclipse.org/Special:Specialpages">Special pages</a></li>
<li id="t-print"><a href="http://wiki.eclipse.org/index.php?title=SMILA/Documentation/Bundle_org.eclipse.smila.processing.pipelets.xmlprocessing&amp;printable=yes">Printable version</a></li> <li id="t-permalink"><a href="http://wiki.eclipse.org/index.php?title=SMILA/Documentation/Bundle_org.eclipse.smila.processing.pipelets.xmlprocessing&amp;oldid=284067">Permanent link</a></li> </ul>
</div>
<!-- Additions and mods for leftside nav End here -->
<div id="column-content">
<div id="content">
<a name="top" id="top"></a>
<div id="tabs">
<ul class="primary">
<li class="active"><a href="Bundle_org.eclipse.smila.processing.pipelets.xmlprocessing.html"><span class="tab">Page</span></a></li>
<li><a href="http://wiki.eclipse.org/index.php?title=Talk:SMILA/Documentation/Bundle_org.eclipse.smila.processing.pipelets.xmlprocessing&amp;action=edit"><span class="tab">Discussion</span></a></li>
<li><a href="http://wiki.eclipse.org/index.php?title=SMILA/Documentation/Bundle_org.eclipse.smila.processing.pipelets.xmlprocessing&amp;action=edit"><span class="tab">View source</span></a></li>
<li><a href="http://wiki.eclipse.org/index.php?title=SMILA/Documentation/Bundle_org.eclipse.smila.processing.pipelets.xmlprocessing&amp;action=history"><span class="tab">History</span></a></li>
<li><a href="http://wiki.eclipse.org/index.php?title=Special:Userlogin&amp;returnto=SMILA/Documentation/Bundle%20org.eclipse.smila.processing.pipelets.xmlprocessing"><span class="tab">Edit</span></a></li>
</ul>
</div>
<script type="text/javascript"> if (window.isMSIE55) fixalpha(); </script>
<h1 class="firstHeading">SMILA/Documentation/Bundle org.eclipse.smila.processing.pipelets.xmlprocessing</h1>
<div id="bodyContent">
<h3 id="siteSub">From Eclipsepedia</h3>
<div id="contentSub"><span class="subpages">&lt; <a href="../../SMILA.html" title="SMILA">SMILA</a> | <a href="../Documentation.1.html" title="SMILA/Documentation">Documentation</a></span></div>
<div id="jump-to-nav">Jump to: <a href="Bundle_org.eclipse.smila.processing.pipelets.xmlprocessing.html#column-one">navigation</a>, <a href="Bundle_org.eclipse.smila.processing.pipelets.xmlprocessing.html#searchInput">search</a></div> <!-- start content -->
<table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
<ul>
<li class="toclevel-1"><a href="Bundle_org.eclipse.smila.processing.pipelets.xmlprocessing.html#General"><span class="tocnumber">1</span> <span class="toctext">General</span></a></li>
<li class="toclevel-1"><a href="Bundle_org.eclipse.smila.processing.pipelets.xmlprocessing.html#org.eclipse.smila.processing.pipelets.xmlprocessing.XslTransformationPipelet"><span class="tocnumber">2</span> <span class="toctext">org.eclipse.smila.processing.pipelets.xmlprocessing.XslTransformationPipelet</span></a>
<ul>
<li class="toclevel-2"><a href="Bundle_org.eclipse.smila.processing.pipelets.xmlprocessing.html#Description"><span class="tocnumber">2.1</span> <span class="toctext">Description</span></a></li>
<li class="toclevel-2"><a href="Bundle_org.eclipse.smila.processing.pipelets.xmlprocessing.html#Configuration"><span class="tocnumber">2.2</span> <span class="toctext">Configuration</span></a>
<ul>
<li class="toclevel-3"><a href="Bundle_org.eclipse.smila.processing.pipelets.xmlprocessing.html#Example"><span class="tocnumber">2.2.1</span> <span class="toctext">Example</span></a></li>
</ul>
</li>
</ul>
</li>
<li class="toclevel-1"><a href="Bundle_org.eclipse.smila.processing.pipelets.xmlprocessing.html#org.eclipse.smila.processing.pipelets.xmlprocessing.XPathExtractorPipelet"><span class="tocnumber">3</span> <span class="toctext">org.eclipse.smila.processing.pipelets.xmlprocessing.XPathExtractorPipelet</span></a>
<ul>
<li class="toclevel-2"><a href="Bundle_org.eclipse.smila.processing.pipelets.xmlprocessing.html#Description_2"><span class="tocnumber">3.1</span> <span class="toctext">Description</span></a></li>
<li class="toclevel-2"><a href="Bundle_org.eclipse.smila.processing.pipelets.xmlprocessing.html#Configuration_2"><span class="tocnumber">3.2</span> <span class="toctext">Configuration</span></a>
<ul>
<li class="toclevel-3"><a href="Bundle_org.eclipse.smila.processing.pipelets.xmlprocessing.html#Example_2"><span class="tocnumber">3.2.1</span> <span class="toctext">Example</span></a></li>
</ul>
</li>
</ul>
</li>
<li class="toclevel-1"><a href="Bundle_org.eclipse.smila.processing.pipelets.xmlprocessing.html#org.eclipse.smila.processing.pipelets.xmlprocessing.XPathFilterPipelet"><span class="tocnumber">4</span> <span class="toctext">org.eclipse.smila.processing.pipelets.xmlprocessing.XPathFilterPipelet</span></a>
<ul>
<li class="toclevel-2"><a href="Bundle_org.eclipse.smila.processing.pipelets.xmlprocessing.html#Description_3"><span class="tocnumber">4.1</span> <span class="toctext">Description</span></a></li>
<li class="toclevel-2"><a href="Bundle_org.eclipse.smila.processing.pipelets.xmlprocessing.html#Configuration_3"><span class="tocnumber">4.2</span> <span class="toctext">Configuration</span></a>
<ul>
<li class="toclevel-3"><a href="Bundle_org.eclipse.smila.processing.pipelets.xmlprocessing.html#Examples"><span class="tocnumber">4.2.1</span> <span class="toctext">Examples</span></a></li>
</ul>
</li>
</ul>
</li>
<li class="toclevel-1"><a href="Bundle_org.eclipse.smila.processing.pipelets.xmlprocessing.html#org.eclipse.smila.processing.pipelets.xmlprocessing.RemoveElementFromXMLPipelet"><span class="tocnumber">5</span> <span class="toctext">org.eclipse.smila.processing.pipelets.xmlprocessing.RemoveElementFromXMLPipelet</span></a>
<ul>
<li class="toclevel-2"><a href="Bundle_org.eclipse.smila.processing.pipelets.xmlprocessing.html#Description_4"><span class="tocnumber">5.1</span> <span class="toctext">Description</span></a></li>
<li class="toclevel-2"><a href="Bundle_org.eclipse.smila.processing.pipelets.xmlprocessing.html#Configuration_4"><span class="tocnumber">5.2</span> <span class="toctext">Configuration</span></a>
<ul>
<li class="toclevel-3"><a href="Bundle_org.eclipse.smila.processing.pipelets.xmlprocessing.html#Example_3"><span class="tocnumber">5.2.1</span> <span class="toctext">Example</span></a></li>
</ul>
</li>
</ul>
</li>
<li class="toclevel-1"><a href="Bundle_org.eclipse.smila.processing.pipelets.xmlprocessing.html#org.eclipse.smila.processing.pipelets.xmlprocessing.TidyPipelet"><span class="tocnumber">6</span> <span class="toctext">org.eclipse.smila.processing.pipelets.xmlprocessing.TidyPipelet</span></a>
<ul>
<li class="toclevel-2"><a href="Bundle_org.eclipse.smila.processing.pipelets.xmlprocessing.html#Description_5"><span class="tocnumber">6.1</span> <span class="toctext">Description</span></a></li>
<li class="toclevel-2"><a href="Bundle_org.eclipse.smila.processing.pipelets.xmlprocessing.html#Configuration_5"><span class="tocnumber">6.2</span> <span class="toctext">Configuration</span></a>
<ul>
<li class="toclevel-3"><a href="Bundle_org.eclipse.smila.processing.pipelets.xmlprocessing.html#Example_4"><span class="tocnumber">6.2.1</span> <span class="toctext">Example</span></a></li>
</ul>
</li>
</ul>
</li>
<li class="toclevel-1"><a href="Bundle_org.eclipse.smila.processing.pipelets.xmlprocessing.html#org.eclipse.smila.processing.pipelets.xmlprocessing.XmlSplitterPipelet"><span class="tocnumber">7</span> <span class="toctext">org.eclipse.smila.processing.pipelets.xmlprocessing.XmlSplitterPipelet</span></a>
<ul>
<li class="toclevel-2"><a href="Bundle_org.eclipse.smila.processing.pipelets.xmlprocessing.html#Description_6"><span class="tocnumber">7.1</span> <span class="toctext">Description</span></a></li>
<li class="toclevel-2"><a href="Bundle_org.eclipse.smila.processing.pipelets.xmlprocessing.html#Configuration_6"><span class="tocnumber">7.2</span> <span class="toctext">Configuration</span></a>
<ul>
<li class="toclevel-3"><a href="Bundle_org.eclipse.smila.processing.pipelets.xmlprocessing.html#Example_5"><span class="tocnumber">7.2.1</span> <span class="toctext">Example</span></a></li>
</ul>
</li>
</ul>
</li>
</ul>
</td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script>
<a name="General"></a><h2> <span class="mw-headline"> General </span></h2>
<p>All pipelets in this bundle support the configurable error handling as described in <a href="../Development_Guidelines/How_to_write_a_Pipelet.html#Implementation" class="mw-redirect" title="SMILA/Development Guidelines/How to write a Pipelet">SMILA/Development_Guidelines/How_to_write_a_Pipelet#Implementation</a>. When used in jobmanager workflows, records causing errors are dropped.
</p><p><b> Read Type </b>
</p>
<ul><li> <i>runtime</i>: Parameters are read when processing records. Parameter value can be set per Record.
</li><li> <i>init</i>: Parameters are read once from Pipelet configuration when initializing the Pipelet. Parameter value can not be overwritten in Record.
</li></ul>
<a name="org.eclipse.smila.processing.pipelets.xmlprocessing.XslTransformationPipelet"></a><h2> <span class="mw-headline"> <tt>org.eclipse.smila.processing.pipelets.xmlprocessing.XslTransformationPipelet</tt> </span></h2>
<a name="Description"></a><h3> <span class="mw-headline"> Description </span></h3>
<p>This pipelet performs an XSL transformation on an attribute or attachment value and stores the transformed document in an attribute or attachment.
</p>
<a name="Configuration"></a><h3> <span class="mw-headline"> Configuration </span></h3>
<table border="1">
<tr>
<th>Property</th><th>Data Type</th><th>Read Type</th><th>Description
</th></tr>
<tr>
<td><i>inputType</i></td><td>String&nbsp;: ATTACHMENT, ATTRIBUTE</td><td>runtime</td><td>Defines whether the XML input is found in an attachment or in an attribute of the record.
</td></tr>
<tr>
<td><i>outputType</i></td><td>String&nbsp;: ATTACHMENT, ATTRIBUTE</td><td>runtime</td><td>Defines whether the transformed output should be stored in an attachment or in an attribute of the record.
</td></tr>
<tr>
<td><i>inputName</i></td><td>String</td><td>runtime</td><td>The name of the input attachment or the path to the input attribute (process literals of attribute).
</td></tr>
<tr>
<td><i>outputName</i></td><td>String</td><td>runtime</td><td>The name of the output attachment or the path to the output attribute (store result as literals of attribute).
</td></tr>
<tr>
<td><i>xslFile</i></td><td>String</td><td>runtime</td><td>The name (with relative or absolute path) of the XSL file to be used for transformation.
</td></tr></table>
<a name="Example"></a><h4> <span class="mw-headline"> Example </span></h4>
<p><b>Pipelet configuration for XslTransformationPipelet</b>
</p>
<div dir="ltr" style="text-align: left;"><pre class="source-xml"><span class="sc3"><span class="re1">&lt;proc:configuration<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;inputType&quot;</span><span class="re2">&gt;</span></span>ATTRIBUTE<span class="sc3"><span class="re1">&lt;rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;outputType&quot;</span><span class="re2">&gt;</span></span>ATTRIBUTE<span class="sc3"><span class="re1">&lt;rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;inputName&quot;</span><span class="re2">&gt;</span></span>xmlIn<span class="sc3"><span class="re1">&lt;rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;outputName&quot;</span><span class="re2">&gt;</span></span>xmlOut<span class="sc3"><span class="re1">&lt;rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;xslFile&quot;</span><span class="re2">&gt;</span></span>./configuration/data/author.xsl<span class="sc3"><span class="re1">&lt;rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;/proc:configuration<span class="re2">&gt;</span></span></span></pre></div>
<a name="org.eclipse.smila.processing.pipelets.xmlprocessing.XPathExtractorPipelet"></a><h2> <span class="mw-headline"> <tt>org.eclipse.smila.processing.pipelets.xmlprocessing.XPathExtractorPipelet</tt> </span></h2>
<a name="Description_2"></a><h3> <span class="mw-headline"> Description </span></h3>
<p>This pipelet extracts elements selected by XPath, converts them to appropriate data types (Boolean, Double, String), and stores the transformed value in an attribute or attachment.
</p>
<a name="Configuration_2"></a><h3> <span class="mw-headline"> Configuration </span></h3>
<table border="1">
<tr>
<th>Property</th><th>Data Type</th><th>Read Type</th><th>Description
</th></tr>
<tr>
<td><i>inputType</i></td><td>String&nbsp;: ATTACHMENT, ATTRIBUTE</td><td>runtime</td><td>Defines whether the XML input is found in an attachment or in an attribute of the record.
</td></tr>
<tr>
<td><i>outputType</i></td><td>String&nbsp;: ATTACHMENT, ATTRIBUTE</td><td>runtime</td><td>Defines whether the transformed output should be stored in an attachment or in an attribute of the record.
</td></tr>
<tr>
<td><i>inputName</i></td><td>String</td><td>runtime</td><td>The name of the input attachment or the path to the input attribute (process literals of attribute).
</td></tr>
<tr>
<td><i>outputName</i></td><td>String</td><td>runtime</td><td>The name of the output attachment or the path to the output attribute (store result as literals of attribute).
</td></tr>
<tr>
<td><i>xpath</i></td><td>String</td><td>runtime</td><td>The XPath expression to be evaluated.
</td></tr>
<tr>
<td><i>separator</i></td><td>String</td><td>runtime</td><td>The optional separator.
</td></tr>
<tr>
<td><i>namespace</i></td><td>String</td><td>runtime</td><td>The optional XML namespace.
</td></tr></table>
<a name="Example_2"></a><h4> <span class="mw-headline"> Example </span></h4>
<p><b>Pipelet configuration for XPathExtractorPipelet</b>
</p>
<div dir="ltr" style="text-align: left;"><pre class="source-xml"><span class="sc3"><span class="re1">&lt;proc:configuration<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;inputType&quot;</span><span class="re2">&gt;</span></span>ATTRIBUTE<span class="sc3"><span class="re1">&lt;rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;outputType&quot;</span><span class="re2">&gt;</span></span>ATTRIBUTE<span class="sc3"><span class="re1">&lt;rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;inputName&quot;</span><span class="re2">&gt;</span></span>xmlIn<span class="sc3"><span class="re1">&lt;rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;outputName&quot;</span><span class="re2">&gt;</span></span>xmlOut<span class="sc3"><span class="re1">&lt;rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;xpath&quot;</span><span class="re2">&gt;</span></span>author/email<span class="sc3"><span class="re1">&lt;rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;separator&quot;</span><span class="re2">&gt;</span></span><span class="sc3"><span class="re1">&lt;rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;namespace&quot;</span><span class="re2">&gt;</span></span><span class="sc3"><span class="re1">&lt;rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;/proc:configuration<span class="re2">&gt;</span></span></span></pre></div>
<hr />
<a name="org.eclipse.smila.processing.pipelets.xmlprocessing.XPathFilterPipelet"></a><h2> <span class="mw-headline"> <tt>org.eclipse.smila.processing.pipelets.xmlprocessing.XPathFilterPipelet</tt> </span></h2>
<a name="Description_3"></a><h3> <span class="mw-headline"> Description </span></h3>
<p>This pipelet filters elements by XPath expressions (either using include or exclude mode) and stores the filtered elements as a new document in an attribute or attachment.
</p>
<a name="Configuration_3"></a><h3> <span class="mw-headline"> Configuration </span></h3>
<table border="1">
<tr>
<th>Property</th><th>Data Type</th><th>Read Type</th><th>Description
</th></tr>
<tr>
<td><i>inputType</i></td><td>String&nbsp;: ATTACHMENT, ATTRIBUTE</td><td>runtime</td><td>Defines whether the XML input is found in an attachment or in an attribute of the record.
</td></tr>
<tr>
<td><i>outputType</i></td><td>String&nbsp;: ATTACHMENT, ATTRIBUTE</td><td>runtime</td><td>Defines whether the transformed output should be stored in an attachment or in an attribute of the record.
</td></tr>
<tr>
<td><i>inputName</i></td><td>String</td><td>runtime</td><td>The name of the input attachment or the path to the input attribute (process literals of attribute).
</td></tr>
<tr>
<td><i>outputName</i></td><td>String</td><td>runtime</td><td>The name of the output attachment or the path to the output attribute (store result as literals of attribute).
</td></tr>
<tr>
<td><i>xpath</i></td><td>String</td><td>runtime</td><td>The XPath expressions to be evaluated (multi-valued property).
</td></tr>
<tr>
<td><i>filterMode</i></td><td>String&nbsp;: INCLUDE, EXCLUDE</td><td>runtime</td><td>The filter mode, defining whether to include or exclude the elements matched by the XPath expressions.
</td></tr>
<tr>
<td><i>namespace</i></td><td>String</td><td>runtime</td><td>The optional XML namespace.
</td></tr></table>
<a name="Examples"></a><h4> <span class="mw-headline"> Examples </span></h4>
<p><b>Pipelet configuration for XPathFilterPipelet with multi-valued xpath</b>
</p>
<div dir="ltr" style="text-align: left;"><pre class="source-xml"><span class="sc3"><span class="re1">&lt;proc:configuration<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;inputType&quot;</span><span class="re2">&gt;</span></span>ATTRIBUTE<span class="sc3"><span class="re1">&lt;rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;outputType&quot;</span><span class="re2">&gt;</span></span>ATTRIBUTE<span class="sc3"><span class="re1">&lt;rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;inputName&quot;</span><span class="re2">&gt;</span></span>xmlIn<span class="sc3"><span class="re1">&lt;rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;outputName&quot;</span><span class="re2">&gt;</span></span>xmlOut<span class="sc3"><span class="re1">&lt;rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Seq</span> <span class="re0">key</span>=<span class="st0">&quot;xpath&quot;</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;rec:Val<span class="re2">&gt;</span></span></span>author/email<span class="sc3"><span class="re1">&lt;rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val<span class="re2">&gt;</span></span></span>author/name<span class="sc3"><span class="re1">&lt;rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;/rec:Seq<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;filterMode&quot;</span><span class="re2">&gt;</span></span>EXCLUDE<span class="sc3"><span class="re1">&lt;rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;seperator&quot;</span><span class="re2">&gt;</span></span><span class="sc3"><span class="re1">&lt;rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;namespace&quot;</span><span class="re2">&gt;</span></span><span class="sc3"><span class="re1">&lt;rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;/proc:configuration<span class="re2">&gt;</span></span></span></pre></div>
<p><b>Pipelet configuration for XPathFilterPipelet with single-valued xpath</b>
</p>
<div dir="ltr" style="text-align: left;"><pre class="source-xml"><span class="sc3"><span class="re1">&lt;proc:configuration<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;inputType&quot;</span><span class="re2">&gt;</span></span>ATTRIBUTE<span class="sc3"><span class="re1">&lt;rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;outputType&quot;</span><span class="re2">&gt;</span></span>ATTRIBUTE<span class="sc3"><span class="re1">&lt;rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;inputName&quot;</span><span class="re2">&gt;</span></span>xmlIn<span class="sc3"><span class="re1">&lt;rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;outputName&quot;</span><span class="re2">&gt;</span></span>xmlOut<span class="sc3"><span class="re1">&lt;rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;xpath&quot;</span><span class="re2">&gt;</span></span>author/email<span class="sc3"><span class="re1">&lt;rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;filterMode&quot;</span><span class="re2">&gt;</span></span>EXCLUDE<span class="sc3"><span class="re1">&lt;rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;seperator&quot;</span><span class="re2">&gt;</span></span><span class="sc3"><span class="re1">&lt;rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;namespace&quot;</span><span class="re2">&gt;</span></span><span class="sc3"><span class="re1">&lt;rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;/proc:configuration<span class="re2">&gt;</span></span></span></pre></div>
<hr />
<a name="org.eclipse.smila.processing.pipelets.xmlprocessing.RemoveElementFromXMLPipelet"></a><h2> <span class="mw-headline"> <tt>org.eclipse.smila.processing.pipelets.xmlprocessing.RemoveElementFromXMLPipelet</tt> </span></h2>
<a name="Description_4"></a><h3> <span class="mw-headline"> Description </span></h3>
<p>This pipelet removes a selected element from an XML document and stores the manipulated document in an attribute or attachment.
</p>
<a name="Configuration_4"></a><h3> <span class="mw-headline"> Configuration </span></h3>
<table border="1">
<tr>
<th>Property</th><th>Data Type</th><th>Read Type</th><th>Description
</th></tr>
<tr>
<td><i>inputType</i></td><td>String&nbsp;: ATTACHMENT, ATTRIBUTE</td><td>runtime</td><td>Defines whether the XML input is found in an attachment or in an attribute of the record.
</td></tr>
<tr>
<td><i>outputType</i></td><td>String&nbsp;: ATTACHMENT, ATTRIBUTE</td><td>runtime</td><td>Defines whether the transformed output should be stored in an attachment or in an attribute of the record.
</td></tr>
<tr>
<td><i>inputName</i></td><td>String</td><td>runtime</td><td>The name of the input attachment or the path to the input attribute (process literals of attribute).
</td></tr>
<tr>
<td><i>outputName</i></td><td>String</td><td>runtime</td><td>The name of the output attachment or the path to the output attribute (store result as literals of attribute).
</td></tr>
<tr>
<td><i>elementId</i></td><td>String</td><td>runtime</td><td>The ID of the XML element to be removed.
</td></tr></table>
<a name="Example_3"></a><h4> <span class="mw-headline"> Example </span></h4>
<p><b>Pipelet configuration for RemoveElementFromXMLPipelet</b>
</p>
<div dir="ltr" style="text-align: left;"><pre class="source-xml"><span class="sc3"><span class="re1">&lt;proc:configuration<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;inputType&quot;</span><span class="re2">&gt;</span></span>ATTRIBUTE<span class="sc3"><span class="re1">&lt;rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;outputType&quot;</span><span class="re2">&gt;</span></span>ATTRIBUTE<span class="sc3"><span class="re1">&lt;rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;inputName&quot;</span><span class="re2">&gt;</span></span>xmlIn<span class="sc3"><span class="re1">&lt;rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;outputName&quot;</span><span class="re2">&gt;</span></span>xmlOut<span class="sc3"><span class="re1">&lt;rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;elementId&quot;</span><span class="re2">&gt;</span></span>title<span class="sc3"><span class="re1">&lt;rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;/proc:configuration<span class="re2">&gt;</span></span></span></pre></div>
<hr />
<a name="org.eclipse.smila.processing.pipelets.xmlprocessing.TidyPipelet"></a><h2> <span class="mw-headline"> <tt>org.eclipse.smila.processing.pipelets.xmlprocessing.TidyPipelet</tt> </span></h2>
<a name="Description_5"></a><h3> <span class="mw-headline"> Description </span></h3>
<p>This pipelet performs a Tidy transformation on an attribute or attachment value and stores the result in an attribute or attachment.
</p>
<a name="Configuration_5"></a><h3> <span class="mw-headline"> Configuration </span></h3>
<table border="1">
<tr>
<th>Property</th><th>Data Type</th><th>Read Type</th><th>Description
</th></tr>
<tr>
<td><i>inputType</i></td><td>String&nbsp;: ATTACHMENT, ATTRIBUTE</td><td>runtime</td><td>Defines whether the XML input is found in an attachment or in an attribute of the record.
</td></tr>
<tr>
<td><i>outputType</i></td><td>String&nbsp;: ATTACHMENT, ATTRIBUTE</td><td>runtime</td><td>Defines whether the transformed output should be stored in an attachment or in an attribute of the record.
</td></tr>
<tr>
<td><i>inputName</i></td><td>String</td><td>runtime</td><td>The name of the input attachment or the path to the input attribute (process literals of attribute).
</td></tr>
<tr>
<td><i>outputName</i></td><td>String</td><td>runtime</td><td>The name of the output attachment or the path to the output attribute (store result as literals of attribute).
</td></tr>
<tr>
<td><i>tidyFile</i></td><td>String</td><td>init</td><td>The name (with relative or absolute path) of the Tidy configuration file to be used by the transformation.
</td></tr></table>
<a name="Example_4"></a><h4> <span class="mw-headline"> Example </span></h4>
<p><b>Pipelet configuration for TidyPipelet</b>
</p>
<div dir="ltr" style="text-align: left;"><pre class="source-xml"><span class="sc3"><span class="re1">&lt;proc:configuration<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;inputType&quot;</span><span class="re2">&gt;</span></span>ATTRIBUTE<span class="sc3"><span class="re1">&lt;rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;outputType&quot;</span><span class="re2">&gt;</span></span>ATTRIBUTE<span class="sc3"><span class="re1">&lt;rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;inputName&quot;</span><span class="re2">&gt;</span></span>xmlIn<span class="sc3"><span class="re1">&lt;rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;outputName&quot;</span><span class="re2">&gt;</span></span>xmlOut<span class="sc3"><span class="re1">&lt;rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;tidyFile&quot;</span><span class="re2">&gt;</span></span>./configuration/data/tidy_config.txt<span class="sc3"><span class="re1">&lt;rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;/proc:configuration<span class="re2">&gt;</span></span></span></pre></div>
<a name="org.eclipse.smila.processing.pipelets.xmlprocessing.XmlSplitterPipelet"></a><h2> <span class="mw-headline"> <tt>org.eclipse.smila.processing.pipelets.xmlprocessing.XmlSplitterPipelet</tt> </span></h2>
<a name="Description_6"></a><h3> <span class="mw-headline"> Description </span></h3>
<p>This pipelet splits an XML stream into multiple XML snippets. For each snippet a new record is created where the XML snippet is stored in either an attribute or attachment. The created records are not returned as a PipeletResult (this is just the same as the incoming RecordIds) but are directly sent to the ConnectivityManager and are routed once more to the queue.
</p><p>On each created record the attribute <tt>__isXmlSnippet</tt>=<tt>true</tt> is set to true. Incoming records with this attribute set are not splitted again, but returned as the Pipelet result. This way it's possible to add further processing steps that should be done on the splitted records to the same pipeline that does the splitting. See <a href="https://dev.eclipse.org/svnroot/rt/org.eclipse.smila/trunk/core/SMILA.application/configuration/org.eclipse.smila.processing.bpel/pipelines/XmlSplitAndAddPipeline.bpel" class="external text" title="https://dev.eclipse.org/svnroot/rt/org.eclipse.smila/trunk/core/SMILA.application/configuration/org.eclipse.smila.processing.bpel/pipelines/XmlSplitAndAddPipeline.bpel" rel="nofollow">XmlSplitAndAddPipeline.bpel</a> for an example.
</p><p>Namespaces visible in its scope are added to each snippet, thus the result is a valid XML document.
</p>
<a name="Configuration_6"></a><h3> <span class="mw-headline"> Configuration </span></h3>
<table border="1">
<tr>
<th>Property</th><th>Type</th><th>Description
</th></tr>
<tr>
<td><i>inputType</i></td><td>String&nbsp;: ATTACHMENT, ATTRIBUTE</td><td>runtime</td><td>Defines whether the XML input is found in an attachment or in an attribute of the record. An input attribute is not interpreted as to contain XML content itself but rather as a file path or an URL to the XML document.
</td></tr>
<tr>
<td><i>outputType</i></td><td>String&nbsp;: ATTACHMENT, ATTRIBUTE</td><td>runtime</td><td>Defines whether the XML snippet should be stored in an attachment or in an attribute of the newly created record.
</td></tr>
<tr>
<td><i>inputName</i></td><td>String</td><td>runtime</td><td>The name of the input attachment or the path to the input attribute containing a path to an external data source, e.g. an xml file name
</td></tr>
<tr>
<td><i>outputName</i></td><td>String</td><td>runtime</td><td>The name of the output attachment or the path to the output attribute (store result as literals of attribute).
</td></tr>
<tr>
<td><i>beginTagName</i></td><td>String</td><td>runtime</td><td>The name of the tag to start the XML snippet with.
</td></tr>
<tr>
<td><i>beginTagNamespace</i></td><td>String</td><td>runtime</td><td>The namespace of the start tag. Namespaces are not checked, if not given (in that case any namespace matches).
</td></tr>
<tr>
<td><i>endTagName</i></td><td>String</td><td>runtime</td><td>The name of the tag to end the xml snippet with, defaults to the value of <i>beginTagName</i>
</td></tr>
<tr>
<td><i>endTagNamespace</i></td><td>String</td><td>runtime</td><td>The namespace of the end tag, defaults to the value of <i>beginTagNamespace</i>.
</td></tr>
<tr>
<td><i>keyTagName</i></td><td>String</td><td>runtime</td><td>The name of the tag used to create a record ID.
</td></tr>
<tr>
<td><i>maxBufferSize</i></td><td>Integer</td><td>runtime</td><td>The maximum size of the internal record buffer (optional, default is 20).
</td></tr>
<tr>
<td><i>idSeparator</i></td><td>String</td><td>runtime</td><td>The separator used to create the record IDs of the split records (optional, default is "#").
</td></tr>
<tr>
<td><i>xmlSnippetJobName</i></td><td>String</td><td>runtime</td><td>The JobManager job name to submit the split records to. It must be running when the pipelet is executed.
</td></tr></table>
<p>The first four attributes can be set only in the pipelet configuration. All other attributes can seperately customized for each single record by setting them as values of the the <tt>_parameters</tt> map in the record.
</p>
<a name="Example_5"></a><h4> <span class="mw-headline"> Example </span></h4>
<p><b>Pipelet configuration for XmlSplitterPipelet</b>
</p>
<div dir="ltr" style="text-align: left;"><pre class="source-xml"><span class="sc3"><span class="re1">&lt;proc:configuration<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;inputType&quot;</span><span class="re2">&gt;</span></span>ATTRIBUTE<span class="sc3"><span class="re1">&lt;/rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;outputType&quot;</span><span class="re2">&gt;</span></span>ATTRIBUTE<span class="sc3"><span class="re1">&lt;/rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;inputName&quot;</span><span class="re2">&gt;</span></span>xmlIn<span class="sc3"><span class="re1">&lt;/rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;outputName&quot;</span><span class="re2">&gt;</span></span>xmlOut<span class="sc3"><span class="re1">&lt;/rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;beginTagName&quot;</span><span class="re2">&gt;</span></span>document<span class="sc3"><span class="re1">&lt;/rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;keyTagName&quot;</span><span class="re2">&gt;</span></span>docId<span class="sc3"><span class="re1">&lt;/rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;idSeparator&quot;</span><span class="re2">&gt;</span></span>#<span class="sc3"><span class="re1">&lt;/rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;rec:Val</span> <span class="re0">key</span>=<span class="st0">&quot;xmlSnippetJobName&quot;</span><span class="re2">&gt;</span></span>indexUpdateXml<span class="sc3"><span class="re1">&lt;/rec:Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;/proc:configuration<span class="re2">&gt;</span></span></span></pre></div>
<p><br />
The above configuration would split this XML format:
</p>
<div dir="ltr" style="text-align: left;"><pre class="source-xml"><span class="sc3"><span class="re1">&lt;sampleCollection<span class="re2">&gt;</span></span></span>
...
<span class="sc3"><span class="re1">&lt;document<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;docId<span class="re2">&gt;</span></span></span>4711<span class="sc3"><span class="re1">&lt;/docId<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;title<span class="re2">&gt;</span></span></span>Some title<span class="sc3"><span class="re1">&lt;/title<span class="re2">&gt;</span></span></span>
...
<span class="sc3"><span class="re1">&lt;text<span class="re2">&gt;</span></span></span>Some text<span class="sc3"><span class="re1">&lt;/text<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;/document<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;document<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;docId<span class="re2">&gt;</span></span></span>0815<span class="sc3"><span class="re1">&lt;/docId<span class="re2">&gt;</span></span></span>
...
<span class="sc3"><span class="re1">&lt;/document<span class="re2">&gt;</span></span></span>
...
<span class="sc3"><span class="re1">&lt;/sampleCollection<span class="re2">&gt;</span></span></span></pre></div>
<p>into XML snippets like this one:
</p>
<div dir="ltr" style="text-align: left;"><pre class="source-xml"><span class="sc3"><span class="re1">&lt;document<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;docId<span class="re2">&gt;</span></span></span>4711<span class="sc3"><span class="re1">&lt;/docId<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;title<span class="re2">&gt;</span></span></span>Some title<span class="sc3"><span class="re1">&lt;/title<span class="re2">&gt;</span></span></span>
...
<span class="sc3"><span class="re1">&lt;text<span class="re2">&gt;</span></span></span>Some text<span class="sc3"><span class="re1">&lt;/text<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;/document<span class="re2">&gt;</span></span></span></pre></div>
<p>And for each snippet a record would be created and submitted to a job run of job "indexUpdateXml".
</p>
<div dir="ltr" style="text-align: left;"><pre class="source-xml"><span class="sc3"><span class="re1">&lt;Record</span> <span class="re0">xmlns</span>=<span class="st0">&quot;http://www.eclipse.org/smila/record&quot;</span> <span class="re0">version</span>=<span class="st0">&quot;2.0&quot;</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;Val</span> <span class="re0">key</span>=<span class="st0">&quot;_recordid&quot;</span><span class="re2">&gt;</span></span>xmlsplitter:someBigXmlfile.xml#4711<span class="sc3"><span class="re1">&lt;/Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;Val</span> <span class="re0">key</span>=<span class="st0">&quot;_source&quot;</span><span class="re2">&gt;</span></span>xmlsplitter<span class="sc3"><span class="re1">&lt;/Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;Val</span> <span class="re0">key</span>=<span class="st0">&quot;__isXmlSnippet&quot;</span><span class="re2">&gt;</span></span>true<span class="sc3"><span class="re1">&lt;/Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;Val</span> <span class="re0">key</span>=<span class="st0">&quot;xmlOut&quot;</span><span class="re2">&gt;</span></span>
<span class="sc3"><span class="re1">&lt;document<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;docId<span class="re2">&gt;</span></span></span>4711<span class="sc3"><span class="re1">&lt;/docId<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;title<span class="re2">&gt;</span></span></span>Some title<span class="sc3"><span class="re1">&lt;/title<span class="re2">&gt;</span></span></span>
...
<span class="sc3"><span class="re1">&lt;text<span class="re2">&gt;</span></span></span>Some text<span class="sc3"><span class="re1">&lt;/text<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;/document<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;/Val<span class="re2">&gt;</span></span></span>
<span class="sc3"><span class="re1">&lt;/Record<span class="re2">&gt;</span></span></span></pre></div>
<p>To use the <a href="https://dev.eclipse.org/svnroot/rt/org.eclipse.smila/trunk/core/SMILA.application/configuration/org.eclipse.smila.processing.bpel/pipelines/XmlSplitAndAddPipeline.bpel" class="external text" title="https://dev.eclipse.org/svnroot/rt/org.eclipse.smila/trunk/core/SMILA.application/configuration/org.eclipse.smila.processing.bpel/pipelines/XmlSplitAndAddPipeline.bpel" rel="nofollow">XmlSplitAndAddPipeline.bpel</a> via the predefined asynchronous workflow <tt>indexUpdateXml</tt> you should create a job definition that sets the "xmlSnippetJobName" to the job's own name:
</p>
<div dir="ltr" style="text-align: left;"><pre class="source-javascript"><span class="br0">&#123;</span>
<span class="st0">&quot;name&quot;</span>: <span class="st0">&quot;indexUpdateXmlJob&quot;</span>,
<span class="st0">&quot;workflow&quot;</span>: <span class="st0">&quot;indexUpdateXml&quot;</span>,
<span class="st0">&quot;parameters&quot;</span>: <span class="br0">&#123;</span>
<span class="st0">&quot;tempStore&quot;</span>: <span class="st0">&quot;xmlbulks&quot;</span>,
<span class="st0">&quot;xmlSnippetJobName&quot;</span>: <span class="st0">&quot;indexUpdateXmlJob&quot;</span>
<span class="br0">&#125;</span>
<span class="br0">&#125;</span></pre></div>
<!--
NewPP limit report
Preprocessor node count: 69/1000000
Post-expand include size: 0/2097152 bytes
Template argument size: 0/2097152 bytes
#ifexist count: 0/100
-->
<!-- Saved in parser cache with key wikidb:pcache:idhash:15199-0!1!0!!en!2!edit=0 and timestamp 20120203101152 -->
<div class="printfooter">
Retrieved from "<a href="Bundle_org.eclipse.smila.processing.pipelets.xmlprocessing.html">http://wiki.eclipse.org/SMILA/Documentation/Bundle_org.eclipse.smila.processing.pipelets.xmlprocessing</a>"</div>
<div id="catlinks"><p class='catlinks'><a href="http://wiki.eclipse.org/Special:Categories" title="Special:Categories">Categories</a>: <span dir='ltr'><a href="http://wiki.eclipse.org/Category:SMILA" title="Category:SMILA">SMILA</a></span> | <span dir='ltr'><a href="http://wiki.eclipse.org/index.php?title=Category:SMILA/Pipelet&amp;action=edit" class="new" title="Category:SMILA/Pipelet">SMILA/Pipelet</a></span></p></div> <!-- end content -->
<div class="visualClear"></div>
</div>
</div>
</div>
<!-- Yoink of toolbox for phoenix moved up -->
</div>
</div>
<div id="clearFooter"/>
<div id="footer" >
<ul id="footernav">
<li class="first"><a href="http://www.eclipse.org/">Home</a></li>
<li><a href="http://www.eclipse.org/legal/privacy.php">Privacy Policy</a></li>
<li><a href="http://www.eclipse.org/legal/termsofuse.php">Terms of Use</a></li>
<li><a href="http://www.eclipse.org/legal/copyright.php">Copyright Agent</a></li>
<li><a href="http://www.eclipse.org/org/foundation/contact.php">Contact</a></li>
<li><a href="http://wiki.eclipse.org/Eclipsepedia:About" title="Eclipsepedia:About">About Eclipsepedia</a></li>
</ul>
<span id="copyright">Copyright &copy; 2012 The Eclipse Foundation. All Rights Reserved</span>
<p id="footercredit">This page was last modified 17:47, 6 January 2012 by <a href="http://wiki.eclipse.org/User:Eclipse.liefke.biz" title="User:Eclipse.liefke.biz">Tobias Liefke</a>. Based on work by <a href="http://wiki.eclipse.org/index.php?title=User:Juergen.schumacher.attensity.com&amp;action=edit" class="new" title="User:Juergen.schumacher.attensity.com">Juergen Schumacher</a>, <a href="http://wiki.eclipse.org/User:Andreas.Weber.empolis.com" title="User:Andreas.Weber.empolis.com">Andreas Weber</a> and <a href="http://wiki.eclipse.org/User:Drazen.cindric.attensity.com" title="User:Drazen.cindric.attensity.com">Drazen Cindric</a> and <a href="http://wiki.eclipse.org/index.php?title=SMILA/Documentation/Bundle_org.eclipse.smila.processing.pipelets.xmlprocessing&amp;action=credits" title="SMILA/Documentation/Bundle org.eclipse.smila.processing.pipelets.xmlprocessing">others</a>.</p>
<p id="footerviews">This page has been accessed 2,577 times.</p>
</div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-910670-4");
pageTracker._trackPageview();
</script>
<!-- <div class="visualClear"></div> -->
<script type="text/javascript">if (window.runOnloadHook) runOnloadHook();</script>
</div>
<!-- Served in 0.299 secs. --></body></html>