[jboss-svn-commits] JBL Code SVN: r34451 - in labs/jbossrules/trunk/drools-docs: drools-docs-expert/src/main/docbook/en-US/Chapter-Authoring and 33 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Mon Aug 2 05:31:12 EDT 2010


Author: ge0ffrey
Date: 2010-08-02 05:31:09 -0400 (Mon, 02 Aug 2010)
New Revision: 34451

Modified:
   labs/jbossrules/trunk/drools-docs/doc-authoring-guideline-and-cheatsheet.txt
   labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Authoring/Section-Decision_Tables.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Authoring/Section-Templates.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Examples/Section-BankingExample.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Examples/Section-FibonacciExample.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Examples/Section-HelloWorldExample.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Examples/Section-HonestPoliticianExample.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Examples/Section-NumberGuessExample.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Examples/Section-PetStoreExample.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Examples/Section-PricingExample.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Examples/Section-QuickStart.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Examples/Section-ShoppingExample.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Examples/Section-StateExample.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Examples/Section-TroubleTicketExample.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-IDE/Chapter-QuickStart.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Introduction/Section-What_is_a_Rule_Engine.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-JSR94/Section-How_To_Use.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Language_Reference/Section-Package.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Language_Reference/Section-Rule.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Language_Reference/Section-TypeDeclaration.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Quick_Start/Section-A_Little_More_Theory.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Quick_Start/Section-More_On_Building_And_Deploying.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Quick_Start/Section-The_Basics.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Rule_Engine/Section-Rules.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Rule_Engine/Section-The_Drools_Rule_Engine.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Rule_Language/Section-Package.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Rule_Language/Section-TypeDeclaration.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-User_Guide/Section-Building.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-User_Guide/Section-Deploying.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-User_Guide/Section-Running.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-flow/src/main/docbook/en-US/Chapter-API/Chapter-API.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-flow/src/main/docbook/en-US/Chapter-BPMN2/Chapter-BPMN2.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-flow/src/main/docbook/en-US/Chapter-DomainSpecificProcesses/Chapter-DomainSpecificProcesses.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-flow/src/main/docbook/en-US/Chapter-Flow/Chapter-RuleFlow.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-flow/src/main/docbook/en-US/Chapter-GettingStarted/Chapter-GettingStarted.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-flow/src/main/docbook/en-US/Chapter-HumanTasks/Chapter-HumanTasks.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-flow/src/main/docbook/en-US/Chapter-Persistence/Chapter-Persistence.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-flow/src/main/docbook/en-US/Chapter-RulesAndProcesses/Chapter-RulesAndProcesses.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-flow/src/main/docbook/en-US/Chapter-Walkthrough/Chapter-Walkthrough.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-fusion/src/main/docbook/en-US/Chapter-Features/Chapter-EventProcessingModes/Section-EventProcessingModes_CloudMode.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-fusion/src/main/docbook/en-US/Chapter-Features/Chapter-EventProcessingModes/Section-EventProcessingModes_StreamMode.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-fusion/src/main/docbook/en-US/Chapter-Features/Chapter-Events/Section-Events_EventsMetadata.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-fusion/src/main/docbook/en-US/Chapter-Features/Chapter-RulebasePartitioning/Section-RulebasePartitioning_HowToConfigurePartitioning.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-fusion/src/main/docbook/en-US/Chapter-Features/Chapter-RulebasePartitioning/Section-RulebasePartitioning_MultithreadingManagement.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-fusion/src/main/docbook/en-US/Chapter-Features/Chapter-SessionClock/Section-SessionClock_AvailableClockImplementations.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-fusion/src/main/docbook/en-US/Chapter-Features/Chapter-StreamsSupport/Section-StreamsSupport_DeclaringAndUsingStreams.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-guvnor/src/main/docbook/en-US/Chapter-Guvnor/Section-UserGuide.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Camel/Section-API/Section-CamelRoutesCreation.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Camel/Section-API/Section-CreatingDroolsCommands.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Camel/Section-API/Section-CreatingOurCamelContext.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Camel/Section-API/Section-RegisteringKnowledgeSession.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Camel/Section-API/Section-SendingMessagesExchanges.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-API/Section-API.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-AbortWorkItemCommand.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-BatchExecutionCommand.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-Commands.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-CompleteWorkItemCommand.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-FireAllRulesCommand.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-GetGlobalCommand.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-GetObjectCommand.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-GetObjectsCommand.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-InsertElementsCommand.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-InsertObjectCommand.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-ModifyCommand.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-QueryCommand.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-RetractCommand.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-SetGlobalCommand.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-SignalEventCommand.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-StartProcessCommand.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-introduction/src/main/docbook/en-US/Chapter-Release_Notes/Section-Upgrade_tips.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-introduction/src/main/docbook/en-US/Chapter-Release_Notes/Section-What_is_new_Drools_5.0.0.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-planner/src/main/docbook/en-US/Chapter-Benchmarking_and_tweaking/Chapter-Benchmarking_and_tweaking.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-planner/src/main/docbook/en-US/Chapter-Local_search/Chapter-Local_search.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-planner/src/main/docbook/en-US/Chapter-Planner_configuration/Chapter-Planner_configuration.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-planner/src/main/docbook/en-US/Chapter-Planner_introduction/Chapter-Planner_introduction.xml
   labs/jbossrules/trunk/drools-docs/drools-docs-planner/src/main/docbook/en-US/Chapter-Score_calculation/Chapter-Score_calculation.xml
Log:
Migration changes of JDOCBOOKSTYLE-4. Needs the jbossorg-docbook-xslt 1.1.1 to actively highlight which will be released soon.

Modified: labs/jbossrules/trunk/drools-docs/doc-authoring-guideline-and-cheatsheet.txt
===================================================================
--- labs/jbossrules/trunk/drools-docs/doc-authoring-guideline-and-cheatsheet.txt	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/doc-authoring-guideline-and-cheatsheet.txt	2010-08-02 09:31:09 UTC (rev 34451)
@@ -48,9 +48,9 @@
   Do not use <programlisting> inside <para> as it is a paragraph style
   (which gives code coloring bugs).
 
-* Use <programlisting role="JAVA"> for java code to get color highlighting.
+* Use <programlisting language="java"> for java code to get color highlighting.
 
-* Use <programlisting role="XML"> for XML code to get color highlighting.
+* Use <programlisting language="xml"> for XML code to get color highlighting.
 
 * Use <example> with <programlisting> for example code:
     <example>

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Authoring/Section-Decision_Tables.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Authoring/Section-Decision_Tables.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Authoring/Section-Decision_Tables.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -738,7 +738,7 @@
 
       <para>The code to run this is simple:</para>
 
-      <programlisting role="JAVA">DecisionTableConfiguration dtableconfiguration = KnowledgeBuilderFactory.newDecisionTableConfiguration();
+      <programlisting language="java">DecisionTableConfiguration dtableconfiguration = KnowledgeBuilderFactory.newDecisionTableConfiguration();
 dtableconfiguration.setInputType( DecisionTableInputType.XLS );
 
 KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Authoring/Section-Templates.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Authoring/Section-Templates.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Authoring/Section-Templates.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -132,7 +132,7 @@
 limit
 word</programlisting>
         <para>the following Java class could be used:</para>
-        <programlisting role="JAVA">
+        <programlisting language="java">
 public class ParamSet {
     //...
     public ParamSet( String t, int l, boolean w ) {
@@ -152,7 +152,7 @@
         for a template file <code>template.drl</code>, we can now proceed to
         request its expansion.</para>
 
-        <programlisting role="JAVA">
+        <programlisting language="java">
 Collection&lt;ParamSet&gt; paramSets = new ArrayList&lt;ParamSet&gt;();
 // populate paramSets
 paramSets.add( new ParamSet( "Foo", 42, true ) );
@@ -167,7 +167,7 @@
         feed this to a <code>KnowledgeBuilder</code> and continue with the
         resulting Knowledge Packages.
 
-        <programlisting role="JAVA">
+        <programlisting language="java">
 KnowledgeBase kBase = KnowledgeBaseFactory.newKnowledgeBase();
 KnowledgeBuilder kBuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
 Reader rdr = new StringReader( drl );
@@ -189,7 +189,7 @@
         would use the same approach, just differing in the way the
         map collection is composed.</para>
 
-        <programlisting role="JAVA">
+        <programlisting language="java">
 Collection&lt;Map&lt;String,Object&gt;&gt; paramMaps = new ArrayList&lt;Map&lt;String,Object&gt;&gt;();
 // populate paramMaps
 ObjectDataCompiler converter = new ObjectDataCompiler();
@@ -206,7 +206,7 @@
        objects of class <code>Item</code> containing a couple of integer fields and an
        <code>enum</code> field of type <code>ItemCode</code>.</para>
 
-       <programlisting role="JAVA">
+       <programlisting language="java">
 public class Item {
     // ...
     public Item( String n, int p, int w, ItemCode c ){...}
@@ -247,7 +247,7 @@
          parameter sets have to be set up. First, there is class
          <code>ParamSet</code>, for storing a set of actual parameters.</para>
 
-         <programlisting role="JAVA">
+         <programlisting language="java">
 public class ParamSet {
     //...
     private EnumSet&lt;ItemCode&gt; codeSet;
@@ -280,7 +280,7 @@
         takes care of this, using a Knowledge Base, the <code>InputStream</code>
         with the rule template and the collection of parameter sets.</para>     
 
-        <programlisting role="JAVA">
+        <programlisting language="java">
 public class Expander {
 	
     public void expand( KnowledgeBase kBase, InputStream is, Collection&lt;?&gt; act )
@@ -308,7 +308,7 @@
         method shown above. Then we launch a stateful session, insert a
         few <code>Item</code>, and watch what happens.</para>
 
-        <programlisting role="JAVA">
+        <programlisting language="java">
 Collection&lt;ParamSet&gt; cfl = new ArrayList&lt;ParamSet&gt;();
 cfl.add( new ParamSet( "weight",  10,  99, EnumSet.of( ItemCode.LOCK, ItemCode.STOCK ) ) );
 cfl.add( new ParamSet( "price",   10,  50, EnumSet.of( ItemCode.BARREL ) ) );

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Examples/Section-BankingExample.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Examples/Section-BankingExample.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Examples/Section-BankingExample.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -28,7 +28,7 @@
     <example>
       <title>Banking Tutorial: RuleRunner</title>
 
-      <programlisting role="JAVA"><![CDATA[public class RuleRunner {
+      <programlisting language="java"><![CDATA[public class RuleRunner {
 
     public RuleRunner() {
     }
@@ -69,7 +69,7 @@
     <example>
       <title>Banking Tutorial : Java Example1</title>
 
-      <programlisting role="JAVA">public class Example1 {
+      <programlisting language="java">public class Example1 {
     public static void main(String[] args) throws Exception {
         new RuleRunner().runRules( new String[] { "Example1.drl" },
                                    new Object[0] );
@@ -108,7 +108,7 @@
     <example>
       <title>Banking Tutorial: Java Example2</title>
 
-      <programlisting role="JAVA">public class Example2 {
+      <programlisting language="java">public class Example2 {
     public static void main(String[] args) throws Exception {
         Number[] numbers = new Number[] {wrap(3), wrap(1), wrap(4), wrap(1), wrap(5)};
         new RuleRunner().runRules( new String[] { "Example2.drl" },
@@ -175,7 +175,7 @@
     <example>
       <title>Banking Tutorial: Example3.java</title>
 
-      <programlisting role="JAVA">public class Example3 {
+      <programlisting language="java">public class Example3 {
     public static void main(String[] args) throws Exception {
         Number[] numbers = new Number[] {wrap(3), wrap(1), wrap(4), wrap(1), wrap(5)};
         new RuleRunner().runRules( new String[] { "Example3.drl" },
@@ -238,7 +238,7 @@
     <example>
       <title>Banking Tutorial: Class Cashflow</title>
 
-      <programlisting role="JAVA">public class Cashflow {
+      <programlisting language="java">public class Cashflow {
     private Date   date;
     private double amount;
 
@@ -284,7 +284,7 @@
     <example>
       <title>Banking Tutorial: Example4.java</title>
 
-      <programlisting role="JAVA">public class Example4 {
+      <programlisting language="java">public class Example4 {
     public static void main(String[] args) throws Exception {
         Object[] cashflows = {
             new Cashflow(new SimpleDate("01/01/2007"), 300.00),
@@ -308,7 +308,7 @@
     <example>
       <title>Banking Tutorial: Class SimpleDate</title>
 
-      <programlisting role="JAVA">public class SimpleDate extends Date {
+      <programlisting language="java">public class SimpleDate extends Date {
     private static final SimpleDateFormat format = new SimpleDateFormat("dd/MM/yyyy");
     
     public SimpleDate(String datestr) throws Exception {             
@@ -365,7 +365,7 @@
     <example>
       <title>Banking Tutorial: Class TypedCashflow</title>
 
-      <programlisting role="JAVA">public class TypedCashflow extends Cashflow {
+      <programlisting language="java">public class TypedCashflow extends Cashflow {
     public static final int CREDIT = 0;
     public static final int DEBIT  = 1;
 
@@ -403,7 +403,7 @@
     <example>
       <title>Banking Tutorial: Example5.java</title>
 
-      <programlisting role="JAVA">public class Example5 {
+      <programlisting language="java">public class Example5 {
     public static void main(String[] args) throws Exception {      
         Object[] cashflows = {
             new TypedCashflow(new SimpleDate("01/01/2007"),    
@@ -484,7 +484,7 @@
     <example>
       <title>Banking Tutorial: Class Account</title>
 
-      <programlisting role="JAVA">public class Account {
+      <programlisting language="java">public class Account {
     private long   accountNo;
     private double balance = 0;
 
@@ -524,7 +524,7 @@
     <example>
       <title>Banking Tutorial: Class AllocatedCashflow</title>
 
-      <programlisting role="JAVA">public class AllocatedCashflow extends TypedCashflow {
+      <programlisting language="java">public class AllocatedCashflow extends TypedCashflow {
     private Account account;
 
     public AllocatedCashflow() {
@@ -560,7 +560,7 @@
     <example>
       <title>Banking Tutorial: Example5.java</title>
 
-      <programlisting role="JAVA">public class Example6 {
+      <programlisting language="java">public class Example6 {
     public static void main(String[] args) throws Exception {      
         Account acc1 = new Account(1);
         Account acc2 = new Account(2);

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Examples/Section-FibonacciExample.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Examples/Section-FibonacciExample.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Examples/Section-FibonacciExample.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -31,7 +31,7 @@
     <example>
       <title>Fibonacci Class</title>
 
-      <programlisting role="JAVA">public static class Fibonacci {
+      <programlisting language="java">public static class Fibonacci {
     private int  sequence;
     private long value;
 
@@ -97,7 +97,7 @@
     <example>
       <title>Fibonacci Example: Execution</title>
 
-      <programlisting role="JAVA">ksession.insert( new Fibonacci( 50 ) );
+      <programlisting language="java">ksession.insert( new Fibonacci( 50 ) );
 ksession.fireAllRules();</programlisting>
     </example>
 

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Examples/Section-HelloWorldExample.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Examples/Section-HelloWorldExample.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Examples/Section-HelloWorldExample.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -40,7 +40,7 @@
   <example>
     <title>HelloWorld: Creating the KnowledgeBase and Session</title>
 
-    <programlisting role="JAVA">final KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
+    <programlisting language="java">final KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
 
 // this will parse and compile in one step
 kbuilder.add(ResourceFactory.newClassPathResource("HelloWorld.drl",
@@ -80,7 +80,7 @@
   <example>
     <title>HelloWorld: Event logging and Auditing</title>
 
-    <programlisting role="JAVA">// setup the debug listeners
+    <programlisting language="java">// setup the debug listeners
 ksession.addEventListener( new DebugAgendaEventListener() );
 ksession.addEventListener( new DebugWorkingMemoryEventListener() );
         
@@ -96,7 +96,7 @@
   <example>
     <title>HelloWorld example: Message Class</title>
 
-    <programlisting role="JAVA">public static class Message {
+    <programlisting language="java">public static class Message {
     public static final int HELLO   = 0;
     public static final int GOODBYE = 1;
 
@@ -117,7 +117,7 @@
   <example>
     <title>HelloWorld: Execution</title>
 
-    <programlisting role="JAVA">final Message message = new Message();
+    <programlisting language="java">final Message message = new Message();
 message.setMessage("Hello World");
 message.setStatus(Message.HELLO);
 ksession.insert(message);

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Examples/Section-HonestPoliticianExample.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Examples/Section-HonestPoliticianExample.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Examples/Section-HonestPoliticianExample.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -28,7 +28,7 @@
   <example>
     <title>Class Politician</title>
 
-      <programlisting role="JAVA">public class Politician {
+      <programlisting language="java">public class Politician {
     private String name;
     private boolean honest;
     ...
@@ -37,7 +37,7 @@
   <example>
     <title>Honest Politician: Execution</title>
 
-    <programlisting role="JAVA">Politician blair = new Politician("blair", true);
+    <programlisting language="java">Politician blair = new Politician("blair", true);
 Politician bush = new Politician("bush", true);
 Politician chirac = new Politician("chirac", true);
 Politician schroder = new Politician("schroder", true);

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Examples/Section-NumberGuessExample.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Examples/Section-NumberGuessExample.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Examples/Section-NumberGuessExample.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -21,7 +21,7 @@
   <example>
     <title>Creating the Number Guess RuleBase: NumberGuessExample.main() - part 1</title>
 
-        <programlisting role="JAVA">final KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
+        <programlisting language="java">final KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
 kbuilder.add( ResourceFactory.newClassPathResource( "NumberGuess.drl",
                                                     ShoppingExample.class ),
               ResourceType.DRL );
@@ -43,7 +43,7 @@
   <example>
     <title>Starting the RuleFlow: NumberGuessExample.main() - part 2</title>
 
-    <programlisting role="JAVA">final StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
+    <programlisting language="java">final StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
 
 KnowledgeRuntimeLogger logger =
   KnowledgeRuntimeLoggerFactory.newFileLogger(ksession, "log/numberguess");

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Examples/Section-PetStoreExample.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Examples/Section-PetStoreExample.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Examples/Section-PetStoreExample.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -80,7 +80,7 @@
       <example>
         <title>Creating the PetStore RuleBase in PetStore.main</title>
 
-        <programlisting role="JAVA"><![CDATA[KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
+        <programlisting language="java"><![CDATA[KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
 
 kbuilder.add( ResourceFactory.newClassPathResource( "PetStore.drl",
                                                     PetStore.class ),
@@ -119,7 +119,7 @@
       <example>
         <title>Firing the Rules - extract from CheckoutCallBack.checkout()</title>
 
-        <programlisting role="JAVA"><![CDATA[public String checkout(JFrame frame, List<Product> items) {
+        <programlisting language="java"><![CDATA[public String checkout(JFrame frame, List<Product> items) {
     Order order = new Order();
 
     // Iterate through list and add to cart
@@ -184,7 +184,7 @@
       <example>
         <title>Package, Imports, Globals and Dialect: extract from PetStore.drl</title>
 
-        <programlisting role="JAVA">package org.drools.examples
+        <programlisting language="java">package org.drools.examples
 
 import org.drools.WorkingMemory
 import org.drools.examples.PetStore.Order
@@ -216,7 +216,7 @@
       <example>
         <title>Java Functions in the Rules: extract from PetStore.drl</title>
 
-        <programlisting role="JAVA"><![CDATA[function void doCheckout(JFrame frame, WorkingMemory workingMemory) {
+        <programlisting language="java"><![CDATA[function void doCheckout(JFrame frame, WorkingMemory workingMemory) {
     Object[] options = {"Yes",
                         "No"};
                             

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Examples/Section-PricingExample.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Examples/Section-PricingExample.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Examples/Section-PricingExample.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -37,7 +37,7 @@
       The rules are loaded, the facts inserted and a Stateless Session is
       created. What is different is how the rules are added.</para>
 
-      <programlisting role="JAVA">DecisionTableConfiguration dtableconfiguration =
+      <programlisting language="java">DecisionTableConfiguration dtableconfiguration =
     KnowledgeBuilderFactory.newDecisionTableConfiguration();
         dtableconfiguration.setInputType( DecisionTableInputType.XLS );
 

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Examples/Section-QuickStart.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Examples/Section-QuickStart.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Examples/Section-QuickStart.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -278,7 +278,7 @@
 
     </para>
 
-    <programlisting role="JAVA">BRXMLPersitence read = BRXMLPersitence.getInstance();
+    <programlisting language="java">BRXMLPersitence read = BRXMLPersitence.getInstance();
 BRDRLPersistence write = BRDRLPersistence.getInstance();
 String brl = ... read from the .brl file as needed...
 String outputDRL = write.marshall(read.unmarshal(brl));
@@ -409,7 +409,7 @@
       created when executing the rules engine. To create an audit log, use the
       following code:</para>
 
-      <programlisting role="JAVA">    WorkingMemory workingMemory = ruleBase.newWorkingMemory();
+      <programlisting language="java">    WorkingMemory workingMemory = ruleBase.newWorkingMemory();
     // create a new Working Memory Logger, that logs to file.
     WorkingMemoryFileLogger logger = new WorkingMemoryFileLogger(workingMemory);
     // an event.log file is created in the log dir (which must exist)

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Examples/Section-ShoppingExample.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Examples/Section-ShoppingExample.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Examples/Section-ShoppingExample.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -20,7 +20,7 @@
 
 			<para>The following is a listing of the interesting parts that are used to launch the example:</para>
 
-			<programlisting role="JAVA">Customer mark = new Customer( "mark",
+			<programlisting language="java">Customer mark = new Customer( "mark",
                               0 );
 session.insert( mark );
 Product shoes = new Product( "shoes",

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Examples/Section-StateExample.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Examples/Section-StateExample.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Examples/Section-StateExample.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -39,7 +39,7 @@
       <example>
         <title>State Class</title>
 
-        <programlisting role="JAVA">public class State {
+        <programlisting language="java">public class State {
     public static final int NOTRUN   = 0;
     public static final int FINISHED = 1;
 
@@ -63,7 +63,7 @@
       <example>
         <title>Salience State: Execution</title>
 
-        <programlisting role="JAVA">State a = new State( "A" );
+        <programlisting language="java">State a = new State( "A" );
 State b = new State( "B" );
 State c = new State( "C" );
 final State d = new State( "D" );
@@ -259,7 +259,7 @@
       <example>
         <title>Inserting a Dynamic Fact</title>
   
-        <programlisting role="JAVA">// By setting dynamic to TRUE, Drools will use JavaBean
+        <programlisting language="java">// By setting dynamic to TRUE, Drools will use JavaBean
 // PropertyChangeListeners so you don't have to call modify or update().
 final boolean dynamic = true;
 
@@ -275,7 +275,7 @@
       <example>
         <title>Setter Example with PropertyChangeSupport</title>
   
-        <programlisting role="JAVA">public void setState(final int newState) {
+        <programlisting language="java">public void setState(final int newState) {
     int oldState = this.state;
     this.state = newState;
     this.changes.firePropertyChange( "state",

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Examples/Section-TroubleTicketExample.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Examples/Section-TroubleTicketExample.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Examples/Section-TroubleTicketExample.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -13,7 +13,7 @@
 			<example>
 				<title>Trouble Ticket Example : Creating and Inserting Facts</title>
 
-				<programlisting role="JAVA">Customer a = new Customer( "A",
+				<programlisting language="java">Customer a = new Customer( "A",
                            "Gold" );
 Customer b = new Customer( "B",
                            "Platinum" );
@@ -180,7 +180,7 @@
 			<para>Referring to the above audit log, we can see the events as they happen. Once the rules start firing, the first items are the "Activation Executed" for the new tickets, as expected (they do nothing, just log the fact). Note the "Activation executed" item for the platinum ticket - that is the next one to go (remember it has the default salience, so it happens after the "New ticket" rule, but otherwise it is immediate - there is no "duration" delay for it). The platinum activation results in a Object modification (which is the escalation) - this in turn creates an activation record for the "escalate ticket" rule - which is what we wanted. Straight after that it executes the action to escalate the ticket.</para>
 
 			<para>The next event to occur is due to the:</para>
-			<programlisting role="JAVA">t3.setStatus( "Done" );
+			<programlisting language="java">t3.setStatus( "Done" );
 
 session.update( ft3,
                 t3 );

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-IDE/Chapter-QuickStart.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-IDE/Chapter-QuickStart.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-IDE/Chapter-QuickStart.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -305,7 +305,7 @@
       you can then deploy it as a binary file. Alternatively, you can use the
       following snippet of code to convert the brl to a drl rule.</para>
 
-    <programlisting role="JAVA">BRXMLPersistence read = BRXMLPersistence.getInstance();
+    <programlisting language="java">BRXMLPersistence read = BRXMLPersistence.getInstance();
 BRDRLPersistence write = BRDRLPersistence.getInstance();
 String brl = ... // read from the .brl file as needed...
 String outputDRL = write.marshall(read.unmarshal(brl));
@@ -436,7 +436,7 @@
       created when executing the rules engine. To create an audit log, use the
       following code:</para>
 
-      <programlisting role="JAVA">WorkingMemory workingMemory = ruleBase.newWorkingMemory();
+      <programlisting language="java">WorkingMemory workingMemory = ruleBase.newWorkingMemory();
 // Create a new Working Memory Logger, that logs to file.
 WorkingMemoryFileLogger logger = new WorkingMemoryFileLogger(workingMemory);
 // An event.log file is created in the subdirectory log (which must exist)

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Introduction/Section-What_is_a_Rule_Engine.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Introduction/Section-What_is_a_Rule_Engine.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Introduction/Section-What_is_a_Rule_Engine.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -68,7 +68,7 @@
     structure using First Order Logic for reasoning over knowledge
     representation.</para>
 
-    <programlisting role="JAVA">when
+    <programlisting language="java">when
     &lt;conditions&gt;
 then
     &lt;actions&gt;;</programlisting>

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-JSR94/Section-How_To_Use.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-JSR94/Section-How_To_Use.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-JSR94/Section-How_To_Use.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -22,7 +22,7 @@
     <example>
         <title>Automatic RuleServiceProvider Registration</title>
 
-        <programlisting role="JAVA">// RuleServiceProviderImpl is registered to "http://drools.org/"
+        <programlisting language="java">// RuleServiceProviderImpl is registered to "http://drools.org/"
 // via a static initialization block
 Class.forName("org.drools.jsr94.rules.RuleServiceProviderImpl");
 
@@ -52,7 +52,7 @@
       <title>Registering a LocalRuleExecutionSet with the RuleAdministrator
       API</title>
 
-      <programlisting role="JAVA">// Get the RuleAdministration
+      <programlisting language="java">// Get the RuleAdministration
 RuleAdministrator ruleAdministrator = ruleServiceProvider.getRuleAdministrator();
 LocalRuleExecutionSetProvider ruleExecutionSetProvider =
   ruleAdministrator.getLocalRuleExecutionSetProvider( null );
@@ -80,7 +80,7 @@
     <example>
       <title>Specifying a DSL when registering a LocalRuleExecutionSet</title>
 
-      <programlisting role="JAVA">// Get the RuleAdministration
+      <programlisting language="java">// Get the RuleAdministration
 RuleAdministration ruleAdministrator = ruleServiceProvider.getRuleAdministrator();
 LocalRuleExecutionSetProvider ruleExecutionSetProvider =
   ruleAdministrator.getLocalRuleExecutionSetProvider( null );
@@ -109,7 +109,7 @@
     <example>
       <title>Register the RuleExecutionSet</title>
 
-      <programlisting role="JAVA">// Register the RuleExecutionSet with the RuleAdministrator
+      <programlisting language="java">// Register the RuleExecutionSet with the RuleAdministrator
 String uri = ruleExecutionSet.getName();
 ruleAdministrator.registerRuleExecutionSet(uri, ruleExecutionSet, null);</programlisting>
     </example>
@@ -124,7 +124,7 @@
     <example>
       <title>Getting the RuleRuntime</title>
 
-      <programlisting role="JAVA">RuleRuntime ruleRuntime = ruleServiceProvider.getRuleRuntime();</programlisting>
+      <programlisting language="java">RuleRuntime ruleRuntime = ruleServiceProvider.getRuleRuntime();</programlisting>
     </example>
 
     <para>To create a rule session you must use one of the two RuleRuntime
@@ -139,7 +139,7 @@
     <example>
       <title>Stateful Rule</title>
 
-      <programlisting role="JAVA">(StatefulRuleSession) session =
+      <programlisting language="java">(StatefulRuleSession) session =
   ruleRuntime.createRuleSession( uri,
                                  null,
                                  RuleRuntime.STATEFUL_SESSION_TYPE );
@@ -154,7 +154,7 @@
     <example>
       <title>Stateless</title>
 
-      <programlisting role="JAVA">(StatelessRuleSession) session =
+      <programlisting language="java">(StatelessRuleSession) session =
   ruleRuntime.createRuleSession( uri,
                                  null,
                                  RuleRuntime.STATELESS_SESSION_TYPE );
@@ -176,7 +176,7 @@
       the execution. In the following example the results are collected in a
       java.util.List which is used as global:</para>
 
-      <programlisting role="JAVA">java.util.List globalList = new java.util.ArrayList( );
+      <programlisting language="java">java.util.List globalList = new java.util.ArrayList( );
 java.util.Map map = new java.util.HashMap( );
 map.put( "list", globalList ); 
 //Open a stateless Session

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Language_Reference/Section-Package.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Language_Reference/Section-Package.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Language_Reference/Section-Package.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -120,7 +120,7 @@
         practice to set all global values before asserting any fact to the
         working memory. Example:</para>
 
-        <programlisting role="JAVA">List list = new ArrayList();
+        <programlisting language="java">List list = new ArrayList();
 WorkingMemory wm = rulebase.newStatefulSession();
 wm.setGlobal( "myGlobalList", list );
 </programlisting>

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Language_Reference/Section-Rule.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Language_Reference/Section-Rule.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Language_Reference/Section-Rule.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -2185,7 +2185,7 @@
         Accumulate Function implementation, the following is the
         implementation of the <literal>average</literal> function:</para>
 
-        <programlisting role="JAVA">/*
+        <programlisting language="java">/*
  * Copyright 2007 JBoss Inc
  * 
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -2402,7 +2402,7 @@
           flow groups. A fairly common paradigm is the activation of some
           agenda group, which could be done with the lengthy call:</para>
 
-          <programlisting role="JAVA">
+          <programlisting language="java">
 // give focus to the agenda group CleanUp
 kcontext.getKnowledgeRuntime().getAgenda().getAgendaGroup( "CleanUp" ).setFocus();</programlisting>
 

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Language_Reference/Section-TypeDeclaration.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Language_Reference/Section-TypeDeclaration.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Language_Reference/Section-TypeDeclaration.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -126,7 +126,7 @@
         <title>generated Java class for the previous Person fact type
         declaration</title>
 
-        <programlisting role="JAVA">public class Person implements Serializable {
+        <programlisting language="java">public class Person implements Serializable {
     private String name;
     private java.util.Date dateOfBirth;
     private Address address;

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Quick_Start/Section-A_Little_More_Theory.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Quick_Start/Section-A_Little_More_Theory.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Quick_Start/Section-A_Little_More_Theory.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -17,7 +17,7 @@
     like a rule expert and the answer to that is obvious, but let's summarize
     the differences nonetheless.</para>
 
-    <programlisting role="JAVA">public void helloWorld(Person person) {
+    <programlisting language="java">public void helloWorld(Person person) {
     if ( person.getName().equals( "Chuck" ) ) {
         System.out.println( "Hello Chuck" );
     }
@@ -139,7 +139,7 @@
     what is actually going on under the hood. Three classes will be used, as
     shown below.</para>
 
-    <programlisting role="JAVA">public class CashFlow {
+    <programlisting language="java">public class CashFlow {
     private Date   date;
     private double amount;
     private int    type;

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Quick_Start/Section-More_On_Building_And_Deploying.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Quick_Start/Section-More_On_Building_And_Deploying.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Quick_Start/Section-More_On_Building_And_Deploying.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -35,7 +35,7 @@
     <para>To use the above XML, the code is almost identical as before, except
     we change the resource type to <code>CHANGE_SET</code>.</para>
 
-    <programlisting role="JAVA">KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
+    <programlisting language="java">KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
 kbuilder.add( ResourceFactory.newClasspathResource( "myChangeSet.xml", getClass() ),
               ResourceType.CHANGE_SET );
 if ( kbuilder.hasErrors() ) {
@@ -85,7 +85,7 @@
     regular polling. We hope to add push-based updates and rebuilds in future
     versions.</para>
 
-    <programlisting role="JAVA">KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent( "MyAgent" );
+    <programlisting language="java">KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent( "MyAgent" );
 kagent.applyChangeSet( ResourceFactory.newUrlResource( url ) );
 KnowledgeBase kbase = kagent.getKnowledgeBase();</programlisting>
 
@@ -103,7 +103,7 @@
     </para>
 
     <para>For polling to occur, the polling and notifier services must be started:</para>
-<programlisting role="JAVA">ResourceFactory.getResourceChangeNotifierService().start();
+<programlisting language="java">ResourceFactory.getResourceChangeNotifierService().start();
 ResourceFactory.getResourceChangeScannerService().start();</programlisting>
 
 
@@ -137,7 +137,7 @@
         serve also when not using incremental change set processing (see the
         section bellow). When the kbase is recreated its configuration is
         reused, so the classloader is maintained.</para>
-<programlisting role="JAVA">KnowledgeBaseConfiguration kbaseConfig =
+<programlisting language="java">KnowledgeBaseConfiguration kbaseConfig =
     KnowledgeBaseFactory.newKnowledgeBaseConfiguration(null, customClassLoader);
 KnowledgeBase kbase =
     KnowledgeBaseFactory.newKnowledgeBase(kbaseConfig); //kbase with custom classloader
@@ -175,7 +175,7 @@
             The following code snippet creates a new Knowledge Agent with its
             "newInstace" property set to false
         </para>
-            <programlisting role="JAVA">KnowledgeAgentConfiguration aconf = KnowledgeAgentFactory.newKnowledgeAgentConfiguration();
+            <programlisting language="java">KnowledgeAgentConfiguration aconf = KnowledgeAgentFactory.newKnowledgeAgentConfiguration();
 aconf.setProperty("drools.agent.newInstance", "false");
 KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent("test agent", null, aconf);
             </programlisting>

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Quick_Start/Section-The_Basics.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Quick_Start/Section-The_Basics.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Quick_Start/Section-The_Basics.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -60,7 +60,7 @@
       <para>So let's start with a very simple example using a driving license
       application.</para>
 
-      <programlisting role="JAVA">public class Applicant {
+      <programlisting language="java">public class Applicant {
     private String name;
     private int age;
     private boolean valid;
@@ -105,7 +105,7 @@
       <code>KnowledgeBase</code>. A Knowledge Base is what we call our collection of
       compiled rules, which are compiled using the <code>KnowledgeBuilder</code>.</para>
 
-      <programlisting role="JAVA">KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
+      <programlisting language="java">KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
 kbuilder.add( ResourceFactory.newClassPathResource( "licenseApplication.drl", getClass() ),
               ResourceType.DRL );
 if ( kbuilder.hasErrors() ) {
@@ -122,7 +122,7 @@
       Now we are ready to build our session and execute against some
       data:</para>
 
-      <programlisting role="JAVA">StatelessKnowledgeSession ksession = kbase.newStatelessKnowledgeSession();
+      <programlisting language="java">StatelessKnowledgeSession ksession = kbase.newStatelessKnowledgeSession();
 Applicant applicant = new Applicant( "Mr John Smith", 16 );
 assertTrue( applicant.isValid() );
 ksession.execute( applicant );
@@ -138,7 +138,7 @@
       date of the application, and we'll also move the boolean valid field to the
       <code>Application</code> class.</para>
 
-      <programlisting role="JAVA">public class Applicant {
+      <programlisting language="java">public class Applicant {
     private String name;
     private int age;
     // getter and setter methods here
@@ -178,7 +178,7 @@
       shown below executes against an iterable list, where all collection
       elements are inserted before any matched rules are fired.</para>
 
-      <programlisting role="JAVA">StatelessKnowledgeSession ksession = kbase.newStatelessKnowledgeSession();
+      <programlisting language="java">StatelessKnowledgeSession ksession = kbase.newStatelessKnowledgeSession();
 Applicant applicant = new Applicant( "Mr John Smith", 16 );
 Application application = new Application();
 assertTrue( application() );
@@ -193,13 +193,13 @@
       <para>A <code>CommandFactory</code> is used to create commands, so that the following is
       equivalent to <code>execute(Iterable it)</code>:</para>
 
-      <programlisting role="JAVA">ksession.execute( CommandFactory.newInsertIterable( new Object[] { application, applicant } ) );
+      <programlisting language="java">ksession.execute( CommandFactory.newInsertIterable( new Object[] { application, applicant } ) );
 </programlisting>
 
       <para>Batch Executor and Command Factory are particularly useful when working
       with multiple Commands and with output identifiers for obtaining results.</para>
 
-      <programlisting role="JAVA">List&lt;Command&gt; cmds = new ArrayList&lt;Command&gt;();
+      <programlisting language="java">List&lt;Command&gt; cmds = new ArrayList&lt;Command&gt;();
 cmds.add( CommandFactory.newInsert( new Person( "Mr John Smith" ), "mrSmith" );
 cmds.add( CommandFactory.newInsert( new Person( "Mr John Doe" ), "mrDoe" );
 BatchExecutionResults results = ksession.execute( CommandFactory.newBatchExecution( cmds ) );
@@ -275,7 +275,7 @@
       has one sprinkler. If a fire starts in a room, we
       represent that with a single <code>Fire</code> instance.</para>
 
-      <programlisting role="JAVA">public class Room {
+      <programlisting language="java">public class Room {
     private String name
     // getter and setter methods here
 }
@@ -400,7 +400,7 @@
       this time we create a Stateful Session from the Knowledge Base, whereas
       before we created a Stateless Session.</para>
 
-      <programlisting role="JAVA">KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
+      <programlisting language="java">KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
 kbuilder.add( ResourceFactory.newClassPathResource( "fireAlarm.drl", getClass() ),
               ResourceType.DRL );
 if ( kbuilder.hasErrors() ) {
@@ -417,7 +417,7 @@
       allows the matched rules to fire, but without a fire that will
       just produce the health message.</para>
 
-      <programlisting role="JAVA">String[] names = new String[]{"kitchen", "bedroom", "office", "livingroom"};
+      <programlisting language="java">String[] names = new String[]{"kitchen", "bedroom", "office", "livingroom"};
 Map&lt;String,Room&gt; name2room = new HashMap&lt;String,Room&gt;();
 for( String name: names ){
     Room room = new Room( name );
@@ -439,7 +439,7 @@
       the engine, once <code>fireAllRules()</code> is called, the alarm is raised and the
       respective sprinklers are turned on.</para>
 
-      <programlisting role="JAVA">Fire kitchenFire = new Fire( name2room.get( "kitchen" ) );
+      <programlisting language="java">Fire kitchenFire = new Fire( name2room.get( "kitchen" ) );
 Fire officeFire = new Fire( name2room.get( "office" ) );
 
 FactHandle kitchenFireHandle = ksession.insert( kitchenFire );
@@ -455,7 +455,7 @@
       instances are retracted. This results in the sprinklers being turned off, the alarm
       being cancelled, and eventually the health message is printed again.</para>
 
-      <programlisting role="JAVA">ksession.retract( kitchenFireHandle );
+      <programlisting language="java">ksession.retract( kitchenFireHandle );
 ksession.retract( officeFireHandle );
 
 ksession.fireAllRules();</programlisting>

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Rule_Engine/Section-Rules.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Rule_Engine/Section-Rules.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Rule_Engine/Section-Rules.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -142,7 +142,7 @@
     </indexterm>
     Rule Set. A Package declares imports, global variables, functions and rules.</para>
 
-    <programlisting role="JAVA">
+    <programlisting language="java">
 <![CDATA[
 package com.sample
 
@@ -185,7 +185,7 @@
 
     <para>The example above is analogous to :</para>
 
-    <programlisting role="JAVA">
+    <programlisting language="java">
 <![CDATA[
 public void cheddarCheese(Cheese cheese) {
   if ( cheese.getType().equals("cheddar") {
@@ -257,18 +257,18 @@
     propositional statements connected with a single disjunctive
     connective.</para>
 
-    <programlisting role="JAVA">person.getEyeColor().equals("blue") || person.getEyeColor().equals("green")</programlisting>
+    <programlisting language="java">person.getEyeColor().equals("blue") || person.getEyeColor().equals("green")</programlisting>
 
     <para>This can be expressed using a disjunctive Conditional Element
     connective which actually results in the generation of two rules, to
     represent the two possible logic outcomes.</para>
 
-    <programlisting role="JAVA">Person( eyeColour == "blue" ) || Person( eyeColor == "green" )</programlisting>
+    <programlisting language="java">Person( eyeColour == "blue" ) || Person( eyeColor == "green" )</programlisting>
 
     <para>Disjunctive field constraints connectives could also be used and
     would not result in multiple rules.</para>
 
-    <programlisting role="JAVA">Person( eyeColour == "blue"||"green" )</programlisting>
+    <programlisting language="java">Person( eyeColour == "blue"||"green" )</programlisting>
 
     <para>Propositional Logic is not Turing complete, limiting the problems
     you can define, because it cannot express criteria for the structure of
@@ -289,13 +289,13 @@
     40" open proposition to check for the existence of a Module that is true
     for the specified criteria.</para>
 
-    <programlisting role="JAVA">public class Student {
+    <programlisting language="java">public class Student {
     private String       name;
     private List&amp;lt;Module&amp;gt; modules;
     ...
     }</programlisting>
 
-    <programlisting role="JAVA">    
+    <programlisting language="java">
     public class Module {
     private String  name;
     private Student student;
@@ -308,7 +308,7 @@
     things, to iterate data structures to check for existence. The following
     should return a List of students who have failed the semester.</para>
 
-    <programlisting role="JAVA">    
+    <programlisting language="java">
     List failedStudents = new ArrayList();
     
     for ( Student student: students ) {
@@ -344,7 +344,7 @@
 
     <para></para>
 
-    <programlisting role="JAVA">
+    <programlisting language="java">
     rule "Failed_Students"
     when
     	$s : Student()

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Rule_Engine/Section-The_Drools_Rule_Engine.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Rule_Engine/Section-The_Drools_Rule_Engine.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Rule_Engine/Section-The_Drools_Rule_Engine.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -81,7 +81,7 @@
     <example>
       <title>Building a Package from Multiple Sources</title>
 
-      <programlisting role="JAVA">PackageBuilder builder = new PackageBuilder();
+      <programlisting language="java">PackageBuilder builder = new PackageBuilder();
 builder.addPackageFromDrl( new InputStreamReader( getClass().getResourceAsStream( "package1.drl" ) ) );
 builder.addPackageFromXml( new InputStreamReader( getClass().getResourceAsStream( "package2.xml" ) ) );
 builder.addRuleFlow( new InputStreamReader( getClass().getResourceAsStream( "ruleflow.rfm" ) ) );
@@ -98,7 +98,7 @@
     <example>
       <title>Checking the PackageBuilder for errors</title>
 
-      <programlisting role="JAVA">PackageBuilder builder = new PackageBuilder();
+      <programlisting language="java">PackageBuilder builder = new PackageBuilder();
 builder.addPackageFromDrl( new InputStreamReader( getClass().getResourceAsStream( "package1.drl" ) ) );
 PackageBuilderErrors errors = builder.getErrors();</programlisting>
     </example>
@@ -158,7 +158,7 @@
       <title>Configuring the <code>JavaDialectConfiguration</code> to use JANINO via a
       setter</title>
 
-      <programlisting role="JAVA">PackageBuilderConfiguration cfg = new PackageBuilderConfiguration( );
+      <programlisting language="java">PackageBuilderConfiguration cfg = new PackageBuilderConfiguration( );
 JavaDialectConfiguration javaConf = (JavaDialectConfiguration) cfg.getDialectConfiguration( "java" );
 javaConf.setCompiler( JavaDialectConfiguration.JANINO );            </programlisting>
     </example>
@@ -173,7 +173,7 @@
     <example>
       <title>Configuring the <code>JavaDialectConfiguration</code> to use JANINO</title>
 
-      <programlisting role="JAVA">Properties properties = new Properties();
+      <programlisting language="java">Properties properties = new Properties();
 properties.setProperty( "drools.dialect.java.compiler",
                         "JANINO" );
 PackageBuilderConfiguration cfg = new PackageBuilderConfiguration( properties );
@@ -195,7 +195,7 @@
       <title>Configuring the <code>PackageBuilder</code> to use JANINO via a
       property</title>
 
-      <programlisting role="JAVA">PackageBuilderConfiguration conf = new PackageBuilderConfiguration();
+      <programlisting language="java">PackageBuilderConfiguration conf = new PackageBuilderConfiguration();
 conf.setCompiler( PackageBuilderConfiguration.JANINO );
 PackageBuilder builder = new PackageBuilder( conf );</programlisting>
     </example>
@@ -238,7 +238,7 @@
     <example>
       <title>Adding a Package to a new RuleBase</title>
 
-      <programlisting role="JAVA">RuleBase ruleBase  = RuleBaseFactory.newRuleBase();
+      <programlisting language="java">RuleBase ruleBase  = RuleBaseFactory.newRuleBase();
 ruleBase.addPackage( pkg  );        </programlisting>
     </example>
 
@@ -271,14 +271,14 @@
     to maintain a reference, but only do so if you know the <code>RuleBase</code> will not
     be updated. References are not stored for stateless sessions.</para>
 
-    <programlisting role="JAVA">ruleBase.newStatefulSession();  // maintains a reference.
+    <programlisting language="java">ruleBase.newStatefulSession();  // maintains a reference.
 ruleBase.newStatefulSession( false ); // do not maintain a reference    </programlisting>
 
     <para>Packages can be added and removed at any time, and all changes will be
     propagated to the existing stateful sessions, but don't forget to call
     <code>fireAllRules()</code> for resulting Activations to fire.</para>
 
-    <programlisting role="JAVA">ruleBase.addPackage( pkg );  // Add a package instance
+    <programlisting language="java">ruleBase.addPackage( pkg );  // Add a package instance
 ruleBase.removePackage( "org.com.sample" );  // remove a package, and all its parts, by its namespace
 ruleBase.removeRule( "org.com.sample", "my rule" ); // remove a specific rule from a namespace         </programlisting>
 
@@ -294,7 +294,7 @@
     cross product behavior (remove or keep identity equals across
     products).</para>
 
-    <programlisting role="JAVA">RuleBaseConfiguration conf = new RuleBaseConfiguration();
+    <programlisting language="java">RuleBaseConfiguration conf = new RuleBaseConfiguration();
 conf.setAssertBehaviour( AssertBehaviour.IDENTITY );
 conf.setRemoveIdentities( true );
 RuleBase ruleBase = RuleBaseFactory.newRuleBase( conf );</programlisting>
@@ -368,7 +368,7 @@
       <code>WorkingMemory</code>. It is also used for interactions with the <code>WorkingMemory</code>
       when you wish to retract or modify an object.</para>
 
-      <programlisting role="JAVA">Cheese stilton = new Cheese("stilton");
+      <programlisting language="java">Cheese stilton = new Cheese("stilton");
 FactHandle stiltonHandle = session.insert( stilton );      </programlisting>
 
       <para>As mentioned in the Rule Base section a Working Memory may operate
@@ -397,7 +397,7 @@
       (see the <code>not</code> and <code>exist</code> keywords). Retraction is done using the
       <code>FactHandle</code> that was returned during the assert.</para>
 
-      <programlisting role="JAVA">Cheese stilton = new Cheese("stilton");
+      <programlisting language="java">Cheese stilton = new Cheese("stilton");
 FactHandle stiltonHandle = session.insert( stilton );
 ...
 session.retract( stiltonHandle );            </programlisting>
@@ -419,7 +419,7 @@
       call <code>wm.modifyRetract()</code> before making your changes and
       <code>wm.modifyInsert()</code> after the changes.</para>
 
-      <programlisting role="JAVA">Cheese stilton = new Cheese("stilton");
+      <programlisting language="java">Cheese stilton = new Cheese("stilton");
 FactHandle stiltonHandle = workingMemory.insert( stilton );
 ...
 stilton.setPrice( 100 );
@@ -443,7 +443,7 @@
       the global type and identifier first will result in an exception being
       thrown. To set the global on the session use <code>session.setGlobal(identifier, value)</code>:</para>
 
-      <programlisting role="JAVA">List list = new ArrayList();
+      <programlisting language="java">List list = new ArrayList();
 session.setGlobal("list", list);           </programlisting>
 
       <para>If a rule evaluates on a global before you set it you will get a
@@ -552,7 +552,7 @@
         <example>
           <title>Safely modifying attributes in the application
           code</title>
-          <programlisting role="JAVA">         // create session
+          <programlisting language="java">         // create session
          StatefulSession session = ruleBase.newStatefulSession();
 
          // get facts
@@ -586,7 +586,7 @@
         <para>Alternatively, it is possible to disable shadow facts through an API
         call:</para>
 
-        <programlisting role="JAVA">RuleBaseConfiguration conf = new RuleBaseConfiguration();
+        <programlisting language="java">RuleBaseConfiguration conf = new RuleBaseConfiguration();
 conf.setShadowProxy( false );
 ...
 RuleBase ruleBase = RuleBaseFactory.newRuleBase( conf );
@@ -613,7 +613,7 @@
       of Drools will bundle some to make it easier.) To use an object in
       dynamic mode specify true for the second assertObject parameter.</para>
 
-      <programlisting role="JAVA">Cheese stilton = new Cheese("stilton");
+      <programlisting language="java">Cheese stilton = new Cheese("stilton");
 FactHandle stiltonHandle = workingMemory.insert( stilton, true );  //specifies that this is a dynamic fact            </programlisting>
 
       <para>To make a JavaBean dynamic add a <code>PropertyChangeSupport</code> field
@@ -621,7 +621,7 @@
       calls the <code>PropertyChangeSupport</code> instance with
       <code>firePropertyChange</code>.</para>
 
-      <programlisting role="JAVA">private final PropertyChangeSupport changes = new PropertyChangeSupport( this );
+      <programlisting language="java">private final PropertyChangeSupport changes = new PropertyChangeSupport( this );
 ...
 public void addPropertyChangeListener(final PropertyChangeListener l) {
     this.changes.addPropertyChangeListener( l );
@@ -681,7 +681,7 @@
 
     <example>
       <title>Creating a <code>StatefulSession</code></title>
-      <programlisting role="JAVA">StatefulSession session = ruleBase.newStatefulSession();</programlisting>
+      <programlisting language="java">StatefulSession session = ruleBase.newStatefulSession();</programlisting>
     </example>
   </section>
 
@@ -703,7 +703,7 @@
 
     <example>
       <title>Creating a <code>StatelessSession</code></title>
-      <programlisting role="JAVA">StatelessSession session = ruleBase.newStatelessSession();
+      <programlisting language="java">StatelessSession session = ruleBase.newStatelessSession();
 session.execute( new Cheese( "cheddar" ) );</programlisting>
     </example>
 
@@ -773,7 +773,7 @@
     <example>
       <title><code>GlobalExporter</code> with <code>StatelessSession</code>s</title>
 
-      <programlisting role="JAVA">StatelessSession session = ruleBase.newStatelessSession();
+      <programlisting language="java">StatelessSession session = ruleBase.newStatelessSession();
 session.setGlobalExporter( new CopyIdentifiersGlobalExporter( new String[]{"list"} ) );
 StatelessSessionResult result = session.executeWithResults( new Cheese( "stilton" ) );
 List list = ( List ) result.getGlobal( "list" );</programlisting>
@@ -927,7 +927,7 @@
       <para>To use a filter specify it while calling <code>FireAllRules</code>. The
       following example permits only rules ending in the string <emphasis>Test</emphasis>.
       All others will be filtered out.</para>
-      <programlisting role="JAVA">workingMemory.fireAllRules( new RuleNameEndsWithAgendaFilter( "Test" ) );</programlisting>
+      <programlisting language="java">workingMemory.fireAllRules( new RuleNameEndsWithAgendaFilter( "Test" ) );</programlisting>
     </section>
   </section>
 
@@ -999,7 +999,7 @@
     instance to the session. It prints events resulting from rules being 
     fired.</para>
 
-    <programlisting role="JAVA">session.addEventListener( new DefaultAgendaEventListener() {
+    <programlisting language="java">session.addEventListener( new DefaultAgendaEventListener() {
    public void afterActivationFired(AfterActivationFiredEvent event) {
        super.afterActivationFired( event );
        System.out.println( event );
@@ -1012,7 +1012,7 @@
     each method with a debug print statement. To print all Working
     Memory events, you add a listener like this:</para>
 
-    <programlisting role="JAVA">session.addEventListener( new DebugWorkingMemoryEventListener() );        </programlisting>
+    <programlisting language="java">session.addEventListener( new DebugWorkingMemoryEventListener() );        </programlisting>
 
     <para>The Eclipse-based Rule IDE also provides an audit logger and
     graphical viewer, so that the rule engine can log events for later

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Rule_Language/Section-Package.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Rule_Language/Section-Package.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Rule_Language/Section-Package.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -142,7 +142,7 @@
         practice to set all global values before asserting any fact to the
         working memory. Example:</para>
 
-        <programlisting role="JAVA">List list = new ArrayList();
+        <programlisting language="java">List list = new ArrayList();
 WorkingMemory wm = rulebase.newStatefulSession();
 wm.setGlobal( "myGlobalList", list );
 </programlisting>

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Rule_Language/Section-TypeDeclaration.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Rule_Language/Section-TypeDeclaration.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-Rule_Language/Section-TypeDeclaration.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -108,7 +108,7 @@
         <title>generated Java class for the previous Person fact type
         declaration</title>
 
-        <programlisting role="JAVA">public class Person implements Serializable {
+        <programlisting language="java">public class Person implements Serializable {
     private String name;
     private java.util.Date dateOfBirth;
     private Address address;

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-User_Guide/Section-Building.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-User_Guide/Section-Building.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-User_Guide/Section-Building.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -61,7 +61,7 @@
     <example>
       <title>Creating a new KnowledgeBuilder</title>
 
-      <programlisting role="JAVA">KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();</programlisting>
+      <programlisting language="java">KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();</programlisting>
     </example>
 
     <para>A configuration can be created using the <code>KnowledgeBuilderFactory</code>.
@@ -75,7 +75,7 @@
     <example>
       <title>Creating a new KnowledgeBuilder with a custom ClassLoader</title>
 
-      <programlisting role="JAVA">KnowledgeBuilderConfiguration kbuilderConf = KnowledgeBuilderFactory.newKnowledgeBuilderConfiguration(null, classLoader );
+      <programlisting language="java">KnowledgeBuilderConfiguration kbuilderConf = KnowledgeBuilderFactory.newKnowledgeBuilderConfiguration(null, classLoader );
 KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder(kbuilderConf);
 </programlisting>
     </example>
@@ -88,7 +88,7 @@
     <example>
       <title>Adding DRL Resources</title>
 
-      <programlisting role="JAVA">kbuilder.add( ResourceFactory.newFileResource( "/project/myrules.drl" ),
+      <programlisting language="java">kbuilder.add( ResourceFactory.newFileResource( "/project/myrules.drl" ),
               ResourceType.DRL);
 </programlisting>
     </example>
@@ -101,7 +101,7 @@
     <example>
       <title>Validating</title>
 
-      <programlisting role="JAVA">if( kbuilder.hasErrors() ) {
+      <programlisting language="java">if( kbuilder.hasErrors() ) {
     System.out.println( kbuilder.getErrors() );
     return;
 }
@@ -117,7 +117,7 @@
     <example>
       <title>Getting the KnowledgePackages</title>
 
-      <programlisting role="JAVA">Collection&lt;KnowledgePackage&gt; kpkgs = kbuilder.getKnowledgePackages();
+      <programlisting language="java">Collection&lt;KnowledgePackage&gt; kpkgs = kbuilder.getKnowledgePackages();
 </programlisting>
     </example>
 
@@ -126,7 +126,7 @@
     <example>
       <title>Putting it all together</title>
 
-      <programlisting role="JAVA">KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
+      <programlisting language="java">KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
 if( kbuilder.hasErrors() ) {
     System.out.println( kbuilder.getErrors() );
     return;
@@ -262,7 +262,7 @@
     <example>
       <title>Loading the ChangeSet XML</title>
 
-      <programlisting role="JAVA">kbuilder.add( ResourceFactory.newUrlResource( url ), ResourceType.CHANGE_SET );
+      <programlisting language="java">kbuilder.add( ResourceFactory.newUrlResource( url ), ResourceType.CHANGE_SET );
 </programlisting>
     </example>
 

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-User_Guide/Section-Deploying.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-User_Guide/Section-Deploying.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-User_Guide/Section-Deploying.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -78,7 +78,7 @@
     <example>
       <title>Creating a new KnowledgeBase</title>
 
-      <programlisting role="JAVA">KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();</programlisting>
+      <programlisting language="java">KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();</programlisting>
     </example>
 
     <para>If a custom class loader was used with the <code>KnowledgeBuilder</code> to
@@ -89,7 +89,7 @@
     <example>
       <title>Creating a new KnowledgeBase with a custom ClassLoader</title>
 
-      <programlisting role="JAVA">KnowledgeBaseConfiguration kbaseConf =
+      <programlisting language="java">KnowledgeBaseConfiguration kbaseConf =
     KnowledgeBaseFactory.createKnowledgeBaseConfiguration( null, cl );
 KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase( kbaseConf );</programlisting>
     </example>
@@ -106,7 +106,7 @@
     <example>
       <title>Add KnowledgePackages to a KnowledgeBase</title>
 
-      <programlisting role="JAVA">Collection&lt;KnowledgePackage&gt; kpkgs = kbuilder.getKnowledgePackages();
+      <programlisting language="java">Collection&lt;KnowledgePackage&gt; kpkgs = kbuilder.getKnowledgePackages();
 
 KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();
 kbase.addKnowledgePackages( kpkgs );</programlisting>
@@ -133,7 +133,7 @@
     <example>
       <title>Writing the KnowledgePackage to an OutputStream</title>
 
-      <programlisting role="JAVA">ObjectOutputStream out = new ObjectOutputStream( new FileOutputStream( fileName ) );
+      <programlisting language="java">ObjectOutputStream out = new ObjectOutputStream( new FileOutputStream( fileName ) );
 out.writeObject( kpkgs );
 out.close();
 </programlisting>
@@ -142,7 +142,7 @@
     <example>
       <title>Reading the KnowledgePackage from an InputStream</title>
 
-      <programlisting role="JAVA">ObjectInputStream in = new ObjectInputStream( new FileInputStream( fileName ) );
+      <programlisting language="java">ObjectInputStream in = new ObjectInputStream( new FileInputStream( fileName ) );
 // The input stream might contain an individual
 // package or a collection.
 @SuppressWarnings( "unchecked" )
@@ -210,7 +210,7 @@
     <example>
       <title>Creating the KnowledgeAgent</title>
 
-      <programlisting role="JAVA">KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent( "MyAgent" );
+      <programlisting language="java">KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent( "MyAgent" );
 </programlisting>
     </example>
 
@@ -240,7 +240,7 @@
     <example>
       <title>Writing the KnowledgePackage to an OutputStream</title>
 
-      <programlisting role="JAVA">KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent( "MyAgent" );
+      <programlisting language="java">KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent( "MyAgent" );
 kagent.applyChangeSet( ResourceFactory.newUrlResource( url ) );
 KnowledgeBase kbase = kagent.getKnowledgeBase();
 </programlisting>
@@ -253,7 +253,7 @@
     <example>
       <title>Starting the Scanning and Notification Services</title>
 
-      <programlisting role="JAVA">ResourceFactory.getResourceChangeNotifierService().start();
+      <programlisting language="java">ResourceFactory.getResourceChangeNotifierService().start();
 ResourceFactory.getResourceChangeScannerService().start();
 </programlisting>
     </example>
@@ -267,7 +267,7 @@
     <example>
       <title>Changing the Scanning Intervals</title>
 
-      <programlisting role="JAVA">ResourceChangeScannerConfiguration sconf =
+      <programlisting language="java">ResourceChangeScannerConfiguration sconf =
     ResourceFactory.getResourceChangeScannerService().newResourceChangeScannerConfiguration();
 // Set the disk scanning interval to 30s, default is 60s.
 sconf.setProperty( "drools.resource.scanner.interval", "30" ); 
@@ -293,7 +293,7 @@
     <example>
       <title>Using an existing KnowledgeBase</title>
 
-      <programlisting role="JAVA">KnowledgeBaseConfiguration kbaseConf =
+      <programlisting language="java">KnowledgeBaseConfiguration kbaseConf =
     KnowledgeBaseFactory.createKnowledgeBaseConfiguration( null, cl );
 KnowledgeBase kbase KnowledgeBaseFactory.newKnowledgeBase( kbaseConf );
 // Populate kbase with resources here.
@@ -343,7 +343,7 @@
     <example>
       <title>Change the Scanning Behavior</title>
 
-      <programlisting role="JAVA">KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();
+      <programlisting language="java">KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();
 
 KnowledgeAgentConfiguration kaconf =
     KnowledgeAgentFactory.newKnowledgeAgentConfiguation();

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-User_Guide/Section-Running.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-User_Guide/Section-Running.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-expert/src/main/docbook/en-US/Chapter-User_Guide/Section-Running.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -26,7 +26,7 @@
     <example>
       <title>Creating a new KnowledgeBase</title>
 
-      <programlisting role="JAVA">KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();</programlisting>
+      <programlisting language="java">KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();</programlisting>
     </example>
   </section>
 
@@ -50,7 +50,7 @@
     <example>
       <title>Create a StatefulKnowledgeSession from a KnowledgeBase</title>
 
-      <programlisting role="JAVA">StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
+      <programlisting language="java">StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
 </programlisting>
     </example>
   </section>
@@ -121,7 +121,7 @@
         for interactions with the <code>WorkingMemory</code> when you wish to
         retract or modify an object.</para>
 
-        <programlisting role="JAVA">Cheese stilton = new Cheese("stilton");
+        <programlisting language="java">Cheese stilton = new Cheese("stilton");
 FactHandle stiltonHandle = ksession.insert( stilton );      </programlisting>
 
         <para>As mentioned in the Knowledge Base section, a Working Memory may
@@ -153,7 +153,7 @@
         is done using the <code>FactHandle</code> that was returned by the
         insert call.</para>
 
-        <programlisting role="JAVA">Cheese stilton = new Cheese("stilton");
+        <programlisting language="java">Cheese stilton = new Cheese("stilton");
 FactHandle stiltonHandle = ksession.insert( stilton );
 ....
 ksession.retract( stiltonHandle );            </programlisting>
@@ -177,7 +177,7 @@
         <literal>modify</literal> statement is supported, providing simplified
         calls to the object's setters.</para>
 
-        <programlisting role="JAVA">Cheese stilton = new Cheese("stilton");
+        <programlisting language="java">Cheese stilton = new Cheese("stilton");
 FactHandle stiltonHandle = workingMemory.insert( stilton );
 ...
 stilton.setPrice( 100 );
@@ -239,7 +239,7 @@
         <example>
           <title>Simple Query Example</title>
 
-          <programlisting role="JAVA">QueryResults results =
+          <programlisting language="java">QueryResults results =
     ksession.getQueryResults( "my query", new Object[] { "string" } );
 for ( QueryResultsRow row : results ) {
     System.out.println( row.get( "varName" ) );
@@ -337,7 +337,7 @@
         the session use <code>ksession.setGlobal(identifier,
         value)</code>:</para>
 
-        <programlisting role="JAVA">List list = new ArrayList();
+        <programlisting language="java">List list = new ArrayList();
 ksession.setGlobal("list", list);           </programlisting>
 
         <para>If a rule evaluates on a global before you set it you will get a
@@ -391,7 +391,7 @@
         ending in the string <code>"Test"</code>. All others will be filtered
         out.</para>
 
-        <programlisting role="JAVA">ksession.fireAllRules( new RuleNameEndsWithAgendaFilter( "Test" ) );</programlisting>
+        <programlisting language="java">ksession.fireAllRules( new RuleNameEndsWithAgendaFilter( "Test" ) );</programlisting>
       </section>
     </section>
   </section>
@@ -516,7 +516,7 @@
       this group. It is also always the first group on the stack, given focus
       initially, by default.</para>
 
-      <programlisting role="JAVA">ksession.getAgenda().getAgendaGroup( "Group A" ).setFocus();</programlisting>
+      <programlisting language="java">ksession.getAgenda().getAgendaGroup( "Group A" ).setFocus();</programlisting>
     </section>
 
     <section>
@@ -540,7 +540,7 @@
       cancels all of the activations before one has had a chance to
       fire.</para>
 
-      <programlisting role="JAVA">ksession.getAgenda().getActivationGroup( "Group B" ).clear();</programlisting>
+      <programlisting language="java">ksession.getAgenda().getActivationGroup( "Group B" ).clear();</programlisting>
     </section>
 
     <section>
@@ -564,7 +564,7 @@
       group. Here too, the <code>clear()</code> method can be called at any
       time to cancels all activations still remaining on the Agenda.</para>
 
-      <programlisting role="JAVA">ksession.getAgenda().getRuleFlowGroup( "Group C" ).clear();</programlisting>
+      <programlisting language="java">ksession.getAgenda().getRuleFlowGroup( "Group C" ).clear();</programlisting>
     </section>
   </section>
 
@@ -615,7 +615,7 @@
     <example>
       <title>Adding an AgendaEventListener</title>
 
-      <programlisting role="JAVA">ksession.addEventListener( new DefaultAgendaEventListener() {
+      <programlisting language="java">ksession.addEventListener( new DefaultAgendaEventListener() {
    public void afterActivationFired(AfterActivationFiredEvent event) {
        super.afterActivationFired( event );
        System.out.println( event );
@@ -631,7 +631,7 @@
     <example>
       <title>Creating a new KnowledgeBuilder</title>
 
-      <programlisting role="JAVA">ksession.addEventListener( new DebugWorkingMemoryEventListener() );     </programlisting>
+      <programlisting language="java">ksession.addEventListener( new DebugWorkingMemoryEventListener() );     </programlisting>
     </example>
 
     <para>All emitted events implement the <code>KnowlegeRuntimeEvent</code>
@@ -728,7 +728,7 @@
     <example>
       <title>FileLogger</title>
 
-      <programlisting role="JAVA">KnowledgeRuntimeLogger logger =
+      <programlisting language="java">KnowledgeRuntimeLogger logger =
   KnowledgeRuntimeLoggerFactory.newFileLogger(ksession, "logdir/mylogfile");
 ...
 logger.close();</programlisting>
@@ -773,7 +773,7 @@
       <title>Simple StatelessKnowledgeSession execution with a
       Collection</title>
 
-      <programlisting role="JAVA">KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
+      <programlisting language="java">KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
 kbuilder.add( ResourceFactory.newFileSystemResource( fileName ), ResourceType.DRL );
 if (kbuilder.hasErrors() ) {
     System.out.println( kbuilder.getErrors() );
@@ -791,7 +791,7 @@
       <title>Simple StatelessKnowledgeSession execution with InsertElements
       Command</title>
 
-      <programlisting role="JAVA">ksession.execute( CommandFactory.newInsertElements( collection ) );  </programlisting>
+      <programlisting language="java">ksession.execute( CommandFactory.newInsertElements( collection ) );  </programlisting>
     </example>
 
     <para>If you wanted to insert the collection itself, and the collection's
@@ -821,7 +821,7 @@
         <example>
           <title>Session scoped global</title>
 
-          <programlisting role="JAVA">StatelessKnowledgeSession ksession = kbase.newStatelessKnowledgeSession();
+          <programlisting language="java">StatelessKnowledgeSession ksession = kbase.newStatelessKnowledgeSession();
 // Set a global hbnSession, that can be used for DB interactions in the rules.
 ksession.setGlobal( "hbnSession", hibernateSession );
 // Execute while being able to resolve the "hbnSession" identifier.  
@@ -853,7 +853,7 @@
     <example>
       <title>Out identifiers</title>
 
-      <programlisting role="JAVA">// Set up a list of commands
+      <programlisting language="java">// Set up a list of commands
 List cmds = new ArrayList();
 cmds.add( CommandFactory.newSetGlobal( "list1", new ArrayList(), true ) );
 cmds.add( CommandFactory.newInsert( new Person( "jon", 102 ), "person" ) );
@@ -1073,7 +1073,7 @@
     <example>
       <title>Insert Command</title>
 
-      <programlisting role="JAVA">StatelessKnowledgeSession ksession = kbase.newStatelessKnowledgeSession();
+      <programlisting language="java">StatelessKnowledgeSession ksession = kbase.newStatelessKnowledgeSession();
 ExecutionResults bresults =
   ksession.execute( CommandFactory.newInsert( new Cheese( "stilton" ), "stilton_id" ) );
 Stilton stilton = bresults.getValue( "stilton_id" );
@@ -1087,7 +1087,7 @@
     <example>
       <title>InsertElements Command</title>
 
-      <programlisting role="JAVA">StatelessKnowledgeSession ksession = kbase.newStatelessKnowledgeSession();
+      <programlisting language="java">StatelessKnowledgeSession ksession = kbase.newStatelessKnowledgeSession();
 Command cmd = CommandFactory.newInsertElements( Arrays.asList( Object[] { 
                   new Cheese( "stilton" ),
                   new Cheese( "brie" ),
@@ -1119,7 +1119,7 @@
     <example>
       <title>BatchExecution Command</title>
 
-      <programlisting role="JAVA">StatelessKnowledgeSession ksession = kbase.newStatelessKnowledgeSession();
+      <programlisting language="java">StatelessKnowledgeSession ksession = kbase.newStatelessKnowledgeSession();
 
 List cmds = new ArrayList();        
 cmds.add( CommandFactory.newInsertObject( new Cheese( "stilton", 1), "stilton") );
@@ -1465,7 +1465,7 @@
     <example>
       <title>Simple Marshaller Example</title>
 
-      <programlisting role="JAVA">// ksession is the StatefulKnowledgeSession
+      <programlisting language="java">// ksession is the StatefulKnowledgeSession
 // kbase is the KnowledgeBase
 ByteArrayOutputStream baos = new ByteArrayOutputStream();
 Marshaller marshaller = MarshallerFactory.newMarshaller( kbase );
@@ -1495,7 +1495,7 @@
     <example>
       <title>IdentityMarshallingStrategy</title>
 
-      <programlisting role="JAVA">ByteArrayOutputStream baos = new ByteArrayOutputStream();
+      <programlisting language="java">ByteArrayOutputStream baos = new ByteArrayOutputStream();
 ObjectMarshallingStrategy oms = MarshallerFactory.newIdentityMarshallingStrategy()
 Marshaller marshaller =
   MarshallerFactory.newMarshaller( kbase, new ObjectMarshallingStrategy[]{ oms } );
@@ -1523,7 +1523,7 @@
     <example>
       <title>IdentityMarshallingStrategy with Acceptor</title>
 
-      <programlisting role="JAVA">ByteArrayOutputStream baos = new ByteArrayOutputStream();
+      <programlisting language="java">ByteArrayOutputStream baos = new ByteArrayOutputStream();
 ObjectMarshallingStrategyAcceptor identityAcceptor =
   MarshallerFactory.newClassFilterAcceptor( new String[] { "org.domain.pkg1.*" } );
 ObjectMarshallingStrategy identityStrategy =
@@ -1554,7 +1554,7 @@
     <example>
       <title>Simple example using transactions</title>
 
-      <programlisting role="JAVA">Environment env = KnowledgeBaseFactory.newEnvironment();
+      <programlisting language="java">Environment env = KnowledgeBaseFactory.newEnvironment();
 env.set( EnvironmentName.ENTITY_MANAGER_FACTORY,
          Persistence.createEntityManagerFactory( "emf-name" ) );
 env.set( EnvironmentName.TRANSACTION_MANAGER,
@@ -1584,7 +1584,7 @@
     <example>
       <title>Loading a StatefulKnowledgeSession</title>
 
-      <programlisting role="JAVA">StatefulKnowledgeSession ksession =
+      <programlisting language="java">StatefulKnowledgeSession ksession =
   JPAKnowledgeService.loadStatefulKnowledgeSession( sessionId, kbase, null, env );
 </programlisting>
     </example>
@@ -1622,7 +1622,7 @@
     <example>
       <title>Configuring JTA DataSource</title>
 
-      <programlisting role="JAVA">PoolingDataSource ds = new PoolingDataSource();
+      <programlisting language="java">PoolingDataSource ds = new PoolingDataSource();
 ds.setUniqueName( "jdbc/BitronixJTADataSource" );
 ds.setClassName( "org.h2.jdbcx.JdbcDataSource" );
 ds.setMaxPoolSize( 3 );

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-flow/src/main/docbook/en-US/Chapter-API/Chapter-API.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-flow/src/main/docbook/en-US/Chapter-API/Chapter-API.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-flow/src/main/docbook/en-US/Chapter-API/Chapter-API.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -21,7 +21,7 @@
     Knowledge Base consisting of only one process definition, using a Knowledge Builder
     to add the resource (from the classpath in this case).</para>
 
-<programlisting role="JAVA">
+<programlisting language="java">
 KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
 kbuilder.add(ResourceFactory.newClassPathResource("MyProcess.rf"), ResourceType.DRF);
 KnowledgeBase kbase = kbuilder.newKnowledgeBase();
@@ -42,7 +42,7 @@
     code snippet shows how easy it is to create a session based on the earlier created
     Knowledge Base, and to start a process (by id).</para>
 
-<programlisting role="JAVA">
+<programlisting language="java">
 StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
 ProcessInstance processInstance = ksession.startProcess("com.sample.MyProcess");
 </programlisting>
@@ -51,7 +51,7 @@
     for interacting with processes, as shown below.  Consult the JavaDocs to get
     a detailed explanation for each of the methods.</para>
 
-<programlisting role="JAVA">
+<programlisting language="java">
 ProcessInstance startProcess(String processId);
 ProcessInstance startProcess(String processId, Map&lt;String, Object&gt; parameters);
 void signalEvent(String type, Object event);
@@ -75,7 +75,7 @@
     to related information, like the process instance and node instance linked to
     the event.</para>
 
-<programlisting role="JAVA">
+<programlisting language="java">
 public interface ProcessEventListener {
 
   void beforeProcessStarted( ProcessStartedEvent event );
@@ -113,7 +113,7 @@
     logger also requires the name of the log file to be created, and the threaded file
     logger requires the interval (in milliseconds) after which the events should be saved.</para>
 
-<programlisting role="JAVA">
+<programlisting language="java">
 KnowledgeRuntimeLogger logger =
     KnowledgeRuntimeLoggerFactory.newFileLogger( ksession, "test" );
 // add invocations to the process engine here,

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-flow/src/main/docbook/en-US/Chapter-BPMN2/Chapter-BPMN2.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-flow/src/main/docbook/en-US/Chapter-BPMN2/Chapter-BPMN2.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-flow/src/main/docbook/en-US/Chapter-BPMN2/Chapter-BPMN2.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -334,7 +334,7 @@
 
   <para>The following code fragment shows you how to load a BPMN process into your knowledge base ...</para>
 
-  <programlisting role="JAVA">
+  <programlisting language="java">
 private static KnowledgeBase readKnowledgeBase() throws Exception {
   KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
   kbuilder.add(ResourceFactory.newClassPathResource("sample.bpmn"), ResourceType.BPMN2);
@@ -343,7 +343,7 @@
 
   <para> ... and how to execute this process.</para>
 
-  <programlisting role="JAVA">
+  <programlisting language="java">
 KnowledgeBase kbase = readKnowledgeBase();
 StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
 KnowledgeRuntimeLogger logger = KnowledgeRuntimeLoggerFactory.newFileLogger(ksession, "test");

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-flow/src/main/docbook/en-US/Chapter-DomainSpecificProcesses/Chapter-DomainSpecificProcesses.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-flow/src/main/docbook/en-US/Chapter-DomainSpecificProcesses/Chapter-DomainSpecificProcesses.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-flow/src/main/docbook/en-US/Chapter-DomainSpecificProcesses/Chapter-DomainSpecificProcesses.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -130,7 +130,7 @@
 
 <para>The Drools engine contains a WorkItemManager that is responsible for executing work items whenever necessary.  The WorkItemManager is responsible for delegating the work items to WorkItemHandlers that execute the work item and notify the WorkItemManager when the work item has been completed.  For executing notification work items, a NotificationWorkItemHandler should be created (implementing the WorkItemHandler interface):</para>
 
-<programlisting role="JAVA">
+<programlisting language="java">
 package com.sample;
 
 import org.drools.process.instance.WorkItem;
@@ -163,7 +163,7 @@
 
 <para>WorkItemHandlers should be registered at the WorkItemManager, using the following API:</para>
 
-<programlisting role="JAVA">
+<programlisting language="java">
   workingMemory.getWorkItemManager().registerWorkItemHandler(
     "Notification", new NotificationWorkItemHandler());
 </programlisting>

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-flow/src/main/docbook/en-US/Chapter-Flow/Chapter-RuleFlow.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-flow/src/main/docbook/en-US/Chapter-Flow/Chapter-RuleFlow.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-flow/src/main/docbook/en-US/Chapter-Flow/Chapter-RuleFlow.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -155,7 +155,7 @@
         <title>Example 1</title>
 
       <para>This is a simple example of a basic process with a ruleset node only:</para>
-      <programlisting role="JAVA">
+      <programlisting language="java">
 RuleFlowProcessFactory factory =
     RuleFlowProcessFactory.createProcess("org.drools.HelloWorldRuleSet");
 factory
@@ -209,7 +209,7 @@
         <title>Example 2</title>
 
       <para>This example is using Split and Join nodes:</para>
-        <programlisting role="JAVA">
+        <programlisting language="java">
 RuleFlowProcessFactory factory =
     RuleFlowProcessFactory.createProcess("org.drools.HelloWorldJoinSplit");
 factory
@@ -247,7 +247,7 @@
         <title>Example 3</title>
 
       <para>Now we show a more complex example with a ForEach node, where we have nested nodes:</para>
-      <programlisting role="JAVA">
+      <programlisting language="java">
 RuleFlowProcessFactory factory =
     RuleFlowProcessFactory.createProcess("org.drools.HelloWorldForeach");
 factory
@@ -304,14 +304,14 @@
       have a valid process, you can add the process to the Knowledge Base. Note
       that this is almost identical to adding rules to the Knowledge Base, except
       for the type of knowledge added:</para>
-      <programlisting role="JAVA">
+      <programlisting language="java">
 KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
 kbuilder.add( ResourceFactory.newClassPathResource("MyProcess.rf"),
               ResourceType.DRF );</programlisting>
       <para>After adding all your knowledge to the builder (you can add more
       than one process, and even rules), you can create a new knowledge base
       like this:</para>
-      <programlisting role="JAVA">
+      <programlisting language="java">
 KnowledgeBase kbase = kbuilder.newKnowledgeBase();</programlisting>
       <para>Note that this will throw an exception if the knowledge base contains
       errors (because it could not parse your processes correctly).</para>
@@ -324,7 +324,7 @@
       to start each of these.  To activate a particular process, you will need
       to start it by calling the <code>startProcess</code> method on your session.
       For example:</para>
-      <programlisting role="JAVA">
+      <programlisting language="java">
 StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
 ksession.startProcess("com.sample.MyProcess");</programlisting>
       <para>The parameter of the <code>startProcess</code> method represents the id
@@ -344,7 +344,7 @@
 
       <para>You can also start a process from within a rule consequence, or from
       inside a process action, using the predefined kcontext parameter:</para>
-      <programlisting role="JAVA">
+      <programlisting language="java">
 kcontext.getKnowledgeRuntime().startProcess("com.sample.MyProcess");</programlisting>
       </listitem>
 
@@ -1192,11 +1192,11 @@
         </listitem>
         <listitem><para>Actions can access variables directly, simply by using the
         name of the variable as a parameter name.</para>
-          <programlisting role="JAVA">
+          <programlisting language="java">
 // call method on the process variable "person"
 person.setAge(10);</programlisting>
         <para>Changing the value of a variable can be done through the Knowledge Context:</para>
-          <programlisting role="JAVA">
+          <programlisting language="java">
 kcontext.setVariable(variableName, value);</programlisting>
         </listitem>
         <listitem><para>WorkItem and SubFlow nodes can pass the value of parameters
@@ -1217,7 +1217,7 @@
     globally defined variables that are considered immutable with regard
     to rule evaluation, and data in the Knowledge Session.  The Knowledge Session
     can be accessed in actions using the Knowledge Context:</para>
-    <programlisting role="JAVA">
+    <programlisting language="java">
 kcontext.getKnowledgeRuntime().insert( new Person(...) );</programlisting>
 
   </section>
@@ -1236,7 +1236,7 @@
         to the globals and variables defined in the process.  Here is an example
         of a valid Java code constraint, <code>person</code> being a variable
         in the process:</para>
-          <programlisting role="JAVA">
+          <programlisting language="java">
 return person.getAge() > 20;</programlisting>
         <para>A similar example of a valid MVEL code constraint is:</para>
           <programlisting>
@@ -1293,14 +1293,14 @@
         <listitem><para>Getting the current node instance (if applicable).  The node
         instance could be queried for data, such as its name and type.  You can
         also cancel the current node instance.</para>
-        <programlisting role="JAVA">
+        <programlisting language="java">
 NodeInstance node = context.getNodeInstance();
 String name = node.getNodeName();</programlisting>
         </listitem>
         <listitem><para>Getting the current process instance.  A process instance
         can be queried for data (name, id, processId, etc.), aborted or
         signalled an internal event.</para>
-        <programlisting role="JAVA">
+        <programlisting language="java">
 WorkflowProcessInstance proc = context.getProcessInstance();
 proc.signalEvent( type, eventObject );</programlisting>
         </listitem>
@@ -1363,11 +1363,11 @@
         action node, or an on-entry or on-exit action of some node) can signal the
         occurence of an internal event to the surrounding process instance, using code
         like the following:</para>
-        <programlisting role="JAVA">
+        <programlisting language="java">
 context.getProcessInstance().signalEvent(type, eventData);</programlisting></listitem>
         <listitem><para>External event: A process instance can be notified of an event
         from outside using code such as:</para>
-        <programlisting role="JAVA">
+        <programlisting language="java">
 processInstance.signalEvent(type, eventData);</programlisting></listitem>
         <listitem><para>External event using event correlation: Instead of notifying a
         process instance directly, it is also possible to have the engine
@@ -1377,7 +1377,7 @@
         listening to external events of some type is notified whenever such
         an event occurs. To signal such an event to the process engine, write
         code such as:</para>
-        <programlisting role="JAVA">
+        <programlisting language="java">
 workingMemory.signalEvent(type, eventData);</programlisting></listitem>
       </itemizedlist>
 
@@ -1434,7 +1434,7 @@
     needed to react to the given fault cannot be expressed in one action.
     It is therefore recommended to have the exception handler signal an
     event of a specific type (in this case "Fault") using</para>
-    <programlisting role="JAVA">
+    <programlisting language="java">
 context.getProcessInstance().signalEvent("FaultType", context.getVariable("FaultVariable");</programlisting>
 
   </section>
@@ -1552,7 +1552,7 @@
     is simply the new node id in the node container (so no unique node id here, simply the new
     node id).  The following code snippet shows a simple example.</para>
 
-    <programlisting role="JAVA">
+    <programlisting language="java">
 // create the session and start the process "com.sample.ruleflow"
 KnowledgeBuilder kbuilder = ...
 StatefulKnowledgeSession ksession = ...
@@ -1620,7 +1620,7 @@
     by a process, can also access the process context in the rule consequence.
     Through the process context, the process instance or node instance that triggered
     the ruleflow-group can be accessed, or variables could be set or retrieved, e.g.</para>
-    <programlisting role="JAVA">drools.getContext(ProcessContext.class).getProcessInstance()</programlisting>
+    <programlisting language="java">drools.getContext(ProcessContext.class).getProcessInstance()</programlisting>
   </section>
 
   <section>

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-flow/src/main/docbook/en-US/Chapter-GettingStarted/Chapter-GettingStarted.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-flow/src/main/docbook/en-US/Chapter-GettingStarted/Chapter-GettingStarted.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-flow/src/main/docbook/en-US/Chapter-GettingStarted/Chapter-GettingStarted.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -236,7 +236,7 @@
       </listitem>
     </orderedlist>
 
-<programlisting role="JAVA">
+<programlisting language="java">
 package com.sample;
 
 import org.drools.KnowledgeBase;

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-flow/src/main/docbook/en-US/Chapter-HumanTasks/Chapter-HumanTasks.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-flow/src/main/docbook/en-US/Chapter-HumanTasks/Chapter-HumanTasks.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-flow/src/main/docbook/en-US/Chapter-HumanTasks/Chapter-HumanTasks.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -236,7 +236,7 @@
       (org.drools.process.workitem.wsht.WSHumanTaskHandler in the 
       drools-process-task module) so you can easily link this
       work item handler like this:</para>
-      <programlisting role="JAVA">
+      <programlisting language="java">
   StatefulKnowledgeSession session = ...;
   session.getWorkItemManager().registerWorkItemHandler("Human Task", new WSHumanTaskHandler());</programlisting>
       <para>By default, this handler will connect to the human task management component
@@ -256,7 +256,7 @@
       the implementation of the following methods for interacting with Human
       Tasks:</para>
 
-      <programlisting role="JAVA">
+      <programlisting language="java">
 public void start( long taskId, String userId, TaskOperationResponseHandler responseHandler )
 public void stop( long taskId, String userId, TaskOperationResponseHandler responseHandler )
 public void release( long taskId, String userId, TaskOperationResponseHandler responseHandler )
@@ -301,7 +301,7 @@
       implement the correct action. A creation of one of this messages will be
       like this:</para>
 
-      <programlisting role="JAVA">
+      <programlisting language="java">
 public void complete(long taskId,
                      String userId,
                      ContentData outputData,
@@ -345,7 +345,7 @@
       start it as a separate service as well.  To start the task server, you 
       can use the following code fragment:</para>
 
-      <programlisting role="JAVA">
+      <programlisting language="java">
 EntityManagerFactory emf = Persistence.createEntityManagerFactory("org.drools.task");
 taskService = new TaskService(emf);
 MinaTaskServer server = new MinaTaskServer( taskService );

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-flow/src/main/docbook/en-US/Chapter-Persistence/Chapter-Persistence.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-flow/src/main/docbook/en-US/Chapter-Persistence/Chapter-Persistence.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-flow/src/main/docbook/en-US/Chapter-Persistence/Chapter-Persistence.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -108,7 +108,7 @@
     environment.  The environment needs to contain a reference to your
     Entity Manager Factory.</para>
 
-    <programlisting role="JAVA">
+    <programlisting language="java">
 // create the entity manager factory and register it in the environment
 EntityManagerFactory emf =
     Persistence.createEntityManagerFactory( "org.drools.persistence.jpa" );
@@ -127,7 +127,7 @@
     <para>You can also yse the <code>JPAKnowledgeService</code> to recreate
     a session based on a specific session id:</para>
 
-    <programlisting role="JAVA">
+    <programlisting language="java">
 // recreate the session from database using the sessionId
 ksession = JPAKnowledgeService.loadStatefulKnowledgeSession( sessionId, kbase, null, env );</programlisting>
 
@@ -199,7 +199,7 @@
     The following Java fragment could be used to set up this data source, where
     we are using the file-based H2 database.</para>
 
-    <programlisting role="JAVA">
+    <programlisting language="java">
 PoolingDataSource ds = new PoolingDataSource();
 ds.setUniqueName("jdbc/processInstanceDS");
 ds.setClassName("org.h2.jdbcx.JdbcDataSource");
@@ -220,7 +220,7 @@
     that was started in another session), as the runtime state is persisted safely in a database, and can be
     retrieved whenever necessary.</para>
 
-    <programlisting role="JAVA">
+    <programlisting language="java">
   StatefulKnowledgeSession session = kbase.newStatefulKnowledgeSession();
   long processInstanceId = session.startProcess("org.drools.test.TestProcess").getId();
   session.dispose();</programlisting-->
@@ -240,7 +240,7 @@
     transaction manager.  Next, we use the Java Transaction API (JTA)
     to specify transaction boundaries, as shown below:</para>
 
-    <programlisting role="JAVA">
+    <programlisting language="java">
 // create the entity manager factory and register it in the environment
 EntityManagerFactory emf =
     Persistence.createEntityManagerFactory( "org.drools.persistence.jpa" );
@@ -346,7 +346,7 @@
       <para>To log process history information in a database like this, you
       need to register the logger on your session (or working memory) like
       this:</para>
-      <programlisting role="JAVA">
+      <programlisting language="java">
 StatefulKnowledgeSession ksession = ...;
 WorkingMemoryDbLogger logger = new WorkingMemoryDbLogger(ksession);
 

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-flow/src/main/docbook/en-US/Chapter-RulesAndProcesses/Chapter-RulesAndProcesses.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-flow/src/main/docbook/en-US/Chapter-RulesAndProcesses/Chapter-RulesAndProcesses.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-flow/src/main/docbook/en-US/Chapter-RulesAndProcesses/Chapter-RulesAndProcesses.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -381,7 +381,7 @@
       or a set of rules into the engine is very similar. Also, different
       rule implementations, such DRL or DSL, are handled in a uniform way.</para>
 
-      <programlisting role="JAVA">
+      <programlisting language="java">
 private static KnowledgeBase createKnowledgeBase() throws Exception {
     KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
     kbuilder.add( ResourceFactory.newClassPathResource(

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-flow/src/main/docbook/en-US/Chapter-Walkthrough/Chapter-Walkthrough.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-flow/src/main/docbook/en-US/Chapter-Walkthrough/Chapter-Walkthrough.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-flow/src/main/docbook/en-US/Chapter-Walkthrough/Chapter-Walkthrough.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -131,7 +131,7 @@
     event request.  The following code snippet shows how this looks.  For more detail on how to create
     the knowledge base and session, you can take a look at the source code in drools-examples.</para>
 
-<programlisting role="JAVA">public static final void main(String[] args) {
+<programlisting language="java">public static final void main(String[] args) {
   try {
     // load up the knowledge base
     KnowledgeBase kbase = readKnowledgeBase();

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-fusion/src/main/docbook/en-US/Chapter-Features/Chapter-EventProcessingModes/Section-EventProcessingModes_CloudMode.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-fusion/src/main/docbook/en-US/Chapter-Features/Chapter-EventProcessingModes/Section-EventProcessingModes_CloudMode.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-fusion/src/main/docbook/en-US/Chapter-Features/Chapter-EventProcessingModes/Section-EventProcessingModes_CloudMode.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -55,7 +55,7 @@
   either by setting a system property, using configuration property files or
   using the API. The corresponding property is:</para>
 
-  <programlisting role="JAVA">KnowledgeBaseConfiguration config = KnowledgeBaseFactory.newKnowledgeBaseConfiguration();
+  <programlisting language="java">KnowledgeBaseConfiguration config = KnowledgeBaseFactory.newKnowledgeBaseConfiguration();
 config.setOption( EventProcessingOption.CLOUD );</programlisting>
 
   <para>The equivalent property is:</para>

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-fusion/src/main/docbook/en-US/Chapter-Features/Chapter-EventProcessingModes/Section-EventProcessingModes_StreamMode.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-fusion/src/main/docbook/en-US/Chapter-Features/Chapter-EventProcessingModes/Section-EventProcessingModes_StreamMode.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-fusion/src/main/docbook/en-US/Chapter-Features/Chapter-EventProcessingModes/Section-EventProcessingModes_StreamMode.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -31,7 +31,7 @@
   <para>Given that the above requirements are met, the application may enable
   the STREAM mode using the following API:</para>
 
-  <programlisting role="JAVA">KnowledgeBaseConfiguration config = KnowledgeBaseFactory.newKnowledgeBaseConfiguration();
+  <programlisting language="java">KnowledgeBaseConfiguration config = KnowledgeBaseFactory.newKnowledgeBaseConfiguration();
 config.setOption( EventProcessingOption.STREAM );</programlisting>
 
   <para>Or, the equivalent property: </para>

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-fusion/src/main/docbook/en-US/Chapter-Features/Chapter-Events/Section-Events_EventsMetadata.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-fusion/src/main/docbook/en-US/Chapter-Features/Chapter-Events/Section-Events_EventsMetadata.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-fusion/src/main/docbook/en-US/Chapter-Features/Chapter-Events/Section-Events_EventsMetadata.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -18,7 +18,7 @@
   <example>
     <title>the VoiceCall fact class</title>
 
-    <programlisting role="JAVA">/**
+    <programlisting language="java">/**
  * A class that represents a voice call in 
  * a Telecom domain model
  */

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-fusion/src/main/docbook/en-US/Chapter-Features/Chapter-RulebasePartitioning/Section-RulebasePartitioning_HowToConfigurePartitioning.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-fusion/src/main/docbook/en-US/Chapter-Features/Chapter-RulebasePartitioning/Section-RulebasePartitioning_HowToConfigurePartitioning.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-fusion/src/main/docbook/en-US/Chapter-Features/Chapter-RulebasePartitioning/Section-RulebasePartitioning_HowToConfigurePartitioning.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -12,7 +12,7 @@
     <example>
       <title>Enabling multithread evaluation (partitioning)</title>
 
-      <programlisting role="JAVA">KnowledgeBaseConfiguration config = KnowledgeBaseFactory.newKnowledgeBaseConfiguration();
+      <programlisting language="java">KnowledgeBaseConfiguration config = KnowledgeBaseFactory.newKnowledgeBaseConfiguration();
 config.setOption( MultithreadEvaluationOption.YES );
 </programlisting>
     </example>

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-fusion/src/main/docbook/en-US/Chapter-Features/Chapter-RulebasePartitioning/Section-RulebasePartitioning_MultithreadingManagement.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-fusion/src/main/docbook/en-US/Chapter-Features/Chapter-RulebasePartitioning/Section-RulebasePartitioning_MultithreadingManagement.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-fusion/src/main/docbook/en-US/Chapter-Features/Chapter-RulebasePartitioning/Section-RulebasePartitioning_MultithreadingManagement.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -16,7 +16,7 @@
         <title>setting the maximum number of threads for rule evaluation to
         5</title>
 
-        <programlisting role="JAVA">KnowledgeBaseConfiguration config = KnowledgeBaseFactory.newKnowledgeBaseConfiguration();
+        <programlisting language="java">KnowledgeBaseConfiguration config = KnowledgeBaseFactory.newKnowledgeBaseConfiguration();
 config.setOption( MaxThreadsOption.get(5) );
 </programlisting>
       </example>

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-fusion/src/main/docbook/en-US/Chapter-Features/Chapter-SessionClock/Section-SessionClock_AvailableClockImplementations.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-fusion/src/main/docbook/en-US/Chapter-Features/Chapter-SessionClock/Section-SessionClock_AvailableClockImplementations.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-fusion/src/main/docbook/en-US/Chapter-Features/Chapter-SessionClock/Section-SessionClock_AvailableClockImplementations.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -20,7 +20,7 @@
     <para>To explicitly configure the engine to use the real time clock, just
     set the session configuration parameter to real time:</para>
 
-    <programlisting role="JAVA">KnowledgeSessionConfiguration config = KnowledgeBaseFactory.newKnowledgeSessionConfiguration();
+    <programlisting language="java">KnowledgeSessionConfiguration config = KnowledgeBaseFactory.newKnowledgeSessionConfiguration();
 config.setOption( ClockTypeOption.get("realtime") );
 </programlisting>
   </section>
@@ -36,12 +36,12 @@
 
     <para>To configure the pseudo session clock, do:</para>
 
-    <programlisting role="JAVA">KnowledgeSessionConfiguration config = KnowledgeBaseFactory.newKnowledgeSessionConfiguration();
+    <programlisting language="java">KnowledgeSessionConfiguration config = KnowledgeBaseFactory.newKnowledgeSessionConfiguration();
 config.setOption( ClockTypeOption.get("pseudo") );</programlisting>
 
     <para>As an example of how to control the pseudo session clock:</para>
 
-    <programlisting role="JAVA">KnowledgeSessionConfiguration conf = KnowledgeBaseFactory.newKnowledgeSessionConfiguration();
+    <programlisting language="java">KnowledgeSessionConfiguration conf = KnowledgeBaseFactory.newKnowledgeSessionConfiguration();
 conf.setOption( ClockTypeOption.get( "pseudo" ) );
 StatefulKnowledgeSession session = kbase.newStatefulKnowledgeSession( conf, null );
         

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-fusion/src/main/docbook/en-US/Chapter-Features/Chapter-StreamsSupport/Section-StreamsSupport_DeclaringAndUsingStreams.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-fusion/src/main/docbook/en-US/Chapter-Features/Chapter-StreamsSupport/Section-StreamsSupport_DeclaringAndUsingStreams.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-fusion/src/main/docbook/en-US/Chapter-Features/Chapter-StreamsSupport/Section-StreamsSupport_DeclaringAndUsingStreams.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -70,7 +70,7 @@
   <example>
       <title>Inserting facts into an entry point</title>
 
-      <programlisting role="JAVA">// create your rulebase and your session as usual
+      <programlisting language="java">// create your rulebase and your session as usual
 StatefulKnowledgeSession session = ...
 
 // get a reference to the entry point

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-guvnor/src/main/docbook/en-US/Chapter-Guvnor/Section-UserGuide.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-guvnor/src/main/docbook/en-US/Chapter-Guvnor/Section-UserGuide.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-guvnor/src/main/docbook/en-US/Chapter-Guvnor/Section-UserGuide.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -1064,7 +1064,7 @@
         Fact.field name as shown above), and the value is a java.util.List of
         Strings.</para>
 
-        <programlisting role="JAVA">
+        <programlisting language="java">
 public class SampleDataSource2 {
 
   public Map&lt;String&gt;, List&lt;String&gt;&gt; loadData() {
@@ -1083,7 +1083,7 @@
 
         <para>And in the enumeration in the brms, you put:</para>
 
-        <programlisting role="JAVA">=(new SampleDataSource2()).loadData()
+        <programlisting language="java">=(new SampleDataSource2()).loadData()
 </programlisting>
 
         <para>The "=" tells it to load the data by executing your code.</para>
@@ -1505,7 +1505,7 @@
     <para>These fact models can be used like normal fact objects, however the
     way you create them is different (as they are not on your applications
     classpath). To create these objects, they are available from the RuleBase
-    instance. <programlisting role="JAVA">
+    instance. <programlisting language="java">
           // Retrieve the generated fact type
         FactType cheeseFact = ruleBase.getFactType( "org.drools.generatedbeans.Cheese" );
 
@@ -1775,7 +1775,7 @@
       If the change set specifies a resource that is a directory it's contents
       will be scanned for changes too.</para>
 
-      <programlisting role="JAVA">
+      <programlisting language="java">
  KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent( "MyAgent" );
  kagent.applyChangeSet( ResourceFactory.newUrlResource( url ) );
  KnowledgeBase kbase = kagent.getKnowledgeBase();
@@ -1786,7 +1786,7 @@
       "drools.agent.scanDirectories", by default any specified directories are
       scanned for new additions, it is possible to disable this.</para>
 
-      <programlisting role="JAVA">KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();
+      <programlisting language="java">KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase();
 
  KnowledgeAgentConfiguration kaconf = KnowledgeAgentFactory.newKnowledgeAgentConfiguration();
  kaconf.setProperty( "drools.agent.scanDirectories",
@@ -1810,7 +1810,7 @@
       started, the same is for notification. This can be done via the
       ResourceFactory.</para>
 
-      <programlisting role="JAVA">ResourceFactory.getResourceChangeNotifierService().start();
+      <programlisting language="java">ResourceFactory.getResourceChangeNotifierService().start();
 ResourceFactory.getResourceChangeScannerService().start();</programlisting>
 
       <para>Following shows the deployment screen of Guvnor, which provides

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Camel/Section-API/Section-CamelRoutesCreation.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Camel/Section-API/Section-CamelRoutesCreation.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Camel/Section-API/Section-CamelRoutesCreation.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -36,7 +36,7 @@
   <para>Now that you know how define a drools endpoint, you can create your
   routes and add them to the Camel Context</para>
 
-  <programlisting role="JAVA">RouteBuilder rb = new RouteBuilder() {
+  <programlisting language="java">RouteBuilder rb = new RouteBuilder() {
    public void configure() throws Exception {
       from("direct:test-with-session").policy(new DroolsPolicy()).unmarshal("xstream").to("drools:node/ksession1").marshal("xstream");
    }

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Camel/Section-API/Section-CreatingDroolsCommands.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Camel/Section-API/Section-CreatingDroolsCommands.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Camel/Section-API/Section-CreatingDroolsCommands.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -13,7 +13,7 @@
 
   <para></para>
 
-  <programlisting role="JAVA">BatchExecutionCommand cmd = new BatchExecutionCommand();
+  <programlisting language="java">BatchExecutionCommand cmd = new BatchExecutionCommand();
 cmd.setLookup("ksession1");
 cmd.getCommands().add(new InsertObjectCommand(new Person("lucaz", 25), "person1"));
 cmd.getCommands().add(new InsertObjectCommand(new Person("hadrian", 25), "person2"));

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Camel/Section-API/Section-CreatingOurCamelContext.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Camel/Section-API/Section-CreatingOurCamelContext.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Camel/Section-API/Section-CreatingOurCamelContext.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -12,7 +12,7 @@
   Local grid connection. The next step after the LocalConnection creation is
   to get a new ExecutionNode and register this inside the CamelContext.</para>
 
-  <programlisting role="JAVA">LocalConnection connection = new LocalConnection();
+  <programlisting language="java">LocalConnection connection = new LocalConnection();
 ExecutionNode node = connection.getExecutionNode();
 node.setId("node");
 Context jndiContext = new JndiContext();

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Camel/Section-API/Section-RegisteringKnowledgeSession.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Camel/Section-API/Section-RegisteringKnowledgeSession.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Camel/Section-API/Section-RegisteringKnowledgeSession.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -10,5 +10,5 @@
   into the ExecutionNode all the KnowledgeSessions that you are going to
   use.</para>
 
-  <programlisting role="JAVA">node.get(DirectoryLookupFactoryService.class).register("ksession1", ksession);    </programlisting>
+  <programlisting language="java">node.get(DirectoryLookupFactoryService.class).register("ksession1", ksession);    </programlisting>
 </section>

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Camel/Section-API/Section-SendingMessagesExchanges.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Camel/Section-API/Section-SendingMessagesExchanges.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Camel/Section-API/Section-SendingMessagesExchanges.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -13,12 +13,12 @@
   <link
   xlink:href="http://camel.apache.org/producertemplate.html">ProducerTemplate</link></para>
 
-  <programlisting role="JAVA">ProducerTemplate template = camelContext.createProducerTemplate();</programlisting>
+  <programlisting language="java">ProducerTemplate template = camelContext.createProducerTemplate();</programlisting>
 
   <para>After you have a template, you can start to send message exchange to
   your route:</para>
 
-  <programlisting role="JAVA">String xml = "&lt;xml&gt;example&lt;/xml&gt;";
+  <programlisting language="java">String xml = "&lt;xml&gt;example&lt;/xml&gt;";
 template.requestBody("direct:with-session-xstream", xml);</programlisting>
 
   <para></para>
@@ -93,7 +93,7 @@
         <para>Here we are adding our XSD model definition to our
         KnowledgeBuilder as a resource</para>
 
-        <programlisting role="JAVA">Options xjcOpts = new Options();
+        <programlisting language="java">Options xjcOpts = new Options();
 xjcOpts.setSchemaLanguage( Language.XMLSCHEMA );
 JaxbConfiguration jaxbConfiguration = KnowledgeBuilderFactory.newJaxbConfiguration( xjcOpts, "xsd" );
 kbuilder.add( ResourceFactory.newClassPathResource("person.xsd", getClass()), ResourceType.XSD, jaxbConfiguration);</programlisting>
@@ -103,7 +103,7 @@
         the Drools Expert documentation. Finally, we are going to create the
         JAXBContext</para>
 
-        <programlisting role="JAVA">JAXBContext jaxbContext = null;
+        <programlisting language="java">JAXBContext jaxbContext = null;
 JaxbDataFormat def = new JaxbDataFormat();
 def.setPrettyPrint(true);
 // Set the package names to be registered by JAXB
@@ -128,7 +128,7 @@
       <listitem>
         <para>BatchExecutionCommand marshalling</para>
 
-        <programlisting role="JAVA">StringWriter xmlReq = new StringWriter();
+        <programlisting language="java">StringWriter xmlReq = new StringWriter();
 Marshaller marshaller = jaxbContext.createMarshaller();
 marshaller.setProperty("jaxb.formatted.output", true);
 marshaller.marshal(batchExecutionCommand, xmlReq);</programlisting>
@@ -137,7 +137,7 @@
       <listitem>
         <para>Sending the commands through the ProducerTemplate</para>
 
-        <programlisting role="JAVA">String xml = xmlReq.toString();
+        <programlisting language="java">String xml = xmlReq.toString();
 byte[] xmlOutput = (byte[]) template.requestBodyAndHeader("direct:test-with-session", xmlReq.toString());</programlisting>
       </listitem>
 
@@ -148,7 +148,7 @@
         <para>And the final step is to convert the XML output to an
         ExecutionResults instance</para>
 
-        <programlisting role="JAVA">ExecutionResults resp = (ExecutionResults) jaxbContext.createUnmarshaller().unmarshal(new ByteArrayInputStream(xmlOutput));</programlisting>
+        <programlisting language="java">ExecutionResults resp = (ExecutionResults) jaxbContext.createUnmarshaller().unmarshal(new ByteArrayInputStream(xmlOutput));</programlisting>
       </listitem>
     </orderedlist>
 

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-API/Section-API.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-API/Section-API.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-API/Section-API.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -102,7 +102,7 @@
 
       <para></para>
 
-      <programlisting role="JAVA">Options xjcOpts = new Options();
+      <programlisting language="java">Options xjcOpts = new Options();
 xjcOpts.setSchemaLanguage(Language.XMLSCHEMA);
 JaxbConfiguration jaxbConfiguration = KnowledgeBuilderFactory.newJaxbConfiguration( xjcOpts, "xsd" );
 kbuilder.add(ResourceFactory.newClassPathResource("person.xsd", getClass()), ResourceType.XSD, jaxbConfiguration);
@@ -135,7 +135,7 @@
 
       <para></para>
 
-      <programlisting role="JAVA">List&lt;String&gt; classNames = new ArrayList&lt;String&gt;();
+      <programlisting language="java">List&lt;String&gt; classNames = new ArrayList&lt;String&gt;();
 classNames.add("org.drools.test.Person");
 JAXBContext jaxbContext = DroolsJaxbContextHelper.createDroolsJaxbContext(classNames, null);
 Marshaller marshaller = jaxbContext.createMarshaller();</programlisting>

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-AbortWorkItemCommand.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-AbortWorkItemCommand.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-AbortWorkItemCommand.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -48,7 +48,7 @@
 
     <listitem>
       <para>Command creation</para>
-      <programlisting role="JAVA">BatchExecutionCommand command = new BatchExecutionCommand();
+      <programlisting language="java">BatchExecutionCommand command = new BatchExecutionCommand();
 command.setLookup("ksession1");
 AbortWorkItemCommand abortWorkItemCommand = new AbortWorkItemCommand();
 abortWorkItemCommand.setWorkItemId(1001);

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-BatchExecutionCommand.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-BatchExecutionCommand.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-BatchExecutionCommand.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -57,7 +57,7 @@
 
     <listitem>
       <para>Command creation</para>
-      <programlisting role="JAVA">BatchExecutionCommand command = new BatchExecutionCommand();
+      <programlisting language="java">BatchExecutionCommand command = new BatchExecutionCommand();
 command.setLookup("ksession1");
 InsertObjectCommand insertObjectCommand = new InsertObjectCommand(new Person("john", 25));
 FireAllRulesCommand fireAllRulesCommand = new FireAllRulesCommand();

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-Commands.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-Commands.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-Commands.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -92,19 +92,19 @@
         <listitem>
           <para>XStream</para>
 
-          <programlisting role="JAVA">String xml = BatchExecutionHelper.newXStreamMarshaller().toXML(command);</programlisting>
+          <programlisting language="java">String xml = BatchExecutionHelper.newXStreamMarshaller().toXML(command);</programlisting>
         </listitem>
 
         <listitem>
           <para>JSON</para>
 
-          <programlisting role="JAVA">String xml = BatchExecutionHelper.newJSonMarshaller().toXML(command);</programlisting>
+          <programlisting language="java">String xml = BatchExecutionHelper.newJSonMarshaller().toXML(command);</programlisting>
         </listitem>
 
         <listitem>
           <para>JAXB</para>
 
-          <programlisting role="JAVA">Marshaller marshaller = jaxbContext.createMarshaller();
+          <programlisting language="java">Marshaller marshaller = jaxbContext.createMarshaller();
 StringWriter xml = new StringWriter();
 marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);
 marshaller.marshal(command, xml);</programlisting>

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-CompleteWorkItemCommand.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-CompleteWorkItemCommand.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-CompleteWorkItemCommand.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -55,7 +55,7 @@
 
     <listitem>
       <para>Command creation</para>
-      <programlisting role="JAVA">BatchExecutionCommand command = new BatchExecutionCommand();
+      <programlisting language="java">BatchExecutionCommand command = new BatchExecutionCommand();
 command.setLookup("ksession1");
 CompleteWorkItemCommand completeWorkItemCommand = new CompleteWorkItemCommand();
 completeWorkItemCommand.setWorkItemId(1001);

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-FireAllRulesCommand.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-FireAllRulesCommand.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-FireAllRulesCommand.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -67,7 +67,7 @@
 
     <listitem>
       <para>Command creation</para>
-      <programlisting role="JAVA">BatchExecutionCommand command = new BatchExecutionCommand();
+      <programlisting language="java">BatchExecutionCommand command = new BatchExecutionCommand();
 command.setLookup("ksession1");
 FireAllRulesCommand fireAllRulesCommand = new FireAllRulesCommand();
 fireAllRulesCommand.setMax(10);

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-GetGlobalCommand.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-GetGlobalCommand.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-GetGlobalCommand.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -57,7 +57,7 @@
 
     <listitem>
       <para>Command creation</para>
-      <programlisting role="JAVA">BatchExecutionCommand command = new BatchExecutionCommand();
+      <programlisting language="java">BatchExecutionCommand command = new BatchExecutionCommand();
 command.setLookup("ksession1");
 GetGlobalCommand getGlobalCommand = new GetGlobalCommand();
 getGlobalCommand.setIdentifier("helper");

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-GetObjectCommand.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-GetObjectCommand.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-GetObjectCommand.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -57,7 +57,7 @@
 
     <listitem>
       <para>Command creation</para>
-      <programlisting role="JAVA">BatchExecutionCommand command = new BatchExecutionCommand();
+      <programlisting language="java">BatchExecutionCommand command = new BatchExecutionCommand();
 command.setLookup("ksession1");
 GetObjectCommand getObjectCommand = new GetObjectCommand();
 getObjectCommand.setFactHandleFromString("123:234:345:456:567");

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-GetObjectsCommand.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-GetObjectsCommand.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-GetObjectsCommand.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -58,7 +58,7 @@
 
     <listitem>
       <para>Command creation</para>
-      <programlisting role="JAVA">BatchExecutionCommand command = new BatchExecutionCommand();
+      <programlisting language="java">BatchExecutionCommand command = new BatchExecutionCommand();
 command.setLookup("ksession1");
 GetObjectsCommand getObjectsCommand = new GetObjectsCommand();
 getObjectsCommand.setOutIdentifier("objects");

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-InsertElementsCommand.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-InsertElementsCommand.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-InsertElementsCommand.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -78,7 +78,7 @@
     <listitem>
       <para>Command creation</para>
 
-      <programlisting role="JAVA">List&lt;Command&gt; cmds = ArrayList&lt;Command&gt;();
+      <programlisting language="java">List&lt;Command&gt; cmds = ArrayList&lt;Command&gt;();
 
 List&lt;Object&gt; objects = new ArrayList&lt;Object&gt;();
 objects.add(new Person("john", 25));

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-InsertObjectCommand.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-InsertObjectCommand.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-InsertObjectCommand.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -77,7 +77,7 @@
     <listitem>
       <para>Command creation</para>
 
-      <programlisting role="JAVA">List&lt;Command&gt; cmds = ArrayList&lt;Command&gt;();
+      <programlisting language="java">List&lt;Command&gt; cmds = ArrayList&lt;Command&gt;();
 
 Command insertObjectCommand = CommandFactory.newInsert(new Person("john", 25), "john", false, null);
 cmds.add( insertObjectCommand );

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-ModifyCommand.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-ModifyCommand.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-ModifyCommand.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -57,7 +57,7 @@
 
     <listitem>
       <para>Command creation</para>
-      <programlisting role="JAVA">BatchExecutionCommand command = new BatchExecutionCommand();
+      <programlisting language="java">BatchExecutionCommand command = new BatchExecutionCommand();
 command.setLookup("ksession1");
 ModifyCommand modifyCommand = new ModifyCommand();
 modifyCommand.setFactHandleFromString("123:234:345:456:567");

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-QueryCommand.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-QueryCommand.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-QueryCommand.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -66,7 +66,7 @@
 
     <listitem>
       <para>Command creation</para>
-      <programlisting role="JAVA">BatchExecutionCommand command = new BatchExecutionCommand();
+      <programlisting language="java">BatchExecutionCommand command = new BatchExecutionCommand();
 command.setLookup("ksession1");
 QueryCommand queryCommand = new QueryCommand();
 queryCommand.setName("persons");

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-RetractCommand.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-RetractCommand.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-RetractCommand.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -54,7 +54,7 @@
         <listitem>
           <para>Create the Fact Handle from a string</para>
 
-          <programlisting role="JAVA">BatchExecutionCommand command = new BatchExecutionCommand();
+          <programlisting language="java">BatchExecutionCommand command = new BatchExecutionCommand();
 command.setLookup("ksession1");
 RetractCommand retractCommand = new RetractCommand();
 retractCommand.setFactHandleFromString("123:234:345:456:567");
@@ -65,7 +65,7 @@
           <para>Set the Fact Handle that you received when the object was
           inserted</para>
 
-          <programlisting role="JAVA">BatchExecutionCommand command = new BatchExecutionCommand();
+          <programlisting language="java">BatchExecutionCommand command = new BatchExecutionCommand();
 command.setLookup("ksession1");
 RetractCommand retractCommand = new RetractCommand(factHandle);
 command.getCommands().add(retractCommand);</programlisting>

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-SetGlobalCommand.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-SetGlobalCommand.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-SetGlobalCommand.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -73,7 +73,7 @@
 
     <listitem>
       <para>Command creation</para>
-      <programlisting role="JAVA">BatchExecutionCommand command = new BatchExecutionCommand();
+      <programlisting language="java">BatchExecutionCommand command = new BatchExecutionCommand();
 command.setLookup("ksession1");
 SetGlobalCommand setGlobalCommand = new SetGlobalCommand();
 setGlobalCommand.setIdentifier("helper");

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-SignalEventCommand.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-SignalEventCommand.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-SignalEventCommand.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -63,7 +63,7 @@
 
     <listitem>
       <para>Command creation</para>
-      <programlisting role="JAVA">BatchExecutionCommand command = new BatchExecutionCommand();
+      <programlisting language="java">BatchExecutionCommand command = new BatchExecutionCommand();
 command.setLookup("ksession1");
 SignalEventCommand signalEventCommand = new SignalEventCommand();
 signalEventCommand.setProcessInstanceId(1001);

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-StartProcessCommand.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-StartProcessCommand.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-integration/src/main/docbook/en-US/Chapter-Commands/Section-Commands/Section-StartProcessCommand.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -66,7 +66,7 @@
 
     <listitem>
       <para>Command creation</para>
-      <programlisting role="JAVA">BatchExecutionCommand command = new BatchExecutionCommand();
+      <programlisting language="java">BatchExecutionCommand command = new BatchExecutionCommand();
 command.setLookup("ksession1");
 StartProcessCommand startProcessCommand = new StartProcessCommand();
 startProcessCommand.setProcessId("org.drools.task.processOne");

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-introduction/src/main/docbook/en-US/Chapter-Release_Notes/Section-Upgrade_tips.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-introduction/src/main/docbook/en-US/Chapter-Release_Notes/Section-Upgrade_tips.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-introduction/src/main/docbook/en-US/Chapter-Release_Notes/Section-Upgrade_tips.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -32,14 +32,14 @@
       <example>
           <title>Drools 3.0.x: Working Memory Creation</title>
 
-          <programlisting role="JAVA">WorkingMemory wm = rulebase.newWorkingMemory();</programlisting>
+          <programlisting language="java">WorkingMemory wm = rulebase.newWorkingMemory();</programlisting>
         </example>
       <para>In Drools 4.0.x it must be changed to:</para>
 
       <example>
           <title>Drools 4.0.x: Stateful Rule Session Creation</title>
 
-          <programlisting role="JAVA">StatefulSession wm = rulebase.newStatefulSession();</programlisting>
+          <programlisting language="java">StatefulSession wm = rulebase.newStatefulSession();</programlisting>
         </example>
       <para>The StatefulSession object has the same behavior as the
       Drools 3.0.x WorkingMemory (it even extends the WorkingMemory

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-introduction/src/main/docbook/en-US/Chapter-Release_Notes/Section-What_is_new_Drools_5.0.0.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-introduction/src/main/docbook/en-US/Chapter-Release_Notes/Section-What_is_new_Drools_5.0.0.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-introduction/src/main/docbook/en-US/Chapter-Release_Notes/Section-What_is_new_Drools_5.0.0.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -67,7 +67,7 @@
     <example>
         <title>A Typical example to load a rule resource</title>
 
-        <programlisting role="JAVA">
+        <programlisting language="java">
 KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
 kbuilder.add( ResourceFactory.newUrlResource( url ),
             ResourceType.DRL );
@@ -92,7 +92,7 @@
         <code>ResourceType</code> is changed, in accordance with the
         <code>Resource</code> type</title>
 
-        <programlisting role="JAVA">
+        <programlisting language="java">
 KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
 kbuilder.add( ResourceFactory.newUrlResource( url ),
             ResourceType.DRF );
@@ -116,7 +116,7 @@
         now consistent with no need to pre generate the DRL with the
         spreadsheet compiler</title>
 
-        <programlisting role="JAVA">
+        <programlisting language="java">
 DecisionTableConfiguration dtconf = KnowledgeBuilderFactory.newDecisionTableConfiguration();
 dtconf.setInputType( DecisionTableInputType.XLS );
 dtconf.setWorksheetName( "Tables_2" );
@@ -144,7 +144,7 @@
     <example>
         <title>And it is added just like any other ResourceType</title>
 
-        <programlisting role="JAVA">
+        <programlisting language="java">
 KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
 kbuilder.add( ResourceFactory.newUrlResource( url ),
             ResourceType.ChangeSet );
@@ -159,7 +159,7 @@
         <title>These services currently are not started by default, to start
         them do the following</title>
 
-        <programlisting role="JAVA">
+        <programlisting language="java">
 ResourceFactory.getResourceChangeNotifierService().start();
 ResourceFactory.getResourceChangeScannerService().start();
 </programlisting>
@@ -339,7 +339,7 @@
       <example>
           <title>Getting multiple packages</title>
 
-          <programlisting role="JAVA">Package[] packages = pkgBuilder.getPackages();</programlisting>
+          <programlisting language="java">Package[] packages = pkgBuilder.getPackages();</programlisting>
         </example>
     </section>
 
@@ -357,7 +357,7 @@
           <title>Attaching <code>RuleBase</code> to
           <code>PackageBuilder</code></title>
 
-          <programlisting role="JAVA">RuleBase ruleBase = RuleBaseFactory.newRuleBase();
+          <programlisting language="java">RuleBase ruleBase = RuleBaseFactory.newRuleBase();
 PackageBuilder pkgBuilder = new PackageBuilder( ruleBase, null );</programlisting>
         </example>
     </section>
@@ -496,7 +496,7 @@
       <example>
           <title>Configuring</title>
 
-          <programlisting role="JAVA">
+          <programlisting language="java">
 KnowledgeBaseConfiguration config = KnowledgeBaseFactory.newKnowledgeBaseConfiguration();
 config.setOption( AssertBehaviorOption.EQUALITY );
 config.setOption( RemoveIdentitiesOption.YES );</programlisting>
@@ -507,7 +507,7 @@
       <example>
           <title>Configuring alpha threshold</title>
 
-          <programlisting role="JAVA">
+          <programlisting language="java">
 config.setOption( AlphaThresholdOption.get(5) );</programlisting>
         </example>
       <para>As you can see, the same <code>setOption()</code> method is
@@ -570,7 +570,7 @@
       <example>
           <title>Using <code>CommandFactory</code></title>
 
-          <programlisting role="JAVA">
+          <programlisting language="java">
 ksession.execute( CommandFactory.newInsert( person ) ); </programlisting>
         </example>
       <para>Typically though you will want to execute a batch of
@@ -585,7 +585,7 @@
       <example>
           <title>Using <code>BatchExecutionResult</code></title>
 
-          <programlisting role="JAVA">
+          <programlisting language="java">
 List&lt;Command&gt; cmds = new ArrayList&lt;Command&gt;();
 cmds.add( CommandFactory.newSetGlobal( "list1", new ArrayList(), true ) );
 cmds.add( CommandFactory.newInsert( new Person( "jon", 102 ), "person" ) );
@@ -604,7 +604,7 @@
       <example>
           <title>Using <code>PipelineFactory</code></title>
 
-          <programlisting role="JAVA">
+          <programlisting language="java">
 Action executeResultHandler = PipelineFactory.newExecuteResultHandler();
 Action assignResult = PipelineFactory.newAssignObjectAsResult();
 assignResult.setReceiver( executeResultHandler );
@@ -663,7 +663,7 @@
       <example>
           <title>Using <code>MarshallerFactory</code></title>
 
-          <programlisting role="JAVA">
+          <programlisting language="java">
 // ksession is the StatefulKnowledgeSession
 // kbase is the KnowledgeBase
 ByteArrayOutputStream baos = new ByteArrayOutputStream();
@@ -692,7 +692,7 @@
           <title>Code to use a
           <code>IdentityMarshallingStrategy</code></title>
 
-          <programlisting role="JAVA">
+          <programlisting language="java">
 ByteArrayOutputStream baos = new ByteArrayOutputStream();
 Marshaller marshaller = MarshallerFactory.newMarshaller( kbase, new ObjectMarshallingStrategy[] { MarshallerFactory.newIdentityMarshallingStrategy() } );
 marshaller.marshall( baos, ksession );
@@ -715,7 +715,7 @@
       <example>
           <title>Using identity lookup</title>
 
-          <programlisting role="JAVA">
+          <programlisting language="java">
 ByteArrayOutputStream baos = new ByteArrayOutputStream();
 ObjectMarshallingStrategyAcceptor identityAceceptor = MarshallerFactory.newClassFilterAcceptor( new String[] { "org.domain.pkg1.*" } );
 ObjectMarshallingStrategy identityStratetgy = MarshallerFactory.newIdentityMarshallingStrategy( identityAceceptor );
@@ -747,7 +747,7 @@
       <example>
           <title>Constructing an agent</title>
 
-          <programlisting role="JAVA">
+          <programlisting language="java">
 // Set the interval on the ResourceChangeScannerService if you are to use it and default of 60s is not desirable.
 ResourceChangeScannerConfiguration sconf = ResourceFactory.getResourceChangeScannerService().newResourceChangeScannerConfiguration();
 sconf.setProperty( "drools.resource.scanner.interval",
@@ -1003,7 +1003,7 @@
           <title>An example on how to use persistence and transactions in
           combination with processes</title>
 
-          <programlisting role="JAVA">
+          <programlisting language="java">
 // create a new JPA-based session and specify the JPA entity manager factory
 Environment env = KnowledgeBaseFactory.newEnvironment();
 env.set( EnvironmentName.ENTITY_MANAGER_FACTORY, Persistence.createEntityManagerFactory( "emf-name" ) );
@@ -1074,7 +1074,7 @@
                 <title>As a result, the life cycle methods of the task client
                 have been extended to allow content data</title>
 
-                <programlisting role="JAVA">
+                <programlisting language="java">
   taskClient.addTask(task, contentData, responseHandler)
   taskClient.complete(taskId, userId, outputData,responseHandler)
   taskFail.complete(taskId, userId, outputData,responseHandler)
@@ -1218,7 +1218,7 @@
       <example>
           <title>To insert facts into an entry point</title>
 
-          <programlisting role="JAVA">
+          <programlisting language="java">
 WorkingMemoryEntryPoint entry = wm.getWorkingMemoryEntryPoint( "stock stream" );
 entry.insert( ticker );
 </programlisting>
@@ -1322,7 +1322,7 @@
           new class that is optionally specified at session creation
           time</title>
 
-          <programlisting role="JAVA">
+          <programlisting language="java">
 SessionConfiguration conf = new SessionConfiguration();
 conf.setClockType( ClockType.PSEUDO_CLOCK );
 StatefulSession session = ruleBase.newStatefulSession( conf );

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-planner/src/main/docbook/en-US/Chapter-Benchmarking_and_tweaking/Chapter-Benchmarking_and_tweaking.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-planner/src/main/docbook/en-US/Chapter-Benchmarking_and_tweaking/Chapter-Benchmarking_and_tweaking.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-planner/src/main/docbook/en-US/Chapter-Benchmarking_and_tweaking/Chapter-Benchmarking_and_tweaking.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -24,14 +24,14 @@
     <para>You can build a <literal>Benchmarker</literal> instance with the<literal>XmlSolverBenchmarker</literal>.
     Configure it with a benchmarker configuration xml file:</para>
 
-    <programlisting role="JAVA">    XmlSolverBenchmarker benchmarker = new XmlSolverBenchmarker();
+    <programlisting language="java">    XmlSolverBenchmarker benchmarker = new XmlSolverBenchmarker();
     benchmarker.configure("/org/drools/planner/examples/nqueens/benchmark/nqueensSolverBenchmarkConfig.xml");
     benchmarker.benchmark();
     benchmarker.writeResults(resultFile);</programlisting>
 
     <para>A basic benchmarker configuration file looks something like this:</para>
 
-    <programlisting role="XML">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
+    <programlisting language="xml">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
 &lt;solverBenchmarkSuite&gt;
     &lt;benchmarkDirectory&gt;local/data/nqueens&lt;/benchmarkDirectory&gt;
 
@@ -120,7 +120,7 @@
     <para>To configure graph and CSV output of the best score over time, just add a
     <literal>solverStatisticType</literal> line:</para>
 
-    <programlisting role="XML">&lt;solverBenchmarkSuite&gt;
+    <programlisting language="xml">&lt;solverBenchmarkSuite&gt;
     &lt;benchmarkDirectory&gt;local/data/nqueens/solved&lt;/benchmarkDirectory&gt;
     &lt;solverStatisticType&gt;BEST_SOLUTION_CHANGED&lt;/solverStatisticType&gt;
     ...

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-planner/src/main/docbook/en-US/Chapter-Local_search/Chapter-Local_search.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-planner/src/main/docbook/en-US/Chapter-Local_search/Chapter-Local_search.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-planner/src/main/docbook/en-US/Chapter-Local_search/Chapter-Local_search.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -110,7 +110,7 @@
 
     <para>Each of your move types will be an implementation of the <literal>Move</literal> interface:</para>
 
-    <programlisting role="JAVA">public interface Move {
+    <programlisting language="java">public interface Move {
 
     boolean isMoveDoable(EvaluationHandler evaluationHandler);
 
@@ -123,7 +123,7 @@
     <para>Let's take a look at the <literal>Move</literal> implementation for 4 queens which moves a queen to a
     different row:</para>
 
-    <programlisting role="JAVA">public class YChangeMove implements Move {
+    <programlisting language="java">public class YChangeMove implements Move {
 
     private Queen queen;
     private int toY;
@@ -143,7 +143,7 @@
     <literal>Move</literal> implementation must notify the working memory of any changes it does on the solution
     facts:</para>
 
-    <programlisting role="JAVA">    public void doMove(WorkingMemory workingMemory) {
+    <programlisting language="java">    public void doMove(WorkingMemory workingMemory) {
         FactHandle queenHandle = workingMemory.getFactHandle(queen);
         queen.setY(toY);
         workingMemory.update(queenHandle, queen); // after changes are made
@@ -171,7 +171,7 @@
     <para>In the n queens example, a move which moves the queen from its current row to the same row isn't
     doable:</para>
 
-    <programlisting role="JAVA">    public boolean isMoveDoable(WorkingMemory workingMemory) {
+    <programlisting language="java">    public boolean isMoveDoable(WorkingMemory workingMemory) {
         int fromY = queen.getY();
         return fromY != toY;
     }</programlisting>
@@ -184,7 +184,7 @@
     C0</emphasis>. An undo move can be created from a move, but only before the move has been done on the current
     solution.</para>
 
-    <programlisting role="JAVA">    public Move createUndoMove(WorkingMemory workingMemory) {
+    <programlisting language="java">    public Move createUndoMove(WorkingMemory workingMemory) {
         return new YChangeMove(queen, queen.getY());
     }</programlisting>
 
@@ -197,7 +197,7 @@
     <para>A move must implement the <literal>equals()</literal> and <literal>hashcode()</literal> methods. 2 moves which
     make the same change on a solution, must be equal.</para>
 
-    <programlisting role="JAVA">    public boolean equals(Object o) {
+    <programlisting language="java">    public boolean equals(Object o) {
         if (this == o) {
             return true;
         } else if (o instanceof YChangeMove) {
@@ -226,7 +226,7 @@
     <para>It's also recommended to implement the <literal>toString()</literal> method as it allows you to read Drools
     Planner's logging more easily:</para>
 
-    <programlisting role="JAVA">    public String toString() {
+    <programlisting language="java">    public String toString() {
         return queen + " =&gt; " + toY;
     }</programlisting>
 
@@ -271,7 +271,7 @@
 
     <para>Move generation currently happens with a <literal>MoveFactory</literal>:</para>
 
-    <programlisting role="JAVA">public class NQueensMoveFactory extends CachedMoveListMoveFactory {
+    <programlisting language="java">public class NQueensMoveFactory extends CachedMoveListMoveFactory {
 
     public List&lt;Move&gt; createMoveList(Solution solution) {
         NQueens nQueens = (NQueens) solution;
@@ -442,14 +442,14 @@
 
       <para>A selector is currently based on a <literal>MoveFactory</literal>.</para>
 
-      <programlisting role="XML">  &lt;selector&gt;
+      <programlisting language="xml">  &lt;selector&gt;
     &lt;moveFactoryClass&gt;org.drools.planner.examples.nqueens.solver.NQueensMoveFactory&lt;/moveFactoryClass&gt;
   &lt;/selector&gt;</programlisting>
 
       <para>You're not obligated to generate the same set of moves at each step. It's generally a good idea to use
       several selectors, mixing fine grained moves and course grained moves:</para>
 
-      <programlisting role="XML">  &lt;selector&gt;
+      <programlisting language="xml">  &lt;selector&gt;
     &lt;selector&gt;
       &lt;moveFactoryClass&gt;org.drools.planner.examples.nurserostering.solver.move.factory.EmployeeChangeMoveFactory&lt;/moveFactoryClass&gt;
     &lt;/selector&gt;
@@ -485,7 +485,7 @@
             recommend this type of tabu because it tends to give the best results and requires little or no
             tweaking.</para>
 
-            <programlisting role="XML">    &lt;acceptor&gt;
+            <programlisting language="xml">    &lt;acceptor&gt;
         &lt;completeSolutionTabuSize&gt;1000&lt;/completeSolutionTabuSize&gt;
     &lt;/acceptor&gt;</programlisting>
           </listitem>
@@ -494,7 +494,7 @@
             <para><emphasis>Move tabu</emphasis> makes recent steps tabu. It does not accept a move equal to one of
             those steps.</para>
 
-            <programlisting role="XML">    &lt;acceptor&gt;
+            <programlisting language="xml">    &lt;acceptor&gt;
         &lt;completeMoveTabuSize&gt;7&lt;/completeMoveTabuSize&gt;
     &lt;/acceptor&gt;</programlisting>
           </listitem>
@@ -502,7 +502,7 @@
           <listitem>
             <para><emphasis>Undo move tabu </emphasis>makes the undo move of recent steps tabu.</para>
 
-            <programlisting role="XML">    &lt;acceptor&gt;
+            <programlisting language="xml">    &lt;acceptor&gt;
         &lt;completeUndoMoveTabuSize&gt;7&lt;/completeUndoMoveTabuSize&gt;
     &lt;/acceptor&gt;</programlisting>
           </listitem>
@@ -511,14 +511,14 @@
             <para><emphasis>Property tabu</emphasis> makes a property of recent steps tabu. For example, it can make the
             queen tabu, so that a recently moved queen can't be moved.</para>
 
-            <programlisting role="XML">    &lt;acceptor&gt;
+            <programlisting language="xml">    &lt;acceptor&gt;
         &lt;completePropertyTabuSize&gt;5&lt;/completePropertyTabuSize&gt;
     &lt;/acceptor&gt;</programlisting>
 
             <para>To use property tabu, your moves must implement the <literal>TabuPropertyEnabled</literal> interface,
             for example:</para>
 
-            <programlisting role="JAVA">public class YChangeMove implements Move, TabuPropertyEnabled {
+            <programlisting language="java">public class YChangeMove implements Move, TabuPropertyEnabled {
 
     private Queen queen;
     private int toY;
@@ -533,12 +533,12 @@
 
             <para>You can also make multiple properties tabu (with OR or AND semantics):</para>
 
-            <programlisting role="JAVA">    public List&lt;? extends Object&gt; getTabuPropertyList() {
+            <programlisting language="java">    public List&lt;? extends Object&gt; getTabuPropertyList() {
         // tabu with other moves that contain the same leftExam OR the same rightExam
         return Arrays.asList(leftExam, rightExam);
     }</programlisting>
 
-            <programlisting role="JAVA">    public List&lt;? extends Object&gt; getTabuPropertyList() {
+            <programlisting language="java">    public List&lt;? extends Object&gt; getTabuPropertyList() {
         // tabu with other moves that contain the same exam AND the same toPeriod (but not necessary the same toRoom)
         return Collections.singletonList(Arrays.asList(exam, toPeriod));
     }</programlisting>
@@ -547,7 +547,7 @@
 
         <para>You can even combine tabu types:</para>
 
-        <programlisting role="XML">    &lt;acceptor&gt;
+        <programlisting language="xml">    &lt;acceptor&gt;
         &lt;completeSolutionTabuSize&gt;1000&lt;/completeSolutionTabuSize&gt;
         &lt;completeMoveTabuSize&gt;7&lt;/completeMoveTabuSize&gt;
     &lt;/acceptor&gt;</programlisting>
@@ -574,7 +574,7 @@
         <para>Start with a <literal>simulatedAnnealingStartingTemperature</literal> set to the maximum score delta a
         single move can cause. Use the <literal>Benchmarker</literal> to tweak the value.</para>
 
-        <programlisting role="XML">    &lt;acceptor&gt;
+        <programlisting language="xml">    &lt;acceptor&gt;
       &lt;simulatedAnnealingStartingTemperature&gt;10.0&lt;/simulatedAnnealingStartingTemperature&gt;
     &lt;/acceptor&gt;
     &lt;forager&gt;
@@ -588,7 +588,7 @@
         <para>You can even combine it with a tabu acceptor at the same time. Use a lower tabu size than in a pure tabu
         search configuration.</para>
 
-        <programlisting role="XML">    &lt;acceptor&gt;
+        <programlisting language="xml">    &lt;acceptor&gt;
       &lt;simulatedAnnealingStartingTemperature&gt;10.0&lt;/simulatedAnnealingStartingTemperature&gt;
       &lt;completePropertyTabuSize&gt;5&lt;/completePropertyTabuSize&gt;
     &lt;/acceptor&gt;
@@ -623,7 +623,7 @@
             have be evaluated during each step. By default it is positive infinity, so all accepted moves are evaluated
             at every step.</para>
 
-            <programlisting role="XML">  &lt;forager&gt;
+            <programlisting language="xml">  &lt;forager&gt;
     &lt;minimalAcceptedSelection&gt;1000&lt;/minimalAcceptedSelection&gt;
   &lt;/forager&gt;</programlisting>
           </listitem>
@@ -645,7 +645,7 @@
             <para><literal>NEVER</literal>: A move is never picked early: all accepted moves are evaluated that the
             selection allows. This is the default.</para>
 
-            <programlisting role="XML">    &lt;forager&gt;
+            <programlisting language="xml">    &lt;forager&gt;
         &lt;pickEarlyType&gt;NEVER&lt;/pickEarlyType&gt;
     &lt;/forager&gt;</programlisting>
           </listitem>
@@ -654,7 +654,7 @@
             <para><literal>FIRST_BEST_SCORE_IMPROVING</literal>: Pick the first accepted move that improves the best
             score. If none improve the best score, it behaves exactly like the pickEarlyType NEVER.</para>
 
-            <programlisting role="XML">    &lt;forager&gt;
+            <programlisting language="xml">    &lt;forager&gt;
         &lt;pickEarlyType&gt;FIRST_BEST_SCORE_IMPROVING&lt;/pickEarlyType&gt;
     &lt;/forager&gt;</programlisting>
           </listitem>
@@ -664,7 +664,7 @@
             last step score. If none improve the last step score, it behaves exactly like the pickEarlyType
             NEVER.</para>
 
-            <programlisting role="XML">    &lt;forager&gt;
+            <programlisting language="xml">    &lt;forager&gt;
         &lt;pickEarlyType&gt;FIRST_LAST_STEP_SCORE_IMPROVING&lt;/pickEarlyType&gt;
     &lt;/forager&gt;</programlisting>
           </listitem>
@@ -684,7 +684,7 @@
     <para>You can listen to solver events, including when the best solution changes during solving, by adding a
     <literal>SolverEventListener</literal> to the <literal>Solver</literal>:</para>
 
-    <programlisting role="JAVA">public interface Solver {
+    <programlisting language="java">public interface Solver {
 
     // ...
 
@@ -715,13 +715,13 @@
 
       <para>Terminates when an amount of time has been reached:</para>
 
-      <programlisting role="XML">    &lt;termination&gt;
+      <programlisting language="xml">    &lt;termination&gt;
         &lt;maximumMinutesSpend&gt;2&lt;/maximumMinutesSpend&gt;
     &lt;/termination&gt;</programlisting>
 
       <para>or</para>
 
-      <programlisting role="XML">    &lt;termination&gt;
+      <programlisting language="xml">    &lt;termination&gt;
         &lt;maximumHoursSpend&gt;1&lt;/maximumHoursSpend&gt;
     &lt;/termination&gt;</programlisting>
 
@@ -739,7 +739,7 @@
 
       <para>Terminates when an amount of steps has been reached:</para>
 
-      <programlisting role="XML">    &lt;termination&gt;
+      <programlisting language="xml">    &lt;termination&gt;
         &lt;maximumStepCount&gt;100&lt;/maximumStepCount&gt;
     &lt;/termination&gt;</programlisting>
     </section>
@@ -750,14 +750,14 @@
       <para>Terminates when a certain score has been reached. You can use this Termination if you know the perfect
       score, for example for 4 queens:</para>
 
-      <programlisting role="XML">    &lt;termination&gt;
+      <programlisting language="xml">    &lt;termination&gt;
         &lt;scoreAttained&gt;0&lt;/scoreAttained&gt;
     &lt;/termination&gt;</programlisting>
 
       <para>You can also use this Termination to terminate once it reaches a feasible solution. For a solver problem
       with hard and soft constraints, it could look like this:</para>
 
-      <programlisting role="XML">    &lt;termination&gt;
+      <programlisting language="xml">    &lt;termination&gt;
         &lt;scoreAttained&gt;0hard/-5000soft&lt;/scoreAttained&gt;
     &lt;/termination&gt;</programlisting>
     </section>
@@ -767,7 +767,7 @@
 
       <para>Terminates when the best score hasn't improved in a number of steps:</para>
 
-      <programlisting role="XML">    &lt;termination&gt;
+      <programlisting language="xml">    &lt;termination&gt;
         &lt;maximumUnimprovedStepCount&gt;100&lt;/maximumUnimprovedStepCount&gt;
     &lt;/termination&gt;</programlisting>
 
@@ -782,7 +782,7 @@
       <para>Terminations can be combined, for example: terminate after 100 steps or if a score of 0 has been
       reached:</para>
 
-      <programlisting role="XML">    &lt;termination&gt;
+      <programlisting language="xml">    &lt;termination&gt;
         &lt;terminationCompositionStyle&gt;OR&lt;/terminationCompositionStyle&gt;
         &lt;maximumStepCount&gt;100&lt;/maximumStepCount&gt;
         &lt;scoreAttained&gt;0&lt;/scoreAttained&gt;
@@ -791,7 +791,7 @@
       <para>Alternatively you can use AND, for example: terminate after reaching a feasible score of at least -100 and
       no improvements in 5 steps:</para>
 
-      <programlisting role="XML">    &lt;termination&gt;
+      <programlisting language="xml">    &lt;termination&gt;
         &lt;terminationCompositionStyle&gt;AND&lt;/terminationCompositionStyle&gt;
         &lt;maximumUnimprovedStepCount&gt;5&lt;/maximumUnimprovedStepCount&gt;
         &lt;scoreAttained&gt;-100&lt;/scoreAttained&gt;
@@ -808,7 +808,7 @@
       a server restart. That cannot be configured by a <literal>Termination</literal> as it's impossible to predict when
       and if it will occur. Therefor the <literal>Solver</literal> interface has these 2 thread-safe methods:</para>
 
-      <programlisting role="JAVA">public interface Solver {
+      <programlisting language="java">public interface Solver {
 
     // ...
 
@@ -834,7 +834,7 @@
     (see <literal>AllMovesOfOneExamSelector</literal>), extend the <literal>SelectorConfig</literal> class (see
     <literal>AllMovesOfOneExamSelectorConfig</literal>) and configure it in the configuration XML:</para>
 
-    <programlisting role="XML">    &lt;selector class="org.drools.planner.examples.examination.solver.selector.AllMovesOfOneExamSelectorConfig"/&gt;</programlisting>
+    <programlisting language="xml">    &lt;selector class="org.drools.planner.examples.examination.solver.selector.AllMovesOfOneExamSelectorConfig"/&gt;</programlisting>
 
     <para>If you build a better implementation that's not domain specific, consider adding it as a patch in our issue
     tracker and we'll take it along in future refactors and optimize it.</para>

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-planner/src/main/docbook/en-US/Chapter-Planner_configuration/Chapter-Planner_configuration.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-planner/src/main/docbook/en-US/Chapter-Planner_configuration/Chapter-Planner_configuration.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-planner/src/main/docbook/en-US/Chapter-Planner_configuration/Chapter-Planner_configuration.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -220,7 +220,7 @@
 
     <para>Every build-in solver implemented in Drools Planner implements the <literal>Solver</literal> interface:</para>
 
-    <programlisting role="JAVA">public interface Solver {
+    <programlisting language="java">public interface Solver {
 
     void setStartingSolution(Solution solution);
 
@@ -244,13 +244,13 @@
     <para>You can build a <literal>Solver</literal> instance with the <literal>XmlSolverConfigurer</literal>. Configure
     it with a solver configuration XML file:</para>
 
-    <programlisting role="JAVA">    XmlSolverConfigurer configurer = new XmlSolverConfigurer();
+    <programlisting language="java">    XmlSolverConfigurer configurer = new XmlSolverConfigurer();
     configurer.configure("/org/drools/planner/examples/nqueens/solver/nqueensSolverConfig.xml");
     Solver solver = configurer.buildSolver();</programlisting>
 
     <para>A basic solver configuration file looks something like this:</para>
 
-    <programlisting role="XML">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
+    <programlisting language="xml">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
 &lt;localSearchSolver&gt;
     &lt;scoreDrl&gt;/org/drools/planner/examples/nqueens/solver/nQueensScoreRules.drl&lt;/scoreDrl&gt;
     &lt;scoreDefinition&gt;
@@ -290,7 +290,7 @@
 
       <para>You can set the environment mode in the solver configuration XML file:</para>
 
-      <programlisting role="XML">&lt;localSearchSolver&gt;
+      <programlisting language="xml">&lt;localSearchSolver&gt;
     &lt;environmentMode&gt;DEBUG&lt;/environmentMode&gt;
     ...
 &lt;/localSearchSolver&gt;</programlisting>
@@ -348,7 +348,7 @@
 
     <para>You need to implement the <literal>Solution</literal> interface:</para>
 
-    <programlisting role="JAVA">public interface Solution {
+    <programlisting language="java">public interface Solution {
 
     Score getScore();
     void setScore(Score score);
@@ -361,7 +361,7 @@
 
     <para>For example, an NQueens instance just holds a list of all its queens:</para>
 
-    <programlisting role="JAVA">public class NQueens implements Solution {
+    <programlisting language="java">public class NQueens implements Solution {
 
     private List&lt;Queen&gt; queenList;
 
@@ -377,7 +377,7 @@
       is usually typed to the specific <literal>Score</literal> implementation you use. For example, NQueens uses a
       <literal>SimpleScore</literal>:</para>
 
-      <programlisting role="JAVA">    private SimpleScore score;
+      <programlisting language="java">    private SimpleScore score;
 
     public SimpleScore getScore() {
         return score;
@@ -395,7 +395,7 @@
       memory. Those facts can be used by the score rules. For example, <literal>NQueens</literal> just returns all
       <literal>Queen</literal> instances.</para>
 
-      <programlisting role="JAVA">    public Collection&lt;? extends Object&gt; getFacts() {
+      <programlisting language="java">    public Collection&lt;? extends Object&gt; getFacts() {
         return queenList;
     }</programlisting>
     </section>
@@ -407,7 +407,7 @@
       encounter a new best solution. The <literal>NQueens</literal> implementation just clones all
       <literal>Queen</literal> instances:</para>
 
-      <programlisting role="JAVA">    public NQueens cloneSolution() {
+      <programlisting language="java">    public NQueens cloneSolution() {
         NQueens clone = new NQueens();
         List&lt;Queen&gt; clonedQueenList = new ArrayList&lt;Queen&gt;(queenList.size());
         for (Queen queen : queenList) {
@@ -423,7 +423,7 @@
       example the lectures are cloned, but teachers, courses, timeslots, periods, rooms, ... are not cloned because only
       a lecture's appointed period or room changes during solving:</para>
 
-      <programlisting role="JAVA">    /**
+      <programlisting language="java">    /**
      * Clone will only deep copy the {@link #lectureList}.
      */
     public CurriculumCourseSchedule cloneSolution() {
@@ -454,7 +454,7 @@
 
     <para>First, you will need to make a starting solution and set that on the solver:</para>
 
-    <programlisting role="JAVA">solver.setStartingSolution(startingSolution);</programlisting>
+    <programlisting language="java">solver.setStartingSolution(startingSolution);</programlisting>
 
     <section>
       <title>A simple filler algorithm</title>
@@ -474,7 +474,7 @@
 
       <para>Here's how we generate it:</para>
 
-      <programlisting role="JAVA">    private NQueens createNQueens(int n) {
+      <programlisting language="java">    private NQueens createNQueens(int n) {
         NQueens nQueens = new NQueens();
         nQueens.setId(0L);
         List&lt;Queen&gt; queenList = new ArrayList&lt;Queen&gt;(n);
@@ -525,7 +525,7 @@
       initializer to give the real solver a serious head start. You can do this by implementing the
       <literal>StartingSolutionInitializer</literal> interface:</para>
 
-      <programlisting role="JAVA">public interface StartingSolutionInitializer extends SolverAware {
+      <programlisting language="java">public interface StartingSolutionInitializer extends SolverAware {
 
     boolean isSolutionInitialized(Solution solution);
 
@@ -541,7 +541,7 @@
       <para>Here's an example on how you add the <literal>StartingSolutionInitializer</literal> to the
       configuration:</para>
 
-      <programlisting role="XML">&lt;localSearchSolver&gt;
+      <programlisting language="xml">&lt;localSearchSolver&gt;
     ...
     &lt;startingSolutionInitializerClass&gt;org.drools.planner.examples.examination.solver.solution.initializer.ExaminationStartingSolutionInitializer&lt;/startingSolutionInitializerClass&gt;
     ...
@@ -554,7 +554,7 @@
 
     <para>Solving a problem is quite easy once you have a solver and the starting solution:</para>
 
-    <programlisting role="JAVA">    solver.setStartingSolution(startingSolution);
+    <programlisting language="java">    solver.setStartingSolution(startingSolution);
     solver.solve();
     Solution bestSolution = solver.getBestSolution();</programlisting>
 

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-planner/src/main/docbook/en-US/Chapter-Planner_introduction/Chapter-Planner_introduction.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-planner/src/main/docbook/en-US/Chapter-Planner_introduction/Chapter-Planner_introduction.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-planner/src/main/docbook/en-US/Chapter-Planner_introduction/Chapter-Planner_introduction.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -128,7 +128,7 @@
       maven repository</link>. If you use maven 2 or 3, just add a dependency to <literal>drools-planner-core</literal>
       in your project's <filename>pom.xml</filename>:</para>
 
-      <programlisting role="XML">    &lt;dependency&gt;
+      <programlisting language="xml">    &lt;dependency&gt;
         &lt;groupId&gt;org.drools.planner&lt;/groupId&gt;
         &lt;artifactId&gt;drools-planner-core&lt;/artifactId&gt;
         &lt;version&gt;5.x&lt;/version&gt;
@@ -137,7 +137,7 @@
       <para>You might also need to add the jboss repository in your repository manager (nexus, archiva, ...) or your
       <filename>~/settings.xml</filename>:</para>
 
-      <programlisting role="XML">    &lt;repositories&gt;
+      <programlisting language="xml">    &lt;repositories&gt;
         &lt;repository&gt;
             &lt;id&gt;repository.jboss.org&lt;/id&gt;
             &lt;url&gt;http://repository.jboss.org/maven2&lt;/url&gt;

Modified: labs/jbossrules/trunk/drools-docs/drools-docs-planner/src/main/docbook/en-US/Chapter-Score_calculation/Chapter-Score_calculation.xml
===================================================================
--- labs/jbossrules/trunk/drools-docs/drools-docs-planner/src/main/docbook/en-US/Chapter-Score_calculation/Chapter-Score_calculation.xml	2010-08-02 09:22:01 UTC (rev 34450)
+++ labs/jbossrules/trunk/drools-docs/drools-docs-planner/src/main/docbook/en-US/Chapter-Score_calculation/Chapter-Score_calculation.xml	2010-08-02 09:31:09 UTC (rev 34451)
@@ -44,7 +44,7 @@
 
     <para>You need to add your score rules drl files in the solver configuration, for example:</para>
 
-    <programlisting role="XML">    &lt;scoreDrl&gt;/org/drools/planner/examples/nqueens/solver/nQueensScoreRules.drl&lt;/scoreDrl&gt;</programlisting>
+    <programlisting language="xml">    &lt;scoreDrl&gt;/org/drools/planner/examples/nqueens/solver/nQueensScoreRules.drl&lt;/scoreDrl&gt;</programlisting>
 
     <para>You can add multiple <literal>&lt;scoreDrl&gt;</literal> entries if needed.</para>
 
@@ -96,7 +96,7 @@
 
     <para>A <literal>ScoreDefinition</literal> instance is configured in the solver configuration:</para>
 
-    <programlisting role="XML">    &lt;scoreDefinition&gt;
+    <programlisting language="xml">    &lt;scoreDefinition&gt;
         &lt;scoreDefinitionType&gt;SIMPLE&lt;/scoreDefinitionType&gt;
     &lt;/scoreDefinition&gt;</programlisting>
 



More information about the jboss-svn-commits mailing list