Author: ruwan
Date: Mon Nov 1 07:31:49 2010
New Revision: 1029571
URL: http://svn.apache.org/viewvc?rev=1029571&view=rev
Log:
Adding the evaluators (only and for the time being) and adding evaluators to
the rewrite mediator
Added:
synapse/branches/2.0/repository/schema/evaluators/
synapse/branches/2.0/repository/schema/evaluators/evaluators.xsd
Modified:
synapse/branches/2.0/repository/schema/mediators/transformation/rewrite.xsd
Added: synapse/branches/2.0/repository/schema/evaluators/evaluators.xsd
URL:
http://svn.apache.org/viewvc/synapse/branches/2.0/repository/schema/evaluators/evaluators.xsd?rev=1029571&view=auto
==============================================================================
--- synapse/branches/2.0/repository/schema/evaluators/evaluators.xsd (added)
+++ synapse/branches/2.0/repository/schema/evaluators/evaluators.xsd Mon Nov 1
07:31:49 2010
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
+ targetNamespace="http://synapse.apache.org/ns/2010/04/configuration"
+ xmlns="http://synapse.apache.org/ns/2010/04/configuration">
+
+ <xs:group name="evaluatorList">
+ <xs:annotation>
+ <xs:documentation source="description">
+ This group denotes all the evaluator elements that can come
inside a condition
+ </xs:documentation>
+ </xs:annotation>
+ <xs:choice>
+ <xs:element ref="and"/>
+ </xs:choice>
+ </xs:group>
+
+ <xs:element name="and">
+ <xs:complexType>
+ <xs:group ref="evaluatorList"/>
+ </xs:complexType>
+ </xs:element>
+
+</xs:schema>
\ No newline at end of file
Modified:
synapse/branches/2.0/repository/schema/mediators/transformation/rewrite.xsd
URL:
http://svn.apache.org/viewvc/synapse/branches/2.0/repository/schema/mediators/transformation/rewrite.xsd?rev=1029571&r1=1029570&r2=1029571&view=diff
==============================================================================
--- synapse/branches/2.0/repository/schema/mediators/transformation/rewrite.xsd
(original)
+++ synapse/branches/2.0/repository/schema/mediators/transformation/rewrite.xsd
Mon Nov 1 07:31:49 2010
@@ -22,6 +22,8 @@
targetNamespace="http://synapse.apache.org/ns/2010/04/configuration"
xmlns="http://synapse.apache.org/ns/2010/04/configuration">
+ <xs:include schemaLocation="../../evaluators/evaluators.xsd"/>
+
<xs:element name="rewrite">
<xs:annotation>
<xs:documentation source="description">
@@ -35,7 +37,7 @@
<xs:choice maxOccurs="unbounded">
<xs:element name="condition" minOccurs="0"
maxOccurs="1">
<xs:complexType>
- <!-- TODO: evaluator definition -->
+ <xs:group ref="evaluatorList"/>
</xs:complexType>
</xs:element>
<xs:element name="action" minOccurs="1"
maxOccurs="1">