[Corpusreader-svn] SF.net SVN: corpusreader:[226] trunk/corpusreader/src/main/resources/schema /fil
Status: Alpha
Brought to you by:
sylvainloiseau
|
From: <syl...@us...> - 2009-09-24 13:31:36
|
Revision: 226
http://corpusreader.svn.sourceforge.net/corpusreader/?rev=226&view=rev
Author: sylvainloiseau
Date: 2009-09-24 13:31:08 +0000 (Thu, 24 Sep 2009)
Log Message:
-----------
New filters
Modified Paths:
--------------
trunk/corpusreader/src/main/resources/schema/filters/TextFormat.rnc
Added Paths:
-----------
trunk/corpusreader/src/main/resources/schema/filters/ExtractPhenomena.rnc
Added: trunk/corpusreader/src/main/resources/schema/filters/ExtractPhenomena.rnc
===================================================================
--- trunk/corpusreader/src/main/resources/schema/filters/ExtractPhenomena.rnc (rev 0)
+++ trunk/corpusreader/src/main/resources/schema/filters/ExtractPhenomena.rnc 2009-09-24 13:31:08 UTC (rev 226)
@@ -0,0 +1,40 @@
+datatypes xs = "http://www.w3.org/2001/XMLSchema-datatypes"
+
+start=ExtractPhenomena
+
+ExtractPhenomena = element args {
+
+ Occurrences
+ ,
+ element gram {
+ attribute n { xs:int },
+ empty
+ }
+}
+
+Occurrences = element occurrences {
+ (
+ element elementName { empty }
+ |
+ element AttributeName { empty }
+ |
+ element elementStringValue {
+ attribute localName { string },
+ empty
+ }
+ |
+ element use {
+ attribute elxpath { string },
+ element match {
+ attribute elxpath { string }
+ }?
+ }
+ |
+ element evaluate {
+ attribute xpath { string },
+ element root {
+ attribute elxpath { string }
+ }?
+ }
+ )+
+}
Modified: trunk/corpusreader/src/main/resources/schema/filters/TextFormat.rnc
===================================================================
--- trunk/corpusreader/src/main/resources/schema/filters/TextFormat.rnc 2009-09-12 18:49:58 UTC (rev 225)
+++ trunk/corpusreader/src/main/resources/schema/filters/TextFormat.rnc 2009-09-24 13:31:08 UTC (rev 226)
@@ -3,12 +3,9 @@
start=TextFormat
TextFormat = element args {
- element token {
- attribute localName {string}
+ element phenomena {
+ attribute filter {string}
}?,
- element paragraph {
- attribute localName {string}
- }?,
element textFile {
attribute url {string}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|