Modified: websites/production/camel/content/scripting-languages-context.html
==============================================================================
--- websites/production/camel/content/scripting-languages-context.html 
(original)
+++ websites/production/camel/content/scripting-languages-context.html Fri Sep  
6 08:19:34 2013
@@ -93,54 +93,8 @@
 </div>
 
 
-<h3><a shape="rect" 
name="ScriptingLanguagesContext-Attributes"></a>Attributes</h3>
-
-<p>You can add your own attributes with the <tt>attribute(name, value)</tt> 
DSL method, such as:</p>
-
-<p>In the sample below we add an attribute <tt>user</tt> that is an object we 
already have instantiated as myUser. This object has a getFirstName() method 
that we want to set as header on the message. We use the groovy language to 
concat the first and last name into a single string that is returned.</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent 
panelContent">
-<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[
-from("direct:in").setHeader("name").groovy("'$user.firstName 
$user.lastName'").attribute("user", myUser).to("seda:users");
-]]></script>
-</div></div>
-
-<h3><a shape="rect" 
name="ScriptingLanguagesContext-Anyscriptinglanguage"></a>Any scripting 
language</h3>
-<p>Camel can run any JSR-223 scripting languages using the <tt>script</tt> DSL 
method such as:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent 
panelContent">
-<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[
-from("direct:in").setHeader("firstName").script("jaskel", 
"user.firstName").attribute("user", myUser).to("seda:users");
-]]></script>
-</div></div>
-
-<p>This is a bit different using the Spring DSL where you use the 
<b>expression</b> element that doesn't support setting attributes (yet):</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent 
panelContent">
-<script class="theme: Default; brush: xml; gutter: false" 
type="syntaxhighlighter"><![CDATA[
-    &lt;from uri="direct:in"/&gt;
-    &lt;setHeader headerName="firstName"&gt;
-        &lt;expression language="jaskel"&gt;user.firstName&lt;/expression&gt;
-    &lt;/setHeader&gt;
-    &lt;to uri="seda:users"/&gt;
-]]></script>
-</div></div>
-
-<p>You can also use predicates e.g. in a Filter:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent 
panelContent">
-<script class="theme: Default; brush: xml; gutter: false" 
type="syntaxhighlighter"><![CDATA[
-    &lt;filter&gt;
-        &lt;language 
language="beanshell"&gt;request.getHeaders().get("Foo").equals("Bar")&lt;/language&gt;
-        &lt;to uri="direct:next" /&gt;
-    &lt;/filter&gt;
-]]></script>
-</div></div>
-
 <p>See <a shape="rect" href="scripting-languages.html" title="Scripting 
Languages">Scripting Languages</a> for the list of languages with explicit DSL 
support.</p>
 
-<p>Some languages without specific DSL support but known to work with these 
generic methods include:</p>
-<div class="table-wrap">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" 
class="confluenceTh">Language</th><th colspan="1" rowspan="1" 
class="confluenceTh">Implementation</th><th colspan="1" rowspan="1" 
class="confluenceTh">language="..." value</th></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd">BeanShell</td><td colspan="1" rowspan="1" 
class="confluenceTd"><a shape="rect" class="external-link" 
href="http://svn.apache.org/repos/asf/servicemix/m2-repo/org/beanshell/bsh/2.0b5/bsh-2.0b5.jar";>BeanShell
 2.0b5</a></td><td colspan="1" rowspan="1" 
class="confluenceTd"><tt>beanshell</tt> or 
<tt>bsh</tt></td></tr></tbody></table>
-</div>
-
-
 <h3><a shape="rect" 
name="ScriptingLanguagesContext-AdditionalargumentstoScriptingEngine"></a>Additional
 arguments to ScriptingEngine</h3>
 <p><b>Available as of Camel 2.8</b></p>
 
@@ -208,7 +162,7 @@ This is done using the following syntax:
 <p>If you use maven you could just add the following to your pom.xml, 
substituting the version number for the latest &amp; greatest release (see <a 
shape="rect" href="download.html" title="Download">the download page for the 
latest versions</a>).</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent 
panelContent">
-<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[
+<script class="theme: Default; brush: xml; gutter: false" 
type="syntaxhighlighter"><![CDATA[
 &lt;dependency&gt;
   &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
   &lt;artifactId&gt;camel-script&lt;/artifactId&gt;

Modified: websites/production/camel/content/scripting-languages.html
==============================================================================
--- websites/production/camel/content/scripting-languages.html (original)
+++ websites/production/camel/content/scripting-languages.html Fri Sep  6 
08:19:34 2013
@@ -107,54 +107,8 @@
 </div>
 
 
-<h3><a shape="rect" name="ScriptingLanguages-Attributes"></a>Attributes</h3>
-
-<p>You can add your own attributes with the <tt>attribute(name, value)</tt> 
DSL method, such as:</p>
-
-<p>In the sample below we add an attribute <tt>user</tt> that is an object we 
already have instantiated as myUser. This object has a getFirstName() method 
that we want to set as header on the message. We use the groovy language to 
concat the first and last name into a single string that is returned.</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent 
panelContent">
-<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[
-from("direct:in").setHeader("name").groovy("'$user.firstName 
$user.lastName'").attribute("user", myUser).to("seda:users");
-]]></script>
-</div></div>
-
-<h3><a shape="rect" name="ScriptingLanguages-Anyscriptinglanguage"></a>Any 
scripting language</h3>
-<p>Camel can run any JSR-223 scripting languages using the <tt>script</tt> DSL 
method such as:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent 
panelContent">
-<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[
-from("direct:in").setHeader("firstName").script("jaskel", 
"user.firstName").attribute("user", myUser).to("seda:users");
-]]></script>
-</div></div>
-
-<p>This is a bit different using the Spring DSL where you use the 
<b>expression</b> element that doesn't support setting attributes (yet):</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent 
panelContent">
-<script class="theme: Default; brush: xml; gutter: false" 
type="syntaxhighlighter"><![CDATA[
-    &lt;from uri="direct:in"/&gt;
-    &lt;setHeader headerName="firstName"&gt;
-        &lt;expression language="jaskel"&gt;user.firstName&lt;/expression&gt;
-    &lt;/setHeader&gt;
-    &lt;to uri="seda:users"/&gt;
-]]></script>
-</div></div>
-
-<p>You can also use predicates e.g. in a Filter:</p>
-<div class="code panel" style="border-width: 1px;"><div class="codeContent 
panelContent">
-<script class="theme: Default; brush: xml; gutter: false" 
type="syntaxhighlighter"><![CDATA[
-    &lt;filter&gt;
-        &lt;language 
language="beanshell"&gt;request.getHeaders().get("Foo").equals("Bar")&lt;/language&gt;
-        &lt;to uri="direct:next" /&gt;
-    &lt;/filter&gt;
-]]></script>
-</div></div>
-
 <p>See <a shape="rect" href="scripting-languages.html" title="Scripting 
Languages">Scripting Languages</a> for the list of languages with explicit DSL 
support.</p>
 
-<p>Some languages without specific DSL support but known to work with these 
generic methods include:</p>
-<div class="table-wrap">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" 
class="confluenceTh">Language</th><th colspan="1" rowspan="1" 
class="confluenceTh">Implementation</th><th colspan="1" rowspan="1" 
class="confluenceTh">language="..." value</th></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd">BeanShell</td><td colspan="1" rowspan="1" 
class="confluenceTd"><a shape="rect" class="external-link" 
href="http://svn.apache.org/repos/asf/servicemix/m2-repo/org/beanshell/bsh/2.0b5/bsh-2.0b5.jar";>BeanShell
 2.0b5</a></td><td colspan="1" rowspan="1" 
class="confluenceTd"><tt>beanshell</tt> or 
<tt>bsh</tt></td></tr></tbody></table>
-</div>
-
-
 <h3><a shape="rect" 
name="ScriptingLanguages-AdditionalargumentstoScriptingEngine"></a>Additional 
arguments to ScriptingEngine</h3>
 <p><b>Available as of Camel 2.8</b></p>
 
@@ -222,7 +176,7 @@ This is done using the following syntax:
 <p>If you use maven you could just add the following to your pom.xml, 
substituting the version number for the latest &amp; greatest release (see <a 
shape="rect" href="download.html" title="Download">the download page for the 
latest versions</a>).</p>
 
 <div class="code panel" style="border-width: 1px;"><div class="codeContent 
panelContent">
-<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[
+<script class="theme: Default; brush: xml; gutter: false" 
type="syntaxhighlighter"><![CDATA[
 &lt;dependency&gt;
   &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
   &lt;artifactId&gt;camel-script&lt;/artifactId&gt;


Reply via email to