jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ra...@apache.org
Subject svn commit: r231289 - in /jakarta/taglibs/proper/rdc/trunk: examples/web/ src/.grammar/ src/META-INF/tags/rdc/ src/META-INF/tags/rdc/config/ src/org/apache/taglibs/rdc/ xml/
Date Wed, 10 Aug 2005 18:08:53 GMT
Author: rahul
Date: Wed Aug 10 11:08:45 2005
New Revision: 231289

URL: http://svn.apache.org/viewcvs?rev=231289&view=rev
Log:
Resolved BZ# 35024 [Submitted by Mitch Warner]
Thanks Mitch!

Added:
    jakarta/taglibs/proper/rdc/trunk/examples/web/color-test.jsp   (with props)
    jakarta/taglibs/proper/rdc/trunk/src/.grammar/color.grxml   (with props)
    jakarta/taglibs/proper/rdc/trunk/src/META-INF/tags/rdc/color.rdc   (with props)
    jakarta/taglibs/proper/rdc/trunk/src/META-INF/tags/rdc/color.tag   (with props)
    jakarta/taglibs/proper/rdc/trunk/src/META-INF/tags/rdc/config/color.xml   (with props)
    jakarta/taglibs/proper/rdc/trunk/src/org/apache/taglibs/rdc/Color.java   (with props)
Modified:
    jakarta/taglibs/proper/rdc/trunk/xml/rdc.xml

Added: jakarta/taglibs/proper/rdc/trunk/examples/web/color-test.jsp
URL: http://svn.apache.org/viewcvs/jakarta/taglibs/proper/rdc/trunk/examples/web/color-test.jsp?rev=231289&view=auto
==============================================================================
--- jakarta/taglibs/proper/rdc/trunk/examples/web/color-test.jsp (added)
+++ jakarta/taglibs/proper/rdc/trunk/examples/web/color-test.jsp Wed Aug 10 11:08:45 2005
@@ -0,0 +1,28 @@
+<!--Example:Start-->
+<%--
+  Copyright 2004 The Apache Software Foundation.
+  Licensed 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.
+--%> 
+<!--
+<%@ page language="java" contentType="application/voicexml+xml" %>
+<%@ taglib prefix="rdc" uri="http://jakarta.apache.org/taglibs/rdc-1.0"%>
+-->
+<vxml version="2.0" xml:lang="en-US" xmlns="http://www.w3.org/2001/vxml">
+    <jsp:useBean id="dialogMap" class="java.util.LinkedHashMap" scope="session" />
+    <rdc:task map="${dialogMap}">
+
+        <rdc:color id="color" confirm="true" minConfidence="0.4F" numNBest="5" />
+
+    </rdc:task>
+</vxml>
+<!--Example:End-->

Propchange: jakarta/taglibs/proper/rdc/trunk/examples/web/color-test.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: jakarta/taglibs/proper/rdc/trunk/examples/web/color-test.jsp
------------------------------------------------------------------------------
    svn:executable = *

Propchange: jakarta/taglibs/proper/rdc/trunk/examples/web/color-test.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: jakarta/taglibs/proper/rdc/trunk/src/.grammar/color.grxml
URL: http://svn.apache.org/viewcvs/jakarta/taglibs/proper/rdc/trunk/src/.grammar/color.grxml?rev=231289&view=auto
==============================================================================
--- jakarta/taglibs/proper/rdc/trunk/src/.grammar/color.grxml (added)
+++ jakarta/taglibs/proper/rdc/trunk/src/.grammar/color.grxml Wed Aug 10 11:08:45 2005
@@ -0,0 +1,794 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE grammar PUBLIC "-//W3C//DTD GRAMMAR 1.0//EN" "http://www.w3.org/TR/speech-grammar/grammar.dtd" >
+<!--
+  Copyright 2004 The Apache Software Foundation.
+  Licensed 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.
+-->
+<grammar version="1.0" xmlns="http://www.w3.org/2001/06/grammar" xml:lang="en-US" tag-format="semantics/1.0" mode="voice" root="color">
+    <rule id="color" scope="public">
+        <item>
+            <one-of>
+                <item>alice blue 
+                    <tag>
+                        <![CDATA[$ = "alice blue"]]>
+                    </tag>
+                </item>
+                <item>antique white 
+                    <tag>
+                        <![CDATA[$ = "antique white"]]>
+                    </tag>
+                </item>
+                <item>aquamarine 
+                    <tag>
+                        <![CDATA[$ = "aquamarine"]]>
+                    </tag>
+                </item>
+                <item>azure 
+                    <tag>
+                        <![CDATA[$ = "azure"]]>
+                    </tag>
+                </item>
+                <item>banana 
+                    <tag>
+                        <![CDATA[$ = "banana"]]>
+                    </tag>
+                </item>
+                <item>beige 
+                    <tag>
+                        <![CDATA[$ = "beige"]]>
+                    </tag>
+                </item>
+                <item>bisque 
+                    <tag>
+                        <![CDATA[$ = "bisque"]]>
+                    </tag>
+                </item>
+                <item>black 
+                    <tag>
+                        <![CDATA[$ = "black"]]>
+                    </tag>
+                </item>
+                <item>blanched almond 
+                    <tag>
+                        <![CDATA[$ = "blanched almond"]]>
+                    </tag>
+                </item>
+                <item>blue 
+                    <tag>
+                        <![CDATA[$ = "blue"]]>
+                    </tag>
+                </item>
+                <item>blue violet 
+                    <tag>
+                        <![CDATA[$ = "blue violet"]]>
+                    </tag>
+                </item>
+                <item>brick 
+                    <tag>
+                        <![CDATA[$ = "brick"]]>
+                    </tag>
+                </item>
+                <item>brown 
+                    <tag>
+                        <![CDATA[$ = "brown"]]>
+                    </tag>
+                </item>
+                <item>burly wood 
+                    <tag>
+                        <![CDATA[$ = "burly wood"]]>
+                    </tag>
+                </item>
+                <item>burnt sienna 
+                    <tag>
+                        <![CDATA[$ = "burnt sienna"]]>
+                    </tag>
+                </item>
+                <item>burnt umber 
+                    <tag>
+                        <![CDATA[$ = "burnt umber"]]>
+                    </tag>
+                </item>
+                <item>cadet blue 
+                    <tag>
+                        <![CDATA[$ = "cadet blue"]]>
+                    </tag>
+                </item>
+                <item>cadmium orange 
+                    <tag>
+                        <![CDATA[$ = "cadmium orange"]]>
+                    </tag>
+                </item>
+                <item>cadmium yellow 
+                    <tag>
+                        <![CDATA[$ = "cadmium yellow"]]>
+                    </tag>
+                </item>
+                <item>carrot 
+                    <tag>
+                        <![CDATA[$ = "carrot"]]>
+                    </tag>
+                </item>
+                <item>chartreuse 
+                    <tag>
+                        <![CDATA[$ = "chartreuse"]]>
+                    </tag>
+                </item>
+                <item>chocolate 
+                    <tag>
+                        <![CDATA[$ = "chocolate"]]>
+                    </tag>
+                </item>
+                <item>cobalt 
+                    <tag>
+                        <![CDATA[$ = "cobalt"]]>
+                    </tag>
+                </item>
+                <item>cobalt green 
+                    <tag>
+                        <![CDATA[$ = "cobalt green"]]>
+                    </tag>
+                </item>
+                <item>cold grey 
+                    <tag>
+                        <![CDATA[$ = "cold grey"]]>
+                    </tag>
+                </item>
+                <item>coral 
+                    <tag>
+                        <![CDATA[$ = "coral"]]>
+                    </tag>
+                </item>
+                <item>corn flower blue 
+                    <tag>
+                        <![CDATA[$ = "corn flower blue"]]>
+                    </tag>
+                </item>
+                <item>corn silk 
+                    <tag>
+                        <![CDATA[$ = "corn silk"]]>
+                    </tag>
+                </item>
+                <item>crimson 
+                    <tag>
+                        <![CDATA[$ = "crimson"]]>
+                    </tag>
+                </item>
+                <item>cyan 
+                    <tag>
+                        <![CDATA[$ = "cyan"]]>
+                    </tag>
+                </item>
+                <item>dark golden rod 
+                    <tag>
+                        <![CDATA[$ = "dark golden rod"]]>
+                    </tag>
+                </item>
+                <item>dark gray 
+                    <tag>
+                        <![CDATA[$ = "dark gray"]]>
+                    </tag>
+                </item>
+                <item>dark green 
+                    <tag>
+                        <![CDATA[$ = "dark green"]]>
+                    </tag>
+                </item>
+                <item>dark khaki 
+                    <tag>
+                        <![CDATA[$ = "dark khaki"]]>
+                    </tag>
+                </item>
+                <item>dark olive green 
+                    <tag>
+                        <![CDATA[$ = "dark olive green"]]>
+                    </tag>
+                </item>
+                <item>dark orange 
+                    <tag>
+                        <![CDATA[$ = "dark orange"]]>
+                    </tag>
+                </item>
+                <item>dark orchid 
+                    <tag>
+                        <![CDATA[$ = "dark orchid"]]>
+                    </tag>
+                </item>
+                <item>dark salmon 
+                    <tag>
+                        <![CDATA[$ = "dark salmon"]]>
+                    </tag>
+                </item>
+                <item>dark sea green 
+                    <tag>
+                        <![CDATA[$ = "dark sea green"]]>
+                    </tag>
+                </item>
+                <item>dark slate blue 
+                    <tag>
+                        <![CDATA[$ = "dark slate blue"]]>
+                    </tag>
+                </item>
+                <item>dark slate gray 
+                    <tag>
+                        <![CDATA[$ = "dark slate gray"]]>
+                    </tag>
+                </item>
+                <item>dark turquoise 
+                    <tag>
+                        <![CDATA[$ = "dark turquoise"]]>
+                    </tag>
+                </item>
+                <item>dark violet 
+                    <tag>
+                        <![CDATA[$ = "dark violet"]]>
+                    </tag>
+                </item>
+                <item>deep pink 
+                    <tag>
+                        <![CDATA[$ = "deep pink"]]>
+                    </tag>
+                </item>
+                <item>deep sky blue 
+                    <tag>
+                        <![CDATA[$ = "deep sky blue"]]>
+                    </tag>
+                </item>
+                <item>dim gray 
+                    <tag>
+                        <![CDATA[$ = "dim gray"]]>
+                    </tag>
+                </item>
+                <item>dodger blue 
+                    <tag>
+                        <![CDATA[$ = "dodger blue"]]>
+                    </tag>
+                </item>
+                <item>eggshell 
+                    <tag>
+                        <![CDATA[$ = "eggshell"]]>
+                    </tag>
+                </item>
+                <item>emerald green 
+                    <tag>
+                        <![CDATA[$ = "emerald green"]]>
+                    </tag>
+                </item>
+                <item>fire brick 
+                    <tag>
+                        <![CDATA[$ = "fire brick"]]>
+                    </tag>
+                </item>
+                <item>flesh 
+                    <tag>
+                        <![CDATA[$ = "flesh"]]>
+                    </tag>
+                </item>
+                <item>floral white 
+                    <tag>
+                        <![CDATA[$ = "floral white"]]>
+                    </tag>
+                </item>
+                <item>forest green 
+                    <tag>
+                        <![CDATA[$ = "forest green"]]>
+                    </tag>
+                </item>
+                <item>gainsboro 
+                    <tag>
+                        <![CDATA[$ = "gainsboro"]]>
+                    </tag>
+                </item>
+                <item>ghost white 
+                    <tag>
+                        <![CDATA[$ = "ghost white"]]>
+                    </tag>
+                </item>
+                <item>gold 
+                    <tag>
+                        <![CDATA[$ = "gold"]]>
+                    </tag>
+                </item>
+                <item>golden rod 
+                    <tag>
+                        <![CDATA[$ = "golden rod"]]>
+                    </tag>
+                </item>
+                <item>gray 
+                    <tag>
+                        <![CDATA[$ = "gray"]]>
+                    </tag>
+                </item>
+                <item>green 
+                    <tag>
+                        <![CDATA[$ = "green"]]>
+                    </tag>
+                </item>
+                <item>green yellow 
+                    <tag>
+                        <![CDATA[$ = "green yellow"]]>
+                    </tag>
+                </item>
+                <item>honeydew 
+                    <tag>
+                        <![CDATA[$ = "honeydew"]]>
+                    </tag>
+                </item>
+                <item>hot pink 
+                    <tag>
+                        <![CDATA[$ = "hot pink"]]>
+                    </tag>
+                </item>
+                <item>indian 
+                    <tag>
+                        <![CDATA[$ = "indian"]]>
+                    </tag>
+                </item>
+                <item>indian red 
+                    <tag>
+                        <![CDATA[$ = "indian red"]]>
+                    </tag>
+                </item>
+                <item>indigo 
+                    <tag>
+                        <![CDATA[$ = "indigo"]]>
+                    </tag>
+                </item>
+                <item>ivory 
+                    <tag>
+                        <![CDATA[$ = "ivory"]]>
+                    </tag>
+                </item>
+                <item>ivory black 
+                    <tag>
+                        <![CDATA[$ = "ivory black"]]>
+                    </tag>
+                </item>
+                <item>khaki 
+                    <tag>
+                        <![CDATA[$ = "khaki"]]>
+                    </tag>
+                </item>
+                <item>lavender 
+                    <tag>
+                        <![CDATA[$ = "lavender"]]>
+                    </tag>
+                </item>
+                <item>lavender blush 
+                    <tag>
+                        <![CDATA[$ = "lavender blush"]]>
+                    </tag>
+                </item>
+                <item>lawng reen 
+                    <tag>
+                        <![CDATA[$ = "lawng reen"]]>
+                    </tag>
+                </item>
+                <item>lemon chiffon 
+                    <tag>
+                        <![CDATA[$ = "lemon chiffon"]]>
+                    </tag>
+                </item>
+                <item>light blue 
+                    <tag>
+                        <![CDATA[$ = "light blue"]]>
+                    </tag>
+                </item>
+                <item>light coral 
+                    <tag>
+                        <![CDATA[$ = "light coral"]]>
+                    </tag>
+                </item>
+                <item>light cyan 
+                    <tag>
+                        <![CDATA[$ = "light cyan"]]>
+                    </tag>
+                </item>
+                <item>light golden rod 
+                    <tag>
+                        <![CDATA[$ = "light golden rod"]]>
+                    </tag>
+                </item>
+                <item>light golden rod yellow 
+                    <tag>
+                        <![CDATA[$ = "light golden rod yellow"]]>
+                    </tag>
+                </item>
+                <item>light grey 
+                    <tag>
+                        <![CDATA[$ = "light grey"]]>
+                    </tag>
+                </item>
+                <item>light pink 
+                    <tag>
+                        <![CDATA[$ = "light pink"]]>
+                    </tag>
+                </item>
+                <item>light salmon 
+                    <tag>
+                        <![CDATA[$ = "light salmon"]]>
+                    </tag>
+                </item>
+                <item>light sea green 
+                    <tag>
+                        <![CDATA[$ = "light sea green"]]>
+                    </tag>
+                </item>
+                <item>light sky blue 
+                    <tag>
+                        <![CDATA[$ = "light sky blue"]]>
+                    </tag>
+                </item>
+                <item>light slate blue 
+                    <tag>
+                        <![CDATA[$ = "light slate blue"]]>
+                    </tag>
+                </item>
+                <item>light slate gray 
+                    <tag>
+                        <![CDATA[$ = "light slate gray"]]>
+                    </tag>
+                </item>
+                <item>light steel blue 
+                    <tag>
+                        <![CDATA[$ = "light steel blue"]]>
+                    </tag>
+                </item>
+                <item>light yellow 
+                    <tag>
+                        <![CDATA[$ = "light yellow"]]>
+                    </tag>
+                </item>
+                <item>lime green 
+                    <tag>
+                        <![CDATA[$ = "lime green"]]>
+                    </tag>
+                </item>
+                <item>linen 
+                    <tag>
+                        <![CDATA[$ = "linen"]]>
+                    </tag>
+                </item>
+                <item>magenta 
+                    <tag>
+                        <![CDATA[$ = "magenta"]]>
+                    </tag>
+                </item>
+                <item>manganese blue 
+                    <tag>
+                        <![CDATA[$ = "manganese blue"]]>
+                    </tag>
+                </item>
+                <item>maroon 
+                    <tag>
+                        <![CDATA[$ = "maroon"]]>
+                    </tag>
+                </item>
+                <item>medium orchid 
+                    <tag>
+                        <![CDATA[$ = "medium orchid"]]>
+                    </tag>
+                </item>
+                <item>medium purple 
+                    <tag>
+                        <![CDATA[$ = "medium purple"]]>
+                    </tag>
+                </item>
+                <item>medium sea green 
+                    <tag>
+                        <![CDATA[$ = "medium sea green"]]>
+                    </tag>
+                </item>
+                <item>medium slate blue 
+                    <tag>
+                        <![CDATA[$ = "medium slate blue"]]>
+                    </tag>
+                </item>
+                <item>medium spring green 
+                    <tag>
+                        <![CDATA[$ = "medium spring green"]]>
+                    </tag>
+                </item>
+                <item>medium turquoise 
+                    <tag>
+                        <![CDATA[$ = "medium turquoise"]]>
+                    </tag>
+                </item>
+                <item>medium violet red 
+                    <tag>
+                        <![CDATA[$ = "medium violet red"]]>
+                    </tag>
+                </item>
+                <item>melon 
+                    <tag>
+                        <![CDATA[$ = "melon"]]>
+                    </tag>
+                </item>
+                <item>midnight blue 
+                    <tag>
+                        <![CDATA[$ = "midnight blue"]]>
+                    </tag>
+                </item>
+                <item>mint 
+                    <tag>
+                        <![CDATA[$ = "mint"]]>
+                    </tag>
+                </item>
+                <item>mint cream 
+                    <tag>
+                        <![CDATA[$ = "mint cream"]]>
+                    </tag>
+                </item>
+                <item>misty rose 
+                    <tag>
+                        <![CDATA[$ = "misty rose"]]>
+                    </tag>
+                </item>
+                <item>moccasin 
+                    <tag>
+                        <![CDATA[$ = "moccasin"]]>
+                    </tag>
+                </item>
+                <item>navajo white 
+                    <tag>
+                        <![CDATA[$ = "navajo white"]]>
+                    </tag>
+                </item>
+                <item>navy 
+                    <tag>
+                        <![CDATA[$ = "navy"]]>
+                    </tag>
+                </item>
+                <item>old lace 
+                    <tag>
+                        <![CDATA[$ = "old lace"]]>
+                    </tag>
+                </item>
+                <item>olive 
+                    <tag>
+                        <![CDATA[$ = "olive"]]>
+                    </tag>
+                </item>
+                <item>olive drab 
+                    <tag>
+                        <![CDATA[$ = "olive drab"]]>
+                    </tag>
+                </item>
+                <item>orange 
+                    <tag>
+                        <![CDATA[$ = "orange"]]>
+                    </tag>
+                </item>
+                <item>orange red 
+                    <tag>
+                        <![CDATA[$ = "orange red"]]>
+                    </tag>
+                </item>
+                <item>orchid 
+                    <tag>
+                        <![CDATA[$ = "orchid"]]>
+                    </tag>
+                </item>
+                <item>pale golden rod 
+                    <tag>
+                        <![CDATA[$ = "pale golden rod"]]>
+                    </tag>
+                </item>
+                <item>pale green 
+                    <tag>
+                        <![CDATA[$ = "pale green"]]>
+                    </tag>
+                </item>
+                <item>pale turquoise 
+                    <tag>
+                        <![CDATA[$ = "pale turquoise"]]>
+                    </tag>
+                </item>
+                <item>pale violet red 
+                    <tag>
+                        <![CDATA[$ = "pale violet red"]]>
+                    </tag>
+                </item>
+                <item>papaya whip 
+                    <tag>
+                        <![CDATA[$ = "papaya whip"]]>
+                    </tag>
+                </item>
+                <item>peach puff 
+                    <tag>
+                        <![CDATA[$ = "peach puff"]]>
+                    </tag>
+                </item>
+                <item>peacock 
+                    <tag>
+                        <![CDATA[$ = "peacock"]]>
+                    </tag>
+                </item>
+                <item>pink 
+                    <tag>
+                        <![CDATA[$ = "pink"]]>
+                    </tag>
+                </item>
+                <item>plum 
+                    <tag>
+                        <![CDATA[$ = "plum"]]>
+                    </tag>
+                </item>
+                <item>powder blue 
+                    <tag>
+                        <![CDATA[$ = "powder blue"]]>
+                    </tag>
+                </item>
+                <item>purple 
+                    <tag>
+                        <![CDATA[$ = "purple"]]>
+                    </tag>
+                </item>
+                <item>raspberry 
+                    <tag>
+                        <![CDATA[$ = "raspberry"]]>
+                    </tag>
+                </item>
+                <item>raw sienna 
+                    <tag>
+                        <![CDATA[$ = "raw sienna"]]>
+                    </tag>
+                </item>
+                <item>red 
+                    <tag>
+                        <![CDATA[$ = "red"]]>
+                    </tag>
+                </item>
+                <item>rosy brown 
+                    <tag>
+                        <![CDATA[$ = "rosy brown"]]>
+                    </tag>
+                </item>
+                <item>royal blue 
+                    <tag>
+                        <![CDATA[$ = "royal blue"]]>
+                    </tag>
+                </item>
+                <item>salmon 
+                    <tag>
+                        <![CDATA[$ = "salmon"]]>
+                    </tag>
+                </item>
+                <item>sandy brown 
+                    <tag>
+                        <![CDATA[$ = "sandy brown"]]>
+                    </tag>
+                </item>
+                <item>sap green 
+                    <tag>
+                        <![CDATA[$ = "sap green"]]>
+                    </tag>
+                </item>
+                <item>sea green 
+                    <tag>
+                        <![CDATA[$ = "sea green"]]>
+                    </tag>
+                </item>
+                <item>sea shell 
+                    <tag>
+                        <![CDATA[$ = "sea shell"]]>
+                    </tag>
+                </item>
+                <item>sepia 
+                    <tag>
+                        <![CDATA[$ = "sepia"]]>
+                    </tag>
+                </item>
+                <item>sienna 
+                    <tag>
+                        <![CDATA[$ = "sienna"]]>
+                    </tag>
+                </item>
+                <item>silver 
+                    <tag>
+                        <![CDATA[$ = "silver"]]>
+                    </tag>
+                </item>
+                <item>sky blue 
+                    <tag>
+                        <![CDATA[$ = "sky blue"]]>
+                    </tag>
+                </item>
+                <item>slate blue 
+                    <tag>
+                        <![CDATA[$ = "slate blue"]]>
+                    </tag>
+                </item>
+                <item>slate gray 
+                    <tag>
+                        <![CDATA[$ = "slate gray"]]>
+                    </tag>
+                </item>
+                <item>snow 
+                    <tag>
+                        <![CDATA[$ = "snow"]]>
+                    </tag>
+                </item>
+                <item>spring green 
+                    <tag>
+                        <![CDATA[$ = "spring green"]]>
+                    </tag>
+                </item>
+                <item>steel blue 
+                    <tag>
+                        <![CDATA[$ = "steel blue"]]>
+                    </tag>
+                </item>
+                <item>tan 
+                    <tag>
+                        <![CDATA[$ = "tan"]]>
+                    </tag>
+                </item>
+                <item>teal 
+                    <tag>
+                        <![CDATA[$ = "teal"]]>
+                    </tag>
+                </item>
+                <item>thistle 
+                    <tag>
+                        <![CDATA[$ = "thistle"]]>
+                    </tag>
+                </item>
+                <item>tomato 
+                    <tag>
+                        <![CDATA[$ = "tomato"]]>
+                    </tag>
+                </item>
+                <item>turquoise 
+                    <tag>
+                        <![CDATA[$ = "turquoise"]]>
+                    </tag>
+                </item>
+                <item>turquoise blue 
+                    <tag>
+                        <![CDATA[$ = "turquoise blue"]]>
+                    </tag>
+                </item>
+                <item>violet 
+                    <tag>
+                        <![CDATA[$ = "violet"]]>
+                    </tag>
+                </item>
+                <item>violet red 
+                    <tag>
+                        <![CDATA[$ = "violet red"]]>
+                    </tag>
+                </item>
+                <item>warm grey 
+                    <tag>
+                        <![CDATA[$ = "warm grey"]]>
+                    </tag>
+                </item>
+                <item>wheat 
+                    <tag>
+                        <![CDATA[$ = "wheat"]]>
+                    </tag>
+                </item>
+                <item>white 
+                    <tag>
+                        <![CDATA[$ = "white"]]>
+                    </tag>
+                </item>
+                <item>yellow 
+                    <tag>
+                        <![CDATA[$ = "yellow"]]>
+                    </tag>
+                </item>
+            </one-of>
+        </item>
+    </rule>
+</grammar>

Propchange: jakarta/taglibs/proper/rdc/trunk/src/.grammar/color.grxml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: jakarta/taglibs/proper/rdc/trunk/src/.grammar/color.grxml
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: jakarta/taglibs/proper/rdc/trunk/src/META-INF/tags/rdc/color.rdc
URL: http://svn.apache.org/viewcvs/jakarta/taglibs/proper/rdc/trunk/src/META-INF/tags/rdc/color.rdc?rev=231289&view=auto
==============================================================================
--- jakarta/taglibs/proper/rdc/trunk/src/META-INF/tags/rdc/color.rdc (added)
+++ jakarta/taglibs/proper/rdc/trunk/src/META-INF/tags/rdc/color.rdc Wed Aug 10 11:08:45 2005
@@ -0,0 +1,150 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  Copyright 2004 The Apache Software Foundation.
+  Licensed 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.
+-->
+<ui-config>
+
+  <component name="color" summary="Collect a color value"
+    path="META-INF/tags/rdc/color.tag">
+
+    <input-params>
+      <param name="id" value="some-name" required="true" rtexprvalue="false" visible="1" description="Component ID">
+        This specifies the id of this color component.
+      </param>
+      <param name="submit" value="self-URI" required="false" rtexprvalue="true" visible="0" description="Location where resuls are submitted">
+        This specifies the URL to which the component should submit its results.
+        The default is to submit to the originating page that instantiated the component.
+      </param>
+      <param name="config" value="xxx-cfg.xml" required="false" rtexprvalue="true" visible="1" description="Configuration file for the component">
+        This specifies the location of the configuration file used to customize interaction behavior of this instance. 
+        Customizations include prompts, properties etc (see configuration section for details).
+        By default, the component uses a pre-packaged configuration.
+      </param>
+      <param name="initial" value="red" required="false" rtexprvalue="true" visible="2" description="Default color">
+		This specifies the initial default color.
+		If not specified, the user will not be able to select a default value.
+      </param>
+      <param name="numNBest" value="[0-9]*" required="false" rtexprvalue="true" visible="2" description="Maximum number of N-best values requested">
+        This specifies the maximum number of N-Best color values requested.
+        Default is 1 value.
+      </param>
+      <param name="minConfidence" value="[0-9][0-9].[0-9]*F" required="false" rtexprvalue="true" visible="2" description="Minimum confidence value of the recognised output">
+        This specifies the minimum confidence score of a utterance for it to be considered in the NBest list.
+        Default is 40.0F.
+      </param>
+      <param name="maxNoInput" value="[0-9]*" required="false" rtexprvalue="true" visible="2" description="Graceful exit on noinput">
+        Maximum number of client side &lt;noinput&gt; events before this RDC gracefully exits with MAX_NOINPUT exitStatus.
+        Never exit by default.
+      </param>
+      <param name="maxNoMatch" value="[0-9]*" required="false" rtexprvalue="true" visible="2" description="Graceful exit on nomatch">
+        Maximum number of client side &lt;nomatch&gt; events before this RDC gracefully exits with MAX_NOMATCH exitStatus.
+        Never exit by default.
+      </param>
+      <param name="locale" value="[language](-[country])?" required="false" rtexprvalue="true" visible="2" description="RDC Locale">
+        The Locale to which the grammar(s) and default configuration chosen for this component will belong to.
+        Default is en-US.
+      </param>
+      <param name="echo" value="true/false" required="false" rtexprvalue="true" visible="1" description="Playback options">
+        Specifies if the component produces a concluding utterance that echoes the value that was collected.
+        Value is false by default.
+      </param>
+      <param name="confirm" value="true/false" required="false" rtexprvalue="true" visible="1" description="Confirmation option">
+        If confirm is true, the component asks the user to confirm the specified color with an appropriate yes/no dialog.
+        Value is false by default.
+      </param>
+    </input-params>
+
+    <output-params>
+      <param name="id of this component" description="Variable that holds the color specified by the user">
+        Variable that holds the color value specified by the user.
+        Thus, if the component is invoked with an id value of "start", then variable $start holds the value collected by the component.
+      </param>
+    </output-params>
+  </component>
+
+  <config>
+    <input>
+      <property-list>
+        <property name="incompletetimeout"  value="1s"/>
+        <property name="completetimeout"  value="1s"/>
+      </property-list>
+      <prompt-list>
+        <prompt>What is your favourite color</prompt>
+      </prompt-list>
+      <help-list>
+        <help>
+          <prompt> Say your favourite color, for example burgundy</prompt>
+        </help>
+      </help-list>
+      <noinput-list>
+        <noinput count="1">
+          <prompt>I did not hear you, say it again.</prompt>
+        </noinput>
+        <noinput count="2">
+          <prompt>Could you please repeat the input?</prompt>
+        </noinput>
+        <noinput count="3">
+          <prompt>I appear to be having trouble hearing you. 
+            Waiting for you to tell me your favorite color. </prompt>
+        </noinput>
+      </noinput-list>
+      <nomatch-list>
+        <nomatch>
+          <prompt>I am sorry. I didn't understand you. Please repeat the 
+            input.</prompt>
+        </nomatch>
+      </nomatch-list>
+    </input>
+    <confirm>
+      <property-list>
+        <property name="incompletetimeout" value="1s"/>
+        <property name="completetimeout" value="1s"/>
+      </property-list>
+      <prompt-list>
+          <prompt>I think you said #{model.utterance}. Is that
+        right? </prompt>
+      </prompt-list>
+      <help-list>
+        <help>
+          <prompt>To accept the value, say yes. To change your mind, say no.</prompt>
+        </help>
+      </help-list>
+      <noinput-list>
+        <noinput>
+          <prompt>Is #{model.utterance} an acceptable value? Please
+            say yes or no.</prompt>
+        </noinput>
+      </noinput-list>
+      <nomatch-list>
+        <nomatch>
+          <prompt>If #{model.utterance} is acceptable, say yes. Otherwise,
+            say no.</prompt>
+        </nomatch>
+      </nomatch-list>
+      <reject>
+        <prompt>OK, lets try again.</prompt>
+      </reject>
+    </confirm>
+    <validate>
+    </validate>
+    <echo>
+      <property-list>
+        <property name="universals" value="all"/>
+      </property-list>
+      <prompt-list>
+        <prompt>OK, #{model.utterance}. Got it.</prompt>
+      </prompt-list>
+    </echo>
+  </config>
+</ui-config>

Propchange: jakarta/taglibs/proper/rdc/trunk/src/META-INF/tags/rdc/color.rdc
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: jakarta/taglibs/proper/rdc/trunk/src/META-INF/tags/rdc/color.rdc
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: jakarta/taglibs/proper/rdc/trunk/src/META-INF/tags/rdc/color.tag
URL: http://svn.apache.org/viewcvs/jakarta/taglibs/proper/rdc/trunk/src/META-INF/tags/rdc/color.tag?rev=231289&view=auto
==============================================================================
--- jakarta/taglibs/proper/rdc/trunk/src/META-INF/tags/rdc/color.tag (added)
+++ jakarta/taglibs/proper/rdc/trunk/src/META-INF/tags/rdc/color.tag Wed Aug 10 11:08:45 2005
@@ -0,0 +1,77 @@
+<%--
+  Copyright 2004 The Apache Software Foundation.
+  Licensed 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.
+--%>
+<!--
+<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
+<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
+<%@ taglib prefix="rdc" uri="http://jakarta.apache.org/taglibs/rdc-1.0" %>
+
+<%@ tag body-content="empty" %>
+
+<%@ attribute name="id" required="true" rtexprvalue="false" %>
+<%@ attribute name="submit" required="false" %>
+<%@ attribute name="config" required="false" %>
+<%@ attribute name="initial" required="false" %>
+<%@ attribute name="confirm" required="false" %>
+<%@ attribute name="echo" required="false" %>
+<%@ attribute name="locale" required="false" %>
+<%@ attribute name="minConfidence" required="false" %>
+<%@ attribute name="numNBest" required="false" %>
+<%@ attribute name="maxNoInput" required="false" %>
+<%@ attribute name="maxNoMatch" required="false" %>
+<%@ variable name-from-attribute="id" alias="retVal" scope="AT_END"%>
+-->
+<rdc:peek var="stateMap" stack="${requestScope.rdcStack}"/>
+<jsp:useBean id="constants" class="org.apache.taglibs.rdc.core.Constants" />
+
+<c:choose>
+  <c:when test="${empty stateMap[id]}">
+    <rdc:comment>This instance is being called for the first time in 
+    this session</rdc:comment>
+    <jsp:useBean id="model" class="org.apache.taglibs.rdc.Color" >
+      <c:set target="${model}" property="state"
+      value="${stateMap.initOnlyFlag == true ? constants.FSM_INITONLY : constants.FSM_INPUT}"/>
+      <rdc:comment>initialize bean from our attributes</rdc:comment>
+      <c:set target="${model}" property="id" value="${id}"/>
+      <c:set target="${model}" property="confirm" value="${confirm}"/>
+      <c:set target="${model}" property="submit" value="${submit}"/>
+      <c:set target="${model}" property="echo" value="${echo}"/>
+      <c:set target="${model}" property="initial" value="${initial}"/>
+      <c:set target="${model}" property="locale" value="${locale}"/>
+      <rdc:set-grammar model="${model}" key="rdc.color.voicegrammar.uri" />
+      <rdc:get-resource bundle="${model.rdcResourceBundle}" var="defaultConfig"
+       key="rdc.color.defaultconfig.uri" />
+      <rdc:configure model="${model}" config="${config}"
+       defaultConfig="${defaultConfig}" />
+      <rdc:setup-results model="${model}" submit="${submit}" 
+        minConfidence="${minConfidence}" numNBest="${numNBest}"  
+        maxNoInput="${maxNoInput}" maxNoMatch="${maxNoMatch}" />
+    </jsp:useBean>
+    <rdc:comment>cache away this instance for future requests in this 
+    session</rdc:comment>
+    <c:set target="${stateMap}" property="${id}" value="${model}"/>
+  </c:when>
+  <c:otherwise>
+    <rdc:comment>retrieve cached bean for this instance</rdc:comment>
+    <c:set var="model" value="${stateMap[id]}"/>
+  </c:otherwise>
+</c:choose>
+
+<rdc:extract-params target="${model}" parameters="${model.paramsMap}"/>
+
+<rdc:fsm-run model="${model}"/>
+              
+<c:if test="${model.state == constants.FSM_DONE}">
+  <c:set var="retVal" value="${model.value}"/>
+</c:if>

Propchange: jakarta/taglibs/proper/rdc/trunk/src/META-INF/tags/rdc/color.tag
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: jakarta/taglibs/proper/rdc/trunk/src/META-INF/tags/rdc/color.tag
------------------------------------------------------------------------------
    svn:executable = *

Propchange: jakarta/taglibs/proper/rdc/trunk/src/META-INF/tags/rdc/color.tag
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: jakarta/taglibs/proper/rdc/trunk/src/META-INF/tags/rdc/config/color.xml
URL: http://svn.apache.org/viewcvs/jakarta/taglibs/proper/rdc/trunk/src/META-INF/tags/rdc/config/color.xml?rev=231289&view=auto
==============================================================================
--- jakarta/taglibs/proper/rdc/trunk/src/META-INF/tags/rdc/config/color.xml (added)
+++ jakarta/taglibs/proper/rdc/trunk/src/META-INF/tags/rdc/config/color.xml Wed Aug 10 11:08:45 2005
@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+  Copyright 2004 The Apache Software Foundation.
+  Licensed 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.
+-->
+  <config>
+    <input>
+      <property-list>
+        <property name="incompletetimeout"  value="1s"/>
+        <property name="completetimeout"  value="1s"/>
+      </property-list>
+      <prompt-list>
+        <prompt>What is your favourite color</prompt>
+      </prompt-list>
+      <help-list>
+        <help>
+          <prompt> Say your favourite color, for example burgundy</prompt>
+        </help>
+      </help-list>
+      <noinput-list>
+        <noinput count="1">
+          <prompt>I did not hear you, say it again.</prompt>
+        </noinput>
+        <noinput count="2">
+          <prompt>Could you please repeat the input?</prompt>
+        </noinput>
+        <noinput count="3">
+          <prompt>I appear to be having trouble hearing you. 
+            Waiting for you to tell me your favorite color. </prompt>
+        </noinput>
+      </noinput-list>
+      <nomatch-list>
+        <nomatch>
+          <prompt>I am sorry. I didn't understand you. Please repeat the 
+            input.</prompt>
+        </nomatch>
+      </nomatch-list>
+    </input>
+    <confirm>
+      <property-list>
+        <property name="incompletetimeout" value="1s"/>
+        <property name="completetimeout" value="1s"/>
+      </property-list>
+      <prompt-list>
+          <prompt>I think you said #{model.utterance}. Is that
+        right? </prompt>
+      </prompt-list>
+      <help-list>
+        <help>
+          <prompt>To accept the value, say yes. To change your mind, say no.</prompt>
+        </help>
+      </help-list>
+      <noinput-list>
+        <noinput>
+          <prompt>Is #{model.utterance} an acceptable value? Please
+            say yes or no.</prompt>
+        </noinput>
+      </noinput-list>
+      <nomatch-list>
+        <nomatch>
+          <prompt>If #{model.utterance} is acceptable, say yes. Otherwise,
+            say no.</prompt>
+        </nomatch>
+      </nomatch-list>
+      <reject>
+        <prompt>OK, lets try again.</prompt>
+      </reject>
+    </confirm>
+    <validate>
+    </validate>
+    <echo>
+      <property-list>
+        <property name="universals" value="all"/>
+      </property-list>
+      <prompt-list>
+        <prompt>OK, #{model.utterance}. Got it.</prompt>
+      </prompt-list>
+    </echo>
+  </config>

Propchange: jakarta/taglibs/proper/rdc/trunk/src/META-INF/tags/rdc/config/color.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: jakarta/taglibs/proper/rdc/trunk/src/META-INF/tags/rdc/config/color.xml
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Added: jakarta/taglibs/proper/rdc/trunk/src/org/apache/taglibs/rdc/Color.java
URL: http://svn.apache.org/viewcvs/jakarta/taglibs/proper/rdc/trunk/src/org/apache/taglibs/rdc/Color.java?rev=231289&view=auto
==============================================================================
--- jakarta/taglibs/proper/rdc/trunk/src/org/apache/taglibs/rdc/Color.java (added)
+++ jakarta/taglibs/proper/rdc/trunk/src/org/apache/taglibs/rdc/Color.java Wed Aug 10 11:08:45 2005
@@ -0,0 +1,39 @@
+/*
+ *   Copyright 2004 The Apache Software Foundation.
+ *
+ *  Licensed 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.
+ *
+ *
+ */
+package org.apache.taglibs.rdc;
+
+import org.apache.taglibs.rdc.core.BaseModel;
+
+/**
+ * Datamodel for the Color RDC. The Color RDC is associated with the
+ * color input
+ *
+ * @author mwarne (Original)
+ * @author $Author$ (Last Updated)
+ * @version $Revision$ $Date$
+ */
+public class Color extends BaseModel {
+
+	/**
+	 * Sets default values for all data members
+	 */
+	public Color() {
+		super();
+	}
+
+}

Propchange: jakarta/taglibs/proper/rdc/trunk/src/org/apache/taglibs/rdc/Color.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: jakarta/taglibs/proper/rdc/trunk/src/org/apache/taglibs/rdc/Color.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Modified: jakarta/taglibs/proper/rdc/trunk/xml/rdc.xml
URL: http://svn.apache.org/viewcvs/jakarta/taglibs/proper/rdc/trunk/xml/rdc.xml?rev=231289&r1=231288&r2=231289&view=diff
==============================================================================
--- jakarta/taglibs/proper/rdc/trunk/xml/rdc.xml (original)
+++ jakarta/taglibs/proper/rdc/trunk/xml/rdc.xml Wed Aug 10 11:08:45 2005
@@ -167,6 +167,27 @@
         </tag-extension>
       </tag-file>
       <tag-file>
+        <description>Collects a color</description>
+        <display-name>color</display-name>
+        <name>color</name>
+        <path>/META-INF/tags/rdc/color.tag</path>
+        <example>
+           <![CDATA[
+                   <rdc:color id="myColor" confirm="true" echo="true" />
+          ]]>
+          <usage>
+            <comment>
+              <p>
+                See color-test.jsp in the rdc-examples application.
+              </p>
+            </comment>
+          </usage>
+        </example>
+        <tag-extension namespace="http://jakarta.apache.org/taglibs/rdc/pre-beta/tools">
+          <extension-element>/META-INF/tags/rdc/color.rdc</extension-element>
+        </tag-extension>
+      </tag-file>
+      <tag-file>
         <description>Collect a country name</description>
         <display-name>country</display-name>
         <name>country</name>



---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-dev-help@jakarta.apache.org


Mime
View raw message