Author: sshafroi
Date: 2008-06-04 14:05:08 +0200 (Wed, 04 Jun 2008)
New Revision: 6665

Added:
   trunk/views.xsd
Modified:
   trunk/generic.sesam/sesam.com/war/pom.xml
   trunk/generic.sesam/sesam.com/war/src/main/conf/views.xml
   trunk/generic.sesam/war/src/main/conf/views.xml
Log:
Add generic xsd file for views.


Modified: trunk/generic.sesam/sesam.com/war/pom.xml
===================================================================
--- trunk/generic.sesam/sesam.com/war/pom.xml   2008-06-04 10:55:18 UTC (rev 
6664)
+++ trunk/generic.sesam/sesam.com/war/pom.xml   2008-06-04 12:05:08 UTC (rev 
6665)
@@ -87,6 +87,7 @@
                                     <dir>.</dir>
                                     <includes>
                                         <include>**/modes.xml</include>
+                                        <!-- <include>**/views.xml</include> 
-->
                                     </includes>
                                     <excludes>
                                         <exclude>**/target/**</exclude>

Modified: trunk/generic.sesam/sesam.com/war/src/main/conf/views.xml
===================================================================
--- trunk/generic.sesam/sesam.com/war/src/main/conf/views.xml   2008-06-04 
10:55:18 UTC (rev 6664)
+++ trunk/generic.sesam/sesam.com/war/src/main/conf/views.xml   2008-06-04 
12:05:08 UTC (rev 6665)
@@ -1,5 +1,4 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE views SYSTEM "http://sesam.no/dtds/views.dtd";>
 <!-- Copyright (2008) Schibsted Søk AS
  *   This file is part of SESAT.
  *
@@ -20,9 +19,9 @@
     Created on : 4 April 2006, 16:25
     Author     : mick
     Description:
-        Purpose of the document follows.
--->
-<views>
+        Purpose of the document follows. -->
+
+<views xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:noNamespaceSchemaLocation="../../../../../../views.xsd">
     <!-- Override default to show its css -->
     <tab id="default" display-css="true" inherit="default"/>
     <!-- Our base sesam.com view -->
@@ -50,3 +49,4 @@
         </layout>
     </tab>
 </views>
+

Modified: trunk/generic.sesam/war/src/main/conf/views.xml
===================================================================
--- trunk/generic.sesam/war/src/main/conf/views.xml     2008-06-04 10:55:18 UTC 
(rev 6664)
+++ trunk/generic.sesam/war/src/main/conf/views.xml     2008-06-04 12:05:08 UTC 
(rev 6665)
@@ -1,5 +1,4 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE rules SYSTEM "http://sesam.no/dtds/views.dtd";>
 <!-- Copyright (2006) Schibsted Søk AS
     Document   : views.xml
     Created on : 4 April 2006, 16:25
@@ -8,7 +7,7 @@
         Purpose of the document follows.
 -->
 
-<views>
+<views xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:noNamespaceSchemaLocation="../../../../../views.xsd">
     <!-- DEFAULTS -->
 
     <!-- "absolute-ordering" means that the navigator sources should be sorted 
according to the 

Added: trunk/views.xsd
===================================================================
--- trunk/views.xsd                             (rev 0)
+++ trunk/views.xsd     2008-06-04 12:05:08 UTC (rev 6665)
@@ -0,0 +1,155 @@
+<?xml version='1.0'?>
+<xsd:schema xmlns:xsd='http://www.w3.org/2001/XMLSchema' id='generic.sesam'>
+    <xsd:element name='views' type='views'/>
+    <xsd:complexType name='views'>
+        <xsd:choice  minOccurs='0' maxOccurs='unbounded'>
+            <xsd:element name='tab' type='tab'/>
+        </xsd:choice>
+        <xsd:attribute name='template-prefix'/>
+    </xsd:complexType>
+    <xsd:complexType name='tab'>
+        <xsd:choice  minOccurs='0' maxOccurs='unbounded'>
+            <xsd:element name='layout' type='layout'/>
+                       <xsd:element name='enrichment' type='enrichment'/>
+                       <xsd:element name='navigation' type='navigation'/>
+                       <xsd:element name='enrichment-placement' 
type='enrichment-placement'/>
+               <xsd:any minOccurs="0" processContents='lax'/>
+        </xsd:choice>
+        <xsd:attribute name='id'/>
+        <xsd:attribute name='key'/>
+        <xsd:attribute name='mode'/>
+        <xsd:attribute name='inherit'/>
+               <xsd:attribute name='rss-result-name'/>
+               <xsd:attribute name='page-size'/>
+               <xsd:attribute name='display-css'/>
+               <xsd:attribute name='ad-on-top'/>
+               <xsd:attribute name='css'/>
+               <xsd:attribute name='ad-limit'/>
+               <xsd:attribute name='javascript'/>
+               <xsd:attribute name='execute-on-blank'/>
+               <xsd:attribute name='parent-key'/>
+    </xsd:complexType>
+       <xsd:complexType name='layout'>
+        <xsd:choice  minOccurs='0' maxOccurs='unbounded'>
+            <xsd:element name='include' type='include'/>
+                       <xsd:element name='property' type='property'/>
+        </xsd:choice>
+        <xsd:attribute name='main'/>
+        <xsd:attribute name='origin'/>
+        <xsd:attribute name='front'/>
+    </xsd:complexType>
+       <xsd:complexType name='include'>
+        <xsd:attribute name='key'/>
+        <xsd:attribute name='template'/>
+    </xsd:complexType>
+       <xsd:complexType name='enrichment'>
+        <xsd:attribute name='rule'/>
+        <xsd:attribute name='threshold'/>
+               <xsd:attribute name='weight'/>
+               <xsd:attribute name='command'/>
+    </xsd:complexType>
+          <xsd:complexType name='enrichment-placement'>
+        <xsd:attribute name='id'/>
+        <xsd:attribute name='max'/>
+        <xsd:attribute name='threshold'/>
+    </xsd:complexType>
+       <xsd:complexType name='navigation'>
+        <xsd:choice  minOccurs='0' maxOccurs='unbounded'>
+            <xsd:element name='navigation' type='navigation'/>
+                       <xsd:element name='result-paging' type='result-paging'/>
+                       <xsd:element name='nav' type='nav'/>
+                       <xsd:element name='tree' type='tree'/>
+                       <xsd:element name='reset' type='reset'/>
+                       <xsd:element name='fast' type='fast'/>
+        </xsd:choice>
+        <xsd:attribute name='id'/>
+               <xsd:attribute name='command-name'/>
+               <xsd:attribute name='url-generator'/>
+               <xsd:attribute name='prefix'/>
+               <xsd:attribute name='tab'/>
+               <xsd:attribute name='out'/>
+               <xsd:attribute name='exclude-query'/>
+               <xsd:attribute name='statistical-name'/>
+    </xsd:complexType>
+       <xsd:complexType name='result-paging'>
+        <xsd:attribute name='id'/>
+        <xsd:attribute name='command-name'/>
+        <xsd:attribute name='page-size'/>
+        <xsd:attribute name='number-of-pages'/>
+               <xsd:attribute name='hitcount-source'/>
+    </xsd:complexType>
+       <xsd:complexType name='nav'>
+               <xsd:choice  minOccurs='0' maxOccurs='unbounded'>
+            <xsd:element name='options' type='options'/>
+                       <xsd:any minOccurs="0" processContents='lax'/>
+        </xsd:choice>
+        <xsd:attribute name='id'/>
+               <xsd:attribute name='field'/>
+               <xsd:attribute name='command-name'/>
+    </xsd:complexType>
+       <xsd:complexType name='reset'>
+        <xsd:attribute name='id'/>
+    </xsd:complexType>
+       <xsd:complexType name='tree'>
+        <xsd:choice  minOccurs='0' maxOccurs='unbounded'>
+            <xsd:element name='tree' type='tree'/>
+        </xsd:choice>
+        <xsd:attribute name='id'/>
+        <xsd:attribute name='hide-parameter'/>
+        <xsd:attribute name='name'/>
+        <xsd:attribute name='parameters-to-keep'/>
+               <xsd:attribute name='field'/>
+    </xsd:complexType>
+       <xsd:complexType name='options'>
+        <xsd:choice  minOccurs='0' maxOccurs='unbounded'>
+            <xsd:element name='config' type='config'/>
+        </xsd:choice>
+    </xsd:complexType>
+       <xsd:complexType name='config'>
+        <xsd:choice  minOccurs='0' maxOccurs='unbounded'>
+            <xsd:element name='add' type='add'/>
+                       <xsd:element name='keep' type='keep'/>
+        </xsd:choice>
+    </xsd:complexType>
+       <xsd:complexType name='add'>
+        <xsd:attribute name='value'/>
+        <xsd:attribute name='display-name'/>
+        <xsd:attribute name='default-select'/>
+        <xsd:attribute name='value-ref'/>
+        <xsd:attribute name='default-select-value-ref'/>
+               <xsd:attribute name='tab'/>
+               <xsd:attribute name='command-name'/>
+               <xsd:attribute name='use-hit-count'/>
+               <xsd:anyAttribute/>
+    </xsd:complexType>
+       <xsd:complexType name='keep'>
+        <xsd:attribute name='value'/>
+        <xsd:attribute name='display-name'/>
+    </xsd:complexType>
+       <xsd:complexType name='fast'>
+        <xsd:choice  minOccurs='0' maxOccurs='unbounded'>
+            <xsd:element name='fast' type='fast'/>
+                       <xsd:element name='options' type='options'/>
+                       <xsd:element name='static-parameter' 
type='static-parameter'/>
+        </xsd:choice>
+               <xsd:attribute name='id'/>
+               <xsd:attribute name='field'/>
+               <xsd:attribute name='tab'/>
+               <xsd:attribute name='out'/>
+               <xsd:attribute name='command-name'/>
+               <xsd:attribute name='maxsize'/>
+               <xsd:attribute name='back-text'/>
+               <xsd:attribute name='prefix'/>
+               <xsd:attribute name='url-generator'/>
+               <xsd:attribute name='auto-navigation'/>
+               <xsd:attribute name='exclude-other-matches'/>
+    </xsd:complexType>
+       <xsd:complexType name='static-parameter'>
+        <xsd:attribute name='value'/>
+        <xsd:attribute name='name'/>
+    </xsd:complexType>
+       <xsd:complexType name='property'>
+        <xsd:attribute name='key'/>
+        <xsd:attribute name='value'/>
+    </xsd:complexType>
+</xsd:schema>
\ No newline at end of file

_______________________________________________
Kernel-commits mailing list
[email protected]
http://sesat.no/mailman/listinfo/kernel-commits

Reply via email to