svn commit: r996291 [1/2] - in /lenya/contributions/2_0_X/modules/quiz: ./ config/ config/cocoon-xconf/ resources/ resources/i18n/ resources/schemas/ samples/ xslt/
[email protected] Sun, 12 Sep 2010 10:55:11 -0000
| Newsgroups | gmane.comp.cms.lenya.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: rudolf
Date: Sun Sep 12 10:55:10 2010
New Revision: 996291
URL: http://svn.apache.org/viewvc?rev=996291&view=rev
Log:
quiz modules initial load
Added:
lenya/contributions/2_0_X/modules/quiz/
lenya/contributions/2_0_X/modules/quiz/config/
lenya/contributions/2_0_X/modules/quiz/config/cocoon-xconf/
lenya/contributions/2_0_X/modules/quiz/config/cocoon-xconf/resourcetype-quiz.xconf
lenya/contributions/2_0_X/modules/quiz/config/menu.xml
lenya/contributions/2_0_X/modules/quiz/config/module.xml
lenya/contributions/2_0_X/modules/quiz/resources/
lenya/contributions/2_0_X/modules/quiz/resources/i18n/
lenya/contributions/2_0_X/modules/quiz/resources/i18n/cmsui.xml
lenya/contributions/2_0_X/modules/quiz/resources/i18n/cmsui_de.xml
lenya/contributions/2_0_X/modules/quiz/resources/schemas/
lenya/contributions/2_0_X/modules/quiz/resources/schemas/attribs.rng
lenya/contributions/2_0_X/modules/quiz/resources/schemas/basic-form.rng
lenya/contributions/2_0_X/modules/quiz/resources/schemas/basic-table.rng
lenya/contributions/2_0_X/modules/quiz/resources/schemas/csismap.rng
lenya/contributions/2_0_X/modules/quiz/resources/schemas/datatypes.rng
lenya/contributions/2_0_X/modules/quiz/resources/schemas/form.rng
lenya/contributions/2_0_X/modules/quiz/resources/schemas/hypertext.rng
lenya/contributions/2_0_X/modules/quiz/resources/schemas/iframe.rng
lenya/contributions/2_0_X/modules/quiz/resources/schemas/image.rng
lenya/contributions/2_0_X/modules/quiz/resources/schemas/inlstyle.rng
lenya/contributions/2_0_X/modules/quiz/resources/schemas/list.rng
lenya/contributions/2_0_X/modules/quiz/resources/schemas/nameident.rng
lenya/contributions/2_0_X/modules/quiz/resources/schemas/object.rng
lenya/contributions/2_0_X/modules/quiz/resources/schemas/param.rng
lenya/contributions/2_0_X/modules/quiz/resources/schemas/pres.rng
lenya/contributions/2_0_X/modules/quiz/resources/schemas/question.rng
lenya/contributions/2_0_X/modules/quiz/resources/schemas/quiz.rng
lenya/contributions/2_0_X/modules/quiz/resources/schemas/table.rng
lenya/contributions/2_0_X/modules/quiz/resources/schemas/target.rng
lenya/contributions/2_0_X/modules/quiz/resources/schemas/text.rng
lenya/contributions/2_0_X/modules/quiz/resources/schemas/xhtml.rng
lenya/contributions/2_0_X/modules/quiz/samples/
lenya/contributions/2_0_X/modules/quiz/samples/default.xml
lenya/contributions/2_0_X/modules/quiz/samples/samples.xml
lenya/contributions/2_0_X/modules/quiz/sitemap.xmap
lenya/contributions/2_0_X/modules/quiz/xslt/
lenya/contributions/2_0_X/modules/quiz/xslt/quiz2xhtml.xsl
lenya/contributions/2_0_X/modules/quiz/xslt/reqparam.xsl
lenya/contributions/2_0_X/modules/quiz/xslt/reqparaminclude.xsl
Added: lenya/contributions/2_0_X/modules/quiz/config/cocoon-xconf/resourcetype-quiz.xconf
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/modules/quiz/config/cocoon-xconf/resourcetype-quiz.xconf?rev=996291&view=auto
==============================================================================
--- lenya/contributions/2_0_X/modules/quiz/config/cocoon-xconf/resourcetype-quiz.xconf (added)
+++ lenya/contributions/2_0_X/modules/quiz/config/cocoon-xconf/resourcetype-quiz.xconf Sun Sep 12 10:55:10 2010
@@ -0,0 +1,43 @@
+<?xml version="1.0"?>
+<!--
+ 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.
+-->
+
+<xconf xpath="/cocoon/resource-types" unless="/cocoon/resource-types/component-instance[@name = 'quiz']">
+
+ <component-instance name="quiz" logger="lenya.resourcetypes.quiz" class="org.apache.lenya.cms.publication.ResourceTypeImpl">
+ <schema namespace="http://relaxng.org/ns/structure/0.9" uri="fallback://lenya/modules/quiz/resources/schemas/quiz.rng"/>
+
+ <!-- Default time in seconds until the resource-type has expired -->
+ <expires seconds="3600" />
+
+ <samples uri="fallback://lenya/modules/quiz/samples/samples.xml"/>
+<!--
+ <link-attribute xpath="//*[namespace-uri() = 'http://www.w3.org/1999/xhtml']/@href"/>
+ <link-attribute xpath="//*[namespace-uri() = 'http://www.w3.org/1999/xhtml']/@data"/>
+ <link-attribute xpath="//*[namespace-uri() = 'http://www.w3.org/1999/xhtml']/@src"/> -->
+ <format name="xhtml" uri="cocoon://modules/quiz/xhtml.xml"/>
+ <format name="luceneIndex" uri="cocoon://modules/xhtml/lucene-index"/>
+<!-- "xslt-clean" format is used by webDAV (and other editors?) to "clean" xml content before it is validated/saved -->
+ <format name="xslt-clean" uri="fallback://lenya/modules/xhtml/xslt/clean-xhtml.xsl"/>
+ <format name="icon" uri="cocoon://modules/xhtml/icon"/>
+<!--
+ <format name="xhtml.xsl" uri="/modules/quiz/xslt/firedocs_exam2xhtml.xsl"/>
+ <format name="firedocsInserts" uri="fallback://lenya/modules/quiz/resources/firedocs/inserts.xml"/>
+-->
+ </component-instance>
+
+</xconf>
Added: lenya/contributions/2_0_X/modules/quiz/config/menu.xml
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/modules/quiz/config/menu.xml?rev=996291&view=auto
==============================================================================
--- lenya/contributions/2_0_X/modules/quiz/config/menu.xml (added)
+++ lenya/contributions/2_0_X/modules/quiz/config/menu.xml Sun Sep 12 10:55:10 2010
@@ -0,0 +1,44 @@
+<?xml version="1.0"?>
+<!--
+ 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.
+-->
+
+<menu xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
+ xmlns:uc="http://apache.org/cocoon/lenya/usecase/1.0"
+ xmlns="http://apache.org/cocoon/lenya/menubar/1.0">
+
+ <menus>
+ <menu i18n:attr="name" name="File">
+ <block areas="site authoring" id="create">
+ <item uc:usecase="sitemanagement.create" href="?doctype=quiz"><i18n:translate>
+ <i18n:text>New ... Document</i18n:text>
+ <i18n:param><i18n:text>resourceType-quiz</i18n:text></i18n:param>
+ </i18n:translate>
+ </item>
+ </block>
+ </menu>
+
+ <menu i18n:attr="name" name="Edit">
+ <block areas="authoring" resourceTypes="quiz">
+<!-- <item uc:usecase="bxe.edit"><i18n:text>With BXE</i18n:text></item> -->
+<!-- <item href="firedocs://">With Firedocs</item> -->
+ <item uc:usecase="editors.oneform"><i18n:text>Edit Source</i18n:text></item>
+ </block>
+ </menu>
+
+ </menus>
+
+</menu>
Added: lenya/contributions/2_0_X/modules/quiz/config/module.xml
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/modules/quiz/config/module.xml?rev=996291&view=auto
==============================================================================
--- lenya/contributions/2_0_X/modules/quiz/config/module.xml (added)
+++ lenya/contributions/2_0_X/modules/quiz/config/module.xml Sun Sep 12 10:55:10 2010
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ 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.
+-->
+
+<module xmlns="http://apache.org/lenya/module/1.0">
+ <id>org.apache.lenya.modules.quiz</id>
+ <package>org.apache.lenya.modules</package>
+ <version>0.1-dev</version>
+ <name>quiz</name>
+ <lenya-version>@lenya.version@</lenya-version>
+ <description>quiz module</description>
+</module>
Added: lenya/contributions/2_0_X/modules/quiz/resources/i18n/cmsui.xml
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/modules/quiz/resources/i18n/cmsui.xml?rev=996291&view=auto
==============================================================================
--- lenya/contributions/2_0_X/modules/quiz/resources/i18n/cmsui.xml (added)
+++ lenya/contributions/2_0_X/modules/quiz/resources/i18n/cmsui.xml Sun Sep 12 10:55:10 2010
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ 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.
+-->
+
+<catalogue xml:lang="en" xmlns:xhtml="http://www.w3.org/1999/xhtml"
+ xmlns="http://apache.org/cocoon/i18n/2.1">
+
+ <message key="resourceType-quiz">quiz</message>
+ <message key="Default Sample">Default Sample</message>
+
+ </catalogue>
Added: lenya/contributions/2_0_X/modules/quiz/resources/i18n/cmsui_de.xml
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/modules/quiz/resources/i18n/cmsui_de.xml?rev=996291&view=auto
==============================================================================
--- lenya/contributions/2_0_X/modules/quiz/resources/i18n/cmsui_de.xml (added)
+++ lenya/contributions/2_0_X/modules/quiz/resources/i18n/cmsui_de.xml Sun Sep 12 10:55:10 2010
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ 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.
+-->
+
+<!-- $Id: cmsui.xml 446564 2006-09-15 10:13:16Z andreas $ -->
+
+<catalogue xml:lang="de" xmlns:xhtml="http://www.w3.org/1999/xhtml"
+ xmlns="http://apache.org/cocoon/i18n/2.1">
+
+ <message key="resourceType-quiz">Quiz</message>
+ <message key="Default Sample">Standard-Layout</message>
+
+</catalogue>
Added: lenya/contributions/2_0_X/modules/quiz/resources/schemas/attribs.rng
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/modules/quiz/resources/schemas/attribs.rng?rev=996291&view=auto
==============================================================================
--- lenya/contributions/2_0_X/modules/quiz/resources/schemas/attribs.rng (added)
+++ lenya/contributions/2_0_X/modules/quiz/resources/schemas/attribs.rng Sun Sep 12 10:55:10 2010
@@ -0,0 +1,80 @@
+<?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.
+-->
+
+<!-- $Id: attribs.rng 42702 2004-03-13 12:34:18Z gregor $ -->
+
+<!-- Common Attributes Module -->
+<grammar xmlns="http://relaxng.org/ns/structure/1.0">
+
+<define name="id.attrib">
+ <optional>
+ <attribute name="id">
+ <ref name="ID.datatype"/>
+ </attribute>
+ </optional>
+</define>
+
+<define name="class.attrib">
+ <optional>
+ <attribute name="class">
+ <ref name="NMTOKENS.datatype"/>
+ </attribute>
+ </optional>
+</define>
+
+<define name="title.attrib">
+ <optional>
+ <attribute name="title">
+ <ref name="Text.datatype"/>
+ </attribute>
+ </optional>
+</define>
+
+<define name="Core.attrib">
+ <ref name="id.attrib"/>
+ <ref name="class.attrib"/>
+ <ref name="title.attrib"/>
+</define>
+
+<define name="lang.attrib">
+ <optional>
+ <attribute name="xml:lang">
+ <ref name="LanguageCode.datatype"/>
+ </attribute>
+ </optional>
+</define>
+
+<define name="I18n.attrib">
+ <ref name="lang.attrib"/>
+</define>
+
+<define name="Common.attrib">
+ <ref name="Core.attrib"/>
+ <ref name="I18n.attrib"/>
+</define>
+
+<define name="CommonIdRequired.attrib">
+ <attribute name="id">
+ <ref name="ID.datatype"/>
+ </attribute>
+ <ref name="class.attrib"/>
+ <ref name="title.attrib"/>
+ <ref name="I18n.attrib"/>
+</define>
+
+</grammar>
\ No newline at end of file
Added: lenya/contributions/2_0_X/modules/quiz/resources/schemas/basic-form.rng
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/modules/quiz/resources/schemas/basic-form.rng?rev=996291&view=auto
==============================================================================
--- lenya/contributions/2_0_X/modules/quiz/resources/schemas/basic-form.rng (added)
+++ lenya/contributions/2_0_X/modules/quiz/resources/schemas/basic-form.rng Sun Sep 12 10:55:10 2010
@@ -0,0 +1,245 @@
+<?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.
+-->
+
+<!-- $Id: basic-form.rng 42702 2004-03-13 12:34:18Z gregor $ -->
+
+
+<!-- Simplified Forms Module -->
+<grammar xmlns="http://relaxng.org/ns/structure/1.0">
+
+ <define name="form">
+ <element name="form">
+ <ref name="form.attlist"/>
+ <!-- Don't use Block.model, because this gets redefined by the
+ legacy module. -->
+ <oneOrMore>
+ <ref name="Block.class"/>
+ </oneOrMore>
+ </element>
+ </define>
+
+ <define name="form.attlist">
+ <ref name="Common.attrib"/>
+ <attribute name="action">
+ <ref name="URI.datatype"/>
+ </attribute>
+ <optional>
+ <attribute name="method">
+ <choice>
+ <value>get</value>
+ <value>post</value>
+ </choice>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="enctype">
+ <ref name="ContentType.datatype"/>
+ </attribute>
+ </optional>
+ </define>
+
+ <define name="label">
+ <element name="label">
+ <ref name="label.attlist"/>
+ <ref name="Inline.model"/>
+ </element>
+ </define>
+
+ <define name="label.attlist">
+ <ref name="Common.attrib"/>
+ <optional>
+ <attribute name="for">
+ <ref name="IDREF.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="accesskey">
+ <ref name="Character.datatype"/>
+ </attribute>
+ </optional>
+ </define>
+
+ <define name="input">
+ <element name="input">
+ <ref name="input.attlist"/>
+ </element>
+ </define>
+
+ <define name="input.attlist">
+ <ref name="Common.attrib"/>
+ <optional>
+ <attribute name="type">
+ <ref name="InputType.class"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="name"/>
+ </optional>
+ <optional>
+ <attribute name="value"/>
+ </optional>
+ <optional>
+ <attribute name="required">
+ <choice>
+ <value>yes</value>
+ <value>no</value>
+ </choice>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="checked">
+ <value>checked</value>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="size"/>
+ </optional>
+ <optional>
+ <attribute name="maxlength">
+ <ref name="Number.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="src">
+ <ref name="URI.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="accesskey">
+ <ref name="Character.datatype"/>
+ </attribute>
+ </optional>
+ </define>
+
+ <define name="InputType.class">
+ <choice>
+ <value>text</value>
+ <value>password</value>
+ <value>checkbox</value>
+ <value>radio</value>
+ <value>submit</value>
+ <value>reset</value>
+ <value>hidden</value>
+ </choice>
+ </define>
+
+ <define name="select">
+ <element name="select">
+ <ref name="select.attlist"/>
+ <oneOrMore>
+ <ref name="option"/>
+ </oneOrMore>
+ </element>
+ </define>
+
+ <define name="select.attlist">
+ <ref name="Common.attrib"/>
+ <optional>
+ <attribute name="name"/>
+ </optional>
+ <optional>
+ <attribute name="size">
+ <ref name="Number.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="multiple">
+ <value>multiple</value>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="required">
+ <choice>
+ <value>yes</value>
+ <value>no</value>
+ </choice>
+ </attribute>
+ </optional>
+ </define>
+
+ <define name="option">
+ <element name="option">
+ <ref name="Common.attrib"/>
+ <optional>
+ <attribute name="selected">
+ <value>selected</value>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="value"/>
+ </optional>
+ <text/>
+ </element>
+ </define>
+
+ <define name="textarea">
+ <element name="textarea">
+ <ref name="textarea.attlist"/>
+ </element>
+ </define>
+
+ <define name="textarea.attlist">
+ <ref name="Common.attrib"/>
+ <optional>
+ <attribute name="name"/>
+ </optional>
+ <attribute name="rows">
+ <ref name="Number.datatype"/>
+ </attribute>
+ <attribute name="cols">
+ <ref name="Number.datatype"/>
+ </attribute>
+ <optional>
+ <attribute name="accesskey">
+ <ref name="Character.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="required">
+ <choice>
+ <value>yes</value>
+ <value>no</value>
+ </choice>
+ </attribute>
+ </optional>
+
+ <text/>
+ </define>
+
+ <define name="Form.class">
+ <ref name="form"/>
+ </define>
+
+ <define name="Formctrl.class">
+ <choice>
+ <ref name="input"/>
+ <ref name="label"/>
+ <ref name="select"/>
+ <ref name="textarea"/>
+ </choice>
+ </define>
+
+ <define name="Block.class" combine="choice">
+ <ref name="Form.class"/>
+ </define>
+
+ <define name="Inline.class" combine="choice">
+ <ref name="Formctrl.class"/>
+ </define>
+
+</grammar>
\ No newline at end of file
Added: lenya/contributions/2_0_X/modules/quiz/resources/schemas/basic-table.rng
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/modules/quiz/resources/schemas/basic-table.rng?rev=996291&view=auto
==============================================================================
--- lenya/contributions/2_0_X/modules/quiz/resources/schemas/basic-table.rng (added)
+++ lenya/contributions/2_0_X/modules/quiz/resources/schemas/basic-table.rng Sun Sep 12 10:55:10 2010
@@ -0,0 +1,196 @@
+<?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.
+-->
+
+<!-- $Id: basic-table.rng 42702 2004-03-13 12:34:18Z gregor $ -->
+
+<!-- Basic Tables Module -->
+<grammar xmlns="http://relaxng.org/ns/structure/1.0">
+
+ <define name="table">
+ <element name="table">
+ <ref name="table.attlist"/>
+ <optional>
+ <ref name="caption"/>
+ </optional>
+ <oneOrMore>
+ <ref name="tr"/>
+ </oneOrMore>
+ </element>
+ </define>
+
+ <define name="table.attlist">
+ <ref name="id.attrib"/>
+ <ref name="title.attrib"/>
+ <ref name="I18n.attrib"/>
+ <optional>
+ <attribute name="summary">
+ <ref name="Text.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="class">
+ <choice>
+ <value>grid</value>
+ <value>ornate</value>
+ <value>ornate_mR_z</value>
+ <value>ornate_mR_v</value>
+ <value>ornate_oR_l</value>
+ <value>ornate_oR_z</value>
+ <value>ornate_oR_v</value>
+ </choice>
+ </attribute>
+ </optional>
+ </define>
+
+ <define name="caption">
+ <element name="caption">
+ <ref name="caption.attlist"/>
+ <ref name="Inline.model"/>
+ </element>
+ </define>
+
+ <define name="caption.attlist">
+ <ref name="Common.attrib"/>
+ </define>
+
+ <define name="tr">
+ <element name="tr">
+ <ref name="tr.attlist"/>
+ <oneOrMore>
+ <choice>
+ <ref name="th"/>
+ <ref name="td"/>
+ </choice>
+ </oneOrMore>
+ </element>
+ </define>
+
+ <define name="tr.attlist">
+ <ref name="Common.attrib"/>
+ <ref name="CellHAlign.attrib"/>
+ <ref name="CellVAlign.attrib"/>
+ </define>
+
+ <define name="th">
+ <element name="th">
+ <ref name="th.attlist"/>
+ <ref name="Flow.model"/>
+ </element>
+ </define>
+
+ <define name="th.attlist">
+ <ref name="Cell.attrib"/>
+ </define>
+
+ <define name="td">
+ <element name="td">
+ <ref name="td.attlist"/>
+ <ref name="Flow.model"/>
+ </element>
+ </define>
+
+ <define name="td.attlist">
+ <ref name="Cell.attrib"/>
+ </define>
+
+ <define name="Cell.attrib">
+<!-- <ref name="Common.attrib"/> -->
+ <optional>
+ <attribute name="class">
+ <choice>
+ <value>hintergrund1</value>
+ <value>hintergrund2</value>
+ <value>hintergrund3</value>
+ </choice>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="abbr">
+ <ref name="Text.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="axis"/>
+ </optional>
+ <optional>
+ <attribute name="headers">
+ <ref name="IDREFS.datatype"/>
+ </attribute>
+ </optional>
+ <ref name="scope.attrib"/>
+ <optional>
+ <attribute name="rowspan">
+ <ref name="Number.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="colspan">
+ <ref name="Number.datatype"/>
+ </attribute>
+ </optional>
+
+ <optional>
+ <attribute name="width">
+ <ref name="Number.datatype"/>
+ </attribute>
+ </optional>
+
+ <ref name="CellHAlign.attrib"/>
+ <ref name="CellVAlign.attrib"/>
+ </define>
+
+ <define name="CellHAlign.attrib">
+ <optional>
+ <attribute name="align">
+ <choice>
+ <value>left</value>
+ <value>center</value>
+ <value>right</value>
+ </choice>
+ </attribute>
+ </optional>
+ </define>
+
+ <define name="CellVAlign.attrib">
+ <optional>
+ <attribute name="valign">
+ <choice>
+ <value>top</value>
+ <value>middle</value>
+ <value>bottom</value>
+ </choice>
+ </attribute>
+ </optional>
+ </define>
+
+ <define name="scope.attrib">
+ <optional>
+ <attribute name="scope">
+ <choice>
+ <value>row</value>
+ <value>col</value>
+ </choice>
+ </attribute>
+ </optional>
+ </define>
+
+ <define name="Block.class" combine="choice">
+ <ref name="table"/>
+ </define>
+
+</grammar>
\ No newline at end of file
Added: lenya/contributions/2_0_X/modules/quiz/resources/schemas/csismap.rng
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/modules/quiz/resources/schemas/csismap.rng?rev=996291&view=auto
==============================================================================
--- lenya/contributions/2_0_X/modules/quiz/resources/schemas/csismap.rng (added)
+++ lenya/contributions/2_0_X/modules/quiz/resources/schemas/csismap.rng Sun Sep 12 10:55:10 2010
@@ -0,0 +1,121 @@
+<?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.
+-->
+
+<!-- $Id: csismap.rng 42702 2004-03-13 12:34:18Z gregor $ -->
+
+<!-- Client-side Image Map Module -->
+<grammar xmlns="http://relaxng.org/ns/structure/1.0">
+
+<define name="area">
+ <element name="area">
+ <ref name="area.attlist"/>
+ </element>
+</define>
+
+<define name="area.attlist">
+ <ref name="Common.attrib"/>
+ <optional>
+ <attribute name="href">
+ <ref name="URI.datatype"/>
+ </attribute>
+ </optional>
+ <ref name="shape.attrib"/>
+ <ref name="coords.attrib"/>
+ <optional>
+ <attribute name="nohref">
+ <value>nohref</value>
+ </attribute>
+ </optional>
+ <attribute name="alt">
+ <ref name="Text.datatype"/>
+ </attribute>
+ <optional>
+ <attribute name="tabindex">
+ <ref name="Number.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="accesskey">
+ <ref name="Character.datatype"/>
+ </attribute>
+ </optional>
+</define>
+
+<define name="map">
+ <element name="map">
+ <ref name="map.attlist"/>
+ <oneOrMore>
+ <choice>
+ <!-- This does not use Block.mix
+ because loose.dtd doesn't use %Flow; -->
+ <ref name="Block.class"/>
+ <ref name="area"/>
+ </choice>
+ </oneOrMore>
+ </element>
+</define>
+
+<define name="map.attlist">
+ <ref name="CommonIdRequired.attrib"/>
+</define>
+
+<define name="a.attlist" combine="interleave">
+ <ref name="shape.attrib"/>
+ <ref name="coords.attrib"/>
+</define>
+
+<define name="img.attlist" combine="interleave">
+ <ref name="usemap.attlist"/>
+</define>
+
+<define name="object.attlist" combine="interleave">
+ <ref name="usemap.attlist"/>
+</define>
+
+<define name="usemap.attlist">
+ <optional>
+ <attribute name="usemap">
+ <ref name="IDREF.datatype"/>
+ </attribute>
+ </optional>
+</define>
+
+<define name="shape.attrib">
+ <optional>
+ <attribute name="shape">
+ <choice>
+ <value>rect</value>
+ <value>circle</value>
+ <value>poly</value>
+ <value>default</value>
+ </choice>
+ </attribute>
+ </optional>
+</define>
+
+<define name="coords.attrib">
+ <optional>
+ <attribute name="coords"/>
+ </optional>
+</define>
+
+<define name="Inline.class" combine="choice">
+ <ref name="map"/>
+</define>
+
+</grammar>
\ No newline at end of file
Added: lenya/contributions/2_0_X/modules/quiz/resources/schemas/datatypes.rng
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/modules/quiz/resources/schemas/datatypes.rng?rev=996291&view=auto
==============================================================================
--- lenya/contributions/2_0_X/modules/quiz/resources/schemas/datatypes.rng (added)
+++ lenya/contributions/2_0_X/modules/quiz/resources/schemas/datatypes.rng Sun Sep 12 10:55:10 2010
@@ -0,0 +1,139 @@
+<?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.
+-->
+
+<!-- $Id: datatypes.rng 42702 2004-03-13 12:34:18Z gregor $ -->
+
+<!-- Datatypes Module -->
+<grammar xmlns="http://relaxng.org/ns/structure/1.0"
+ datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
+
+<!-- Length defined for cellpadding/cellspacing -->
+
+<!-- nn for pixels or nn% for percentage length -->
+<define name="Length.datatype">
+ <text/>
+</define>
+
+<!-- space-separated list of link types -->
+<define name="LinkTypes.datatype">
+ <ref name="NMTOKENS.datatype"/>
+</define>
+
+<!-- single or comma-separated list of media descriptors -->
+<define name="MediaDesc.datatype">
+ <text/>
+</define>
+
+<!-- pixel, percentage, or relative -->
+<define name="MultiLength.datatype">
+ <text/>
+</define>
+
+<!-- one or more digits (NUMBER) -->
+<define name="Number.datatype">
+ <text/>
+</define>
+
+<!-- integer representing length in pixels -->
+<define name="Pixels.datatype">
+ <text/>
+</define>
+
+<!-- script expression -->
+<define name="Script.datatype">
+ <text/>
+</define>
+
+<!-- textual content -->
+<define name="Text.datatype">
+ <text/>
+</define>
+
+<!-- Imported Datatypes ................................ -->
+
+<!-- a single character from [ISO10646] -->
+<define name="Character.datatype">
+ <text/>
+</define>
+
+<!-- a character encoding, as per [RFC2045] -->
+<define name="Charset.datatype">
+ <text/>
+</define>
+
+<!-- a space separated list of character encodings, as per [RFC2045] -->
+<define name="Charsets.datatype">
+ <text/>
+</define>
+
+<!-- media type, as per [RFC2045] -->
+<define name="ContentType.datatype">
+ <text/>
+</define>
+
+<!-- comma-separated list of media types, as per [RFC2045] -->
+<define name="ContentTypes.datatype">
+ <text/>
+</define>
+
+<!-- date and time information. ISO date format -->
+<define name="Datetime.datatype">
+ <text/>
+</define>
+
+<!-- formal public identifier, as per [ISO8879] -->
+<define name="FPI.datatype">
+ <text/>
+</define>
+
+<!-- a language code, as per [RFC1766] -->
+<define name="LanguageCode.datatype">
+ <data type="language"/>
+</define>
+
+<!-- a Uniform Resource Identifier, see [URI] -->
+<define name="URI.datatype">
+ <data type="anyURI"/>
+</define>
+
+<!-- a space-separated list of Uniform Resource Identifiers, see [URI] -->
+<define name="URIs.datatype">
+ <text/>
+</define>
+
+<define name="NMTOKEN.datatype">
+ <data type="NMTOKEN"/>
+</define>
+
+<define name="NMTOKENS.datatype">
+ <data type="NMTOKENS"/>
+</define>
+
+<define name="ID.datatype">
+ <data type="ID"/>
+</define>
+
+<define name="IDREF.datatype">
+ <data type="IDREF"/>
+</define>
+
+<define name="IDREFS.datatype">
+ <data type="IDREFS"/>
+</define>
+
+</grammar>
\ No newline at end of file
Added: lenya/contributions/2_0_X/modules/quiz/resources/schemas/form.rng
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/modules/quiz/resources/schemas/form.rng?rev=996291&view=auto
==============================================================================
--- lenya/contributions/2_0_X/modules/quiz/resources/schemas/form.rng (added)
+++ lenya/contributions/2_0_X/modules/quiz/resources/schemas/form.rng Sun Sep 12 10:55:10 2010
@@ -0,0 +1,228 @@
+<?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.
+-->
+
+<!-- $Id: form.rng 42702 2004-03-13 12:34:18Z gregor $ -->
+
+<!-- Forms Module -->
+<!-- Unlike the DTD implementation, this builds on the basic-form module --><grammar xmlns="http://relaxng.org/ns/structure/1.0">
+
+<include href="basic-form.rng">
+
+ <define name="select">
+ <element name="select">
+ <ref name="select.attlist"/>
+ <oneOrMore>
+ <choice>
+ <ref name="option"/>
+ <ref name="optgroup"/>
+ </choice>
+ </oneOrMore>
+ </element>
+ </define>
+
+</include>
+
+<define name="form.attlist" combine="interleave">
+ <optional>
+ <attribute name="accept-charset">
+ <ref name="Charsets.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="accept">
+ <ref name="ContentTypes.datatype"/>
+ </attribute>
+ </optional>
+</define>
+
+<define name="input.attlist" combine="interleave">
+ <optional>
+ <attribute name="disabled">
+ <value>disabled</value>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="readonly">
+ <value>readonly</value>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="alt"/>
+ </optional>
+ <optional>
+ <attribute name="tabindex">
+ <ref name="Number.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="accept">
+ <ref name="ContentTypes.datatype"/>
+ </attribute>
+ </optional>
+</define>
+
+<define name="InputType.class" combine="choice">
+ <choice>
+ <value>image</value>
+ <value>button</value>
+ </choice>
+</define>
+
+<define name="select.attlist" combine="interleave">
+ <optional>
+ <attribute name="disabled">
+ <value>disabled</value>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="tabindex">
+ <ref name="Number.datatype"/>
+ </attribute>
+ </optional>
+</define>
+
+<define name="option.attlist" combine="interleave">
+ <optional>
+ <attribute name="disabled">
+ <value>disabled</value>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="label">
+ <ref name="Text.datatype"/>
+ </attribute>
+ </optional>
+</define>
+
+<define name="optgroup">
+ <element name="optgroup">
+ <ref name="optgroup.attlist"/>
+ <oneOrMore>
+ <ref name="option"/>
+ </oneOrMore>
+ </element>
+</define>
+
+<define name="optgroup.attlist">
+ <ref name="Common.attrib"/>
+ <optional>
+ <attribute name="disabled">
+ <value>disabled</value>
+ </attribute>
+ </optional>
+ <attribute name="label">
+ <ref name="Text.datatype"/>
+ </attribute>
+</define>
+
+<define name="textarea.attlist" combine="interleave">
+ <optional>
+ <attribute name="disabled">
+ <value>disabled</value>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="readonly">
+ <value>readonly</value>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="tabindex">
+ <ref name="Number.datatype"/>
+ </attribute>
+ </optional>
+</define>
+
+<define name="fieldset">
+ <element name="fieldset">
+ <ref name="fieldset.attlist"/>
+ <ref name="legend"/>
+ <ref name="Flow.model"/>
+ </element>
+</define>
+
+<define name="fieldset.attlist">
+ <ref name="Common.attrib"/>
+</define>
+
+<define name="button">
+ <element name="button">
+ <ref name="button.attlist"/>
+ <ref name="Flow.model"/>
+ </element>
+</define>
+
+<define name="button.attlist">
+ <ref name="Common.attrib"/>
+ <optional>
+ <attribute name="name"/>
+ </optional>
+ <optional>
+ <attribute name="value"/>
+ </optional>
+ <optional>
+ <attribute name="type">
+ <choice>
+ <value>button</value>
+ <value>submit</value>
+ <value>reset</value>
+ </choice>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="disabled">
+ <value>disabled</value>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="tabindex">
+ <ref name="Number.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="accesskey">
+ <ref name="Character.datatype"/>
+ </attribute>
+ </optional>
+</define>
+
+<define name="legend">
+ <element name="legend">
+ <ref name="legend.attlist"/>
+ <ref name="Inline.model"/>
+ </element>
+</define>
+
+<define name="legend.attlist">
+ <ref name="Common.attrib"/>
+ <optional>
+ <attribute name="accesskey">
+ <ref name="Character.datatype"/>
+ </attribute>
+ </optional>
+</define>
+
+<define name="Form.class" combine="choice">
+ <ref name="fieldset"/>
+</define>
+
+<define name="Formctrl.class" combine="choice">
+ <ref name="button"/>
+</define>
+
+</grammar>
\ No newline at end of file
Added: lenya/contributions/2_0_X/modules/quiz/resources/schemas/hypertext.rng
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/modules/quiz/resources/schemas/hypertext.rng?rev=996291&view=auto
==============================================================================
--- lenya/contributions/2_0_X/modules/quiz/resources/schemas/hypertext.rng (added)
+++ lenya/contributions/2_0_X/modules/quiz/resources/schemas/hypertext.rng Sun Sep 12 10:55:10 2010
@@ -0,0 +1,80 @@
+<?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.
+-->
+
+<!-- $Id: hypertext.rng 42702 2004-03-13 12:34:18Z gregor $ -->
+
+<!-- Hypertext Module -->
+<!-- Depends on text module. -->
+<grammar xmlns="http://relaxng.org/ns/structure/1.0">
+
+<define name="a">
+ <element name="a">
+ <ref name="a.attlist"/>
+ <ref name="Inline.model"/>
+ </element>
+</define>
+
+<define name="a.attlist">
+ <ref name="Common.attrib"/>
+ <optional>
+ <attribute name="href">
+ <ref name="URI.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="charset">
+ <ref name="Charset.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="type">
+ <ref name="ContentType.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="hreflang">
+ <ref name="LanguageCode.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="rel">
+ <ref name="LinkTypes.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="rev">
+ <ref name="LinkTypes.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="accesskey">
+ <ref name="Character.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="tabindex">
+ <ref name="Number.datatype"/>
+ </attribute>
+ </optional>
+</define>
+
+<define name="Inline.class" combine="choice">
+ <ref name="a"/>
+</define>
+
+</grammar>
\ No newline at end of file
Added: lenya/contributions/2_0_X/modules/quiz/resources/schemas/iframe.rng
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/modules/quiz/resources/schemas/iframe.rng?rev=996291&view=auto
==============================================================================
--- lenya/contributions/2_0_X/modules/quiz/resources/schemas/iframe.rng (added)
+++ lenya/contributions/2_0_X/modules/quiz/resources/schemas/iframe.rng Sun Sep 12 10:55:10 2010
@@ -0,0 +1,86 @@
+<?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.
+-->
+
+<!-- $Id: iframe.rng 42702 2004-03-13 12:34:18Z gregor $ -->
+
+<!-- Iframe Module -->
+<grammar xmlns="http://relaxng.org/ns/structure/1.0">
+
+<define name="iframe">
+ <element name="iframe">
+ <ref name="iframe.attlist"/>
+ <ref name="Flow.model"/>
+ </element>
+</define>
+
+<define name="iframe.attlist">
+ <ref name="Core.attrib"/>
+ <optional>
+ <attribute name="longdesc">
+ <ref name="URI.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="src">
+ <ref name="URI.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="frameborder">
+ <choice>
+ <value>1</value>
+ <value>0</value>
+ </choice>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="width">
+ <ref name="Length.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="height">
+ <ref name="Length.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="marginwidth">
+ <ref name="Pixels.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="marginheight">
+ <ref name="Pixels.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="scrolling">
+ <choice>
+ <value>yes</value>
+ <value>no</value>
+ <value>auto</value>
+ </choice>
+ </attribute>
+ </optional>
+</define>
+
+<define name="Inline.class" combine="choice">
+ <ref name="iframe"/>
+</define>
+
+</grammar>
\ No newline at end of file
Added: lenya/contributions/2_0_X/modules/quiz/resources/schemas/image.rng
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/modules/quiz/resources/schemas/image.rng?rev=996291&view=auto
==============================================================================
--- lenya/contributions/2_0_X/modules/quiz/resources/schemas/image.rng (added)
+++ lenya/contributions/2_0_X/modules/quiz/resources/schemas/image.rng Sun Sep 12 10:55:10 2010
@@ -0,0 +1,64 @@
+<?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.
+-->
+
+<!-- $Id: image.rng 42702 2004-03-13 12:34:18Z gregor $ -->
+
+<!-- Image Module -->
+<grammar xmlns="http://relaxng.org/ns/structure/1.0">
+
+<define name="img">
+ <element name="img">
+ <ref name="img.attlist"/>
+ </element>
+</define>
+
+<define name="img.attlist">
+ <ref name="Common.attrib"/>
+ <attribute name="src">
+ <ref name="URI.datatype"/>
+ </attribute>
+ <attribute name="alt">
+ <ref name="Text.datatype"/>
+ </attribute>
+ <optional>
+ <attribute name="longdesc">
+ <ref name="URI.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="height">
+ <ref name="Length.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="width">
+ <ref name="Length.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="border">
+ <ref name="Pixels.datatype"/>
+ </attribute>
+ </optional>
+</define>
+
+<define name="Inline.class" combine="choice">
+ <ref name="img"/>
+</define>
+
+</grammar>
Added: lenya/contributions/2_0_X/modules/quiz/resources/schemas/inlstyle.rng
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/modules/quiz/resources/schemas/inlstyle.rng?rev=996291&view=auto
==============================================================================
--- lenya/contributions/2_0_X/modules/quiz/resources/schemas/inlstyle.rng (added)
+++ lenya/contributions/2_0_X/modules/quiz/resources/schemas/inlstyle.rng Sun Sep 12 10:55:10 2010
@@ -0,0 +1,30 @@
+<?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.
+-->
+
+<!-- $Id: inlstyle.rng 42702 2004-03-13 12:34:18Z gregor $ -->
+
+<!-- Inline Style Module -->
+<grammar xmlns="http://relaxng.org/ns/structure/1.0">
+
+<define name="Core.attrib" combine="interleave">
+ <optional>
+ <attribute name="style"/>
+ </optional>
+</define>
+
+</grammar>
\ No newline at end of file
Added: lenya/contributions/2_0_X/modules/quiz/resources/schemas/list.rng
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/modules/quiz/resources/schemas/list.rng?rev=996291&view=auto
==============================================================================
--- lenya/contributions/2_0_X/modules/quiz/resources/schemas/list.rng (added)
+++ lenya/contributions/2_0_X/modules/quiz/resources/schemas/list.rng Sun Sep 12 10:55:10 2010
@@ -0,0 +1,111 @@
+<?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.
+-->
+
+<!-- $Id: list.rng 42702 2004-03-13 12:34:18Z gregor $ -->
+
+<!-- List Module -->
+<grammar xmlns="http://relaxng.org/ns/structure/1.0">
+
+<define name="dl">
+ <element name="dl">
+ <ref name="dl.attlist"/>
+ <oneOrMore>
+ <choice>
+ <ref name="dt"/>
+ <ref name="dd"/>
+ </choice>
+ </oneOrMore>
+ </element>
+</define>
+
+<define name="dl.attlist">
+ <ref name="Common.attrib"/>
+</define>
+
+<define name="dt">
+ <element name="dt">
+ <ref name="dt.attlist"/>
+ <ref name="Inline.model"/>
+ </element>
+</define>
+
+<define name="dt.attlist">
+ <ref name="Common.attrib"/>
+</define>
+
+<define name="dd">
+ <element name="dd">
+ <ref name="dd.attlist"/>
+ <ref name="Flow.model"/>
+ </element>
+</define>
+
+<define name="dd.attlist">
+ <ref name="Common.attrib"/>
+</define>
+
+<define name="ol">
+ <element name="ol">
+ <ref name="ol.attlist"/>
+ <oneOrMore>
+ <ref name="li"/>
+ </oneOrMore>
+ </element>
+</define>
+
+<define name="ol.attlist">
+ <ref name="Common.attrib"/>
+</define>
+
+<define name="ul">
+ <element name="ul">
+ <ref name="ul.attlist"/>
+ <oneOrMore>
+ <ref name="li"/>
+ </oneOrMore>
+ </element>
+</define>
+
+<define name="ul.attlist">
+ <ref name="Common.attrib"/>
+</define>
+
+<define name="li">
+ <element name="li">
+ <ref name="li.attlist"/>
+ <ref name="Flow.model"/>
+ </element>
+</define>
+
+<define name="li.attlist">
+ <ref name="Common.attrib"/>
+</define>
+
+<define name="List.class">
+ <choice>
+ <ref name="ul"/>
+ <ref name="ol"/>
+ <ref name="dl"/>
+ </choice>
+</define>
+
+<define name="Block.class" combine="choice">
+ <ref name="List.class"/>
+</define>
+
+</grammar>
\ No newline at end of file
Added: lenya/contributions/2_0_X/modules/quiz/resources/schemas/nameident.rng
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/modules/quiz/resources/schemas/nameident.rng?rev=996291&view=auto
==============================================================================
--- lenya/contributions/2_0_X/modules/quiz/resources/schemas/nameident.rng (added)
+++ lenya/contributions/2_0_X/modules/quiz/resources/schemas/nameident.rng Sun Sep 12 10:55:10 2010
@@ -0,0 +1,58 @@
+<?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.
+-->
+
+<!-- $Id: nameident.rng 42702 2004-03-13 12:34:18Z gregor $ -->
+
+<!-- Name Identification Module -->
+<grammar xmlns="http://relaxng.org/ns/structure/1.0">
+
+<define name="a.attlist" combine="interleave">
+ <ref name="name.attlist"/>
+</define>
+
+<define name="applet.attlist" combine="interleave">
+ <ref name="name.attlist"/>
+</define>
+
+<define name="form.attlist" combine="interleave">
+ <ref name="name.attlist"/>
+</define>
+
+<define name="frame.attrib" combine="interleave">
+ <ref name="name.attlist"/>
+</define>
+
+<define name="iframe.attlist" combine="interleave">
+ <ref name="name.attlist"/>
+</define>
+
+<define name="img.attlist" combine="interleave">
+ <ref name="name.attlist"/>
+</define>
+
+<define name="map.attlist" combine="interleave">
+ <ref name="name.attlist"/>
+</define>
+
+<define name="name.attlist">
+ <optional>
+ <attribute name="name"/>
+ </optional>
+</define>
+
+</grammar>
\ No newline at end of file
Added: lenya/contributions/2_0_X/modules/quiz/resources/schemas/object.rng
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/modules/quiz/resources/schemas/object.rng?rev=996291&view=auto
==============================================================================
--- lenya/contributions/2_0_X/modules/quiz/resources/schemas/object.rng (added)
+++ lenya/contributions/2_0_X/modules/quiz/resources/schemas/object.rng Sun Sep 12 10:55:10 2010
@@ -0,0 +1,106 @@
+<?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.
+-->
+
+<!-- $Id: object.rng 56344 2004-11-02 04:28:38Z gregor $ -->
+
+<!-- Object Module -->
+<grammar xmlns="http://relaxng.org/ns/structure/1.0">
+
+<define name="object">
+ <element name="object">
+ <ref name="object.attlist"/>
+ <!-- No restrictions on mixed content in TREX. -->
+ <zeroOrMore>
+ <ref name="param"/>
+ </zeroOrMore>
+ <ref name="Flow.model"/>
+ </element>
+</define>
+
+<define name="object.attlist">
+ <ref name="Common.attrib"/>
+ <optional>
+ <attribute name="href">
+ <ref name="URI.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="declare">
+ <value>declare</value>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="classid">
+ <ref name="URI.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="codebase">
+ <ref name="URI.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="data">
+ <ref name="URI.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="type">
+ <ref name="ContentType.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="codetype">
+ <ref name="ContentType.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="archive">
+ <ref name="URIs.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="standby">
+ <ref name="Text.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="height">
+ <ref name="Length.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="width">
+ <ref name="Length.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="name"/>
+ </optional>
+ <optional>
+ <attribute name="tabindex">
+ <ref name="Number.datatype"/>
+ </attribute>
+ </optional>
+</define>
+
+<define name="Inline.class" combine="choice">
+ <ref name="object"/>
+</define>
+
+</grammar>
\ No newline at end of file
Added: lenya/contributions/2_0_X/modules/quiz/resources/schemas/param.rng
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/modules/quiz/resources/schemas/param.rng?rev=996291&view=auto
==============================================================================
--- lenya/contributions/2_0_X/modules/quiz/resources/schemas/param.rng (added)
+++ lenya/contributions/2_0_X/modules/quiz/resources/schemas/param.rng Sun Sep 12 10:55:10 2010
@@ -0,0 +1,52 @@
+<?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.
+-->
+
+<!-- $Id: param.rng 42702 2004-03-13 12:34:18Z gregor $ -->
+
+<!-- Param Module -->
+<grammar xmlns="http://relaxng.org/ns/structure/1.0">
+
+<define name="param">
+ <element name="param">
+ <ref name="param.attlist"/>
+ </element>
+</define>
+
+<define name="param.attlist">
+ <ref name="id.attrib"/>
+ <attribute name="name"/>
+ <optional>
+ <attribute name="value"/>
+ </optional>
+ <optional>
+ <attribute name="valuetype">
+ <choice>
+ <value>data</value>
+ <value>ref</value>
+ <value>object</value>
+ </choice>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="type">
+ <ref name="ContentType.datatype"/>
+ </attribute>
+ </optional>
+</define>
+
+</grammar>
\ No newline at end of file
Added: lenya/contributions/2_0_X/modules/quiz/resources/schemas/pres.rng
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/modules/quiz/resources/schemas/pres.rng?rev=996291&view=auto
==============================================================================
--- lenya/contributions/2_0_X/modules/quiz/resources/schemas/pres.rng (added)
+++ lenya/contributions/2_0_X/modules/quiz/resources/schemas/pres.rng Sun Sep 12 10:55:10 2010
@@ -0,0 +1,126 @@
+<?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.
+-->
+
+<!-- $Id: pres.rng 42702 2004-03-13 12:34:18Z gregor $ -->
+
+<grammar xmlns="http://relaxng.org/ns/structure/1.0">
+
+<define name="hr">
+ <element name="hr">
+ <ref name="hr.attlist"/>
+ </element>
+</define>
+
+<define name="hr.attlist">
+ <ref name="Common.attrib"/>
+</define>
+
+<define name="Block.class" combine="choice">
+ <ref name="hr"/>
+</define>
+
+<define name="b">
+ <element name="b">
+ <ref name="b.attlist"/>
+ <ref name="Inline.model"/>
+ </element>
+</define>
+
+<define name="b.attlist">
+ <ref name="Common.attrib"/>
+</define>
+
+<define name="big">
+ <element name="big">
+ <ref name="big.attlist"/>
+ <ref name="Inline.model"/>
+ </element>
+</define>
+
+<define name="big.attlist">
+ <ref name="Common.attrib"/>
+</define>
+
+<define name="i">
+ <element name="i">
+ <ref name="i.attlist"/>
+ <ref name="Inline.model"/>
+ </element>
+</define>
+
+<define name="i.attlist">
+ <ref name="Common.attrib"/>
+</define>
+
+<define name="small">
+ <element name="small">
+ <ref name="small.attlist"/>
+ <ref name="Inline.model"/>
+ </element>
+</define>
+
+<define name="small.attlist">
+ <ref name="Common.attrib"/>
+</define>
+
+<define name="sub">
+ <element name="sub">
+ <ref name="sub.attlist"/>
+ <ref name="Inline.model"/>
+ </element>
+</define>
+
+<define name="sub.attlist">
+ <ref name="Common.attrib"/>
+</define>
+
+<define name="sup">
+ <element name="sup">
+ <ref name="sup.attlist"/>
+ <ref name="Inline.model"/>
+ </element>
+</define>
+
+<define name="sup.attlist">
+ <ref name="Common.attrib"/>
+</define>
+
+<define name="tt">
+ <element name="tt">
+ <ref name="tt.attlist"/>
+ <ref name="Inline.model"/>
+ </element>
+</define>
+
+<define name="tt.attlist">
+ <ref name="Common.attrib"/>
+</define>
+
+<define name="Inline.class" combine="choice">
+ <choice>
+ <ref name="b"/>
+ <ref name="big"/>
+ <ref name="i"/>
+ <ref name="small"/>
+ <ref name="sub"/>
+ <ref name="sup"/>
+ <ref name="tt"/>
+ </choice>
+</define>
+
+</grammar>
\ No newline at end of file
Added: lenya/contributions/2_0_X/modules/quiz/resources/schemas/question.rng
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/modules/quiz/resources/schemas/question.rng?rev=996291&view=auto
==============================================================================
--- lenya/contributions/2_0_X/modules/quiz/resources/schemas/question.rng (added)
+++ lenya/contributions/2_0_X/modules/quiz/resources/schemas/question.rng Sun Sep 12 10:55:10 2010
@@ -0,0 +1,101 @@
+<?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.
+-->
+
+<!-- question Module -->
+<grammar xmlns="http://relaxng.org/ns/structure/1.0">
+
+ <define name="question">
+ <element name="question">
+ <ref name="question.attlist"/>
+ <ref name="Flow.model"/>
+ <oneOrMore>
+ <ref name="answer"/>
+ </oneOrMore>
+ <optional>
+ <ref name="note"/>
+ </optional>
+ </element>
+ </define>
+
+ <define name="question.attlist">
+ <ref name="Common.attrib"/>
+ </define>
+
+ <define name="answer">
+ <element name="answer">
+ <ref name="answer.attlist"/>
+ <ref name="Flow.model"/>
+ <ref name="text"/>
+ <optional>
+ <ref name="explanation"/>
+ </optional>
+ </element>
+ </define>
+
+ <define name="answer.attlist">
+ <optional>
+ <attribute name="points"></attribute>
+ </optional>
+ <ref name="Common.attrib"/>
+ </define>
+
+ <define name="text">
+ <element name="text">
+ <ref name="text.attlist"/>
+ <ref name="Flow.model"/>
+ </element>
+ </define>
+
+ <define name="text.attlist">
+ <ref name="Common.attrib"/>
+ </define>
+
+ <define name="explanation">
+ <element name="explanation">
+ <ref name="explanation.attlist"/>
+ <ref name="Flow.model"/>
+ </element>
+ </define>
+
+ <define name="explanation.attlist">
+ <ref name="Common.attrib"/>
+ </define>
+
+ <define name="note">
+ <element name="note">
+ <ref name="note.attlist"/>
+ <ref name="Flow.model"/>
+ </element>
+ </define>
+
+ <define name="note.attlist">
+ <ref name="Common.attrib"/>
+ </define>
+
+ <define name="question.class">
+ <choice>
+ <ref name="question"/>
+ </choice>
+ </define>
+
+
+ <define name="Block.class" combine="choice">
+ <ref name="question.class"/>
+ </define>
+
+</grammar>
\ No newline at end of file
Added: lenya/contributions/2_0_X/modules/quiz/resources/schemas/quiz.rng
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/modules/quiz/resources/schemas/quiz.rng?rev=996291&view=auto
==============================================================================
--- lenya/contributions/2_0_X/modules/quiz/resources/schemas/quiz.rng (added)
+++ lenya/contributions/2_0_X/modules/quiz/resources/schemas/quiz.rng Sun Sep 12 10:55:10 2010
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ 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.
+-->
+
+<grammar ns="http://www.w3.org/1999/xhtml" xmlns="http://relaxng.org/ns/structure/1.0" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0" xmlns:ukf="http://www.ukl.uni-freiburg.de/lenya/document/1.0">
+ <start>
+ <ref name="quiz"/>
+ </start>
+
+ <include href="fallback://lenya/modules/quiz/resources/schemas/datatypes.rng"/>
+ <include href="fallback://lenya/modules/quiz/resources/schemas/attribs.rng"/>
+ <include href="fallback://lenya/modules/quiz/resources/schemas/text.rng"/>
+ <include href="fallback://lenya/modules/quiz/resources/schemas/hypertext.rng"/>
+ <include href="fallback://lenya/modules/quiz/resources/schemas/list.rng"/>
+ <include href="fallback://lenya/modules/quiz/resources/schemas/param.rng"/>
+ <include href="fallback://lenya/modules/quiz/resources/schemas/object.rng"/>
+ <include href="fallback://lenya/modules/quiz/resources/schemas/pres.rng"/>
+ <include href="fallback://lenya/modules/quiz/resources/schemas/image.rng"/>
+ <include href="fallback://lenya/modules/quiz/resources/schemas/inlstyle.rng"/>
+ <include href="fallback://lenya/modules/quiz/resources/schemas/target.rng"/>
+ <include href="fallback://lenya/modules/quiz/resources/schemas/iframe.rng"/>
+ <include href="fallback://lenya/modules/quiz/resources/schemas/form.rng"/>
+ <include href="fallback://lenya/modules/quiz/resources/schemas/nameident.rng"/>
+ <include href="fallback://lenya/modules/quiz/resources/schemas/table.rng"/>
+ <include href="fallback://lenya/modules/quiz/resources/schemas/csismap.rng"/>
+ <include href="fallback://lenya/modules/quiz/resources/schemas/question.rng"/>
+
+ <define name="quiz">
+ <element name="quiz">
+ <ref name="continuation"/>
+ <ref name="results"/>
+ <ref name="Block.model"/>
+ </element>
+ </define>
+
+ <define name="continuation">
+ <element name="continuation">
+ <attribute name="text">
+ <ref name="Text.datatype"/>
+ </attribute>
+ <attribute name="first">
+ <ref name="Text.datatype"/>
+ </attribute>
+ <attribute name="last">
+ <ref name="Text.datatype"/>
+ </attribute>
+ </element>
+ </define>
+
+ <define name="results">
+ <element name="results">
+ <oneOrMore>
+ <ref name="result"/>
+ </oneOrMore>
+ <ref name="text"/>
+ </element>
+ </define>
+
+ <define name="result">
+ <element name="result">
+ <attribute name="min">
+ <ref name="Number.datatype"/>
+ </attribute>
+ <attribute name="max">
+ <ref name="Number.datatype"/>
+ </attribute>
+ <ref name="Flow.model"/>
+ </element>
+ </define>
+</grammar>
Added: lenya/contributions/2_0_X/modules/quiz/resources/schemas/table.rng
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/modules/quiz/resources/schemas/table.rng?rev=996291&view=auto
==============================================================================
--- lenya/contributions/2_0_X/modules/quiz/resources/schemas/table.rng (added)
+++ lenya/contributions/2_0_X/modules/quiz/resources/schemas/table.rng Sun Sep 12 10:55:10 2010
@@ -0,0 +1,276 @@
+<?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.
+-->
+
+<!-- $Id: table.rng 42702 2004-03-13 12:34:18Z gregor $ -->
+
+<!-- Tables Module -->
+<!-- This builds on the basic tables module, unlike with the DTD
+implementation. -->
+<grammar xmlns="http://relaxng.org/ns/structure/1.0">
+
+<include href="basic-table.rng">
+
+ <define name="table">
+ <element name="table">
+ <ref name="table.attlist"/>
+ <optional>
+ <ref name="caption"/>
+ </optional>
+ <choice>
+ <zeroOrMore>
+ <ref name="col"/>
+ </zeroOrMore>
+ <zeroOrMore>
+ <ref name="colgroup"/>
+ </zeroOrMore>
+ </choice>
+ <choice>
+ <group>
+ <optional>
+ <ref name="thead"/>
+ </optional>
+ <optional>
+ <ref name="tfoot"/>
+ </optional>
+ <oneOrMore>
+ <ref name="tbody"/>
+ </oneOrMore>
+ </group>
+ <oneOrMore>
+ <ref name="tr"/>
+ </oneOrMore>
+ </choice>
+ </element>
+ </define>
+
+ <define name="th">
+ <element name="th">
+ <ref name="th.attlist"/>
+ <ref name="Flow.model"/>
+ </element>
+ </define>
+
+ <define name="td">
+ <element name="td">
+ <ref name="td.attlist"/>
+ <ref name="Flow.model"/>
+ </element>
+ </define>
+
+ <define name="CellHAlign.attrib">
+ <optional>
+ <attribute name="align">
+ <choice>
+ <value>left</value>
+ <value>center</value>
+ <value>right</value>
+ <value>justify</value>
+ <value>char</value>
+ </choice>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="char">
+ <ref name="Character.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="charoff">
+ <ref name="Length.datatype"/>
+ </attribute>
+ </optional>
+ </define>
+
+ <define name="CellVAlign.attrib">
+ <optional>
+ <attribute name="valign">
+ <choice>
+ <value>top</value>
+ <value>middle</value>
+ <value>bottom</value>
+ <value>baseline</value>
+ </choice>
+ </attribute>
+ </optional>
+ </define>
+
+ <define name="scope.attrib">
+ <optional>
+ <attribute name="scope">
+ <choice>
+ <value>row</value>
+ <value>col</value>
+ <value>rowgroup</value>
+ <value>colgroup</value>
+ </choice>
+ </attribute>
+ </optional>
+ </define>
+
+</include>
+
+<define name="table.attlist" combine="interleave">
+ <optional>
+ <attribute name="width">
+ <ref name="Length.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="border">
+ <ref name="Pixels.datatype"/>
+ </attribute>
+ </optional>
+ <ref name="frame.attrib"/>
+ <ref name="rules.attrib"/>
+ <optional>
+ <attribute name="cellspacing">
+ <ref name="Length.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="cellpadding">
+ <ref name="Length.datatype"/>
+ </attribute>
+ </optional>
+</define>
+
+<define name="col">
+ <element name="col">
+ <ref name="col.attlist"/>
+ </element>
+</define>
+
+<define name="col.attlist">
+ <ref name="Common.attrib"/>
+ <optional>
+ <attribute name="span">
+ <ref name="Number.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="width">
+ <ref name="MultiLength.datatype"/>
+ </attribute>
+ </optional>
+ <ref name="CellHAlign.attrib"/>
+ <ref name="CellVAlign.attrib"/>
+</define>
+
+<define name="colgroup">
+ <element name="colgroup">
+ <ref name="colgroup.attlist"/>
+ <zeroOrMore>
+ <ref name="col"/>
+ </zeroOrMore>
+ </element>
+</define>
+
+<define name="colgroup.attlist">
+ <ref name="Common.attrib"/>
+ <optional>
+ <attribute name="span">
+ <ref name="Number.datatype"/>
+ </attribute>
+ </optional>
+ <optional>
+ <attribute name="width">
+ <ref name="MultiLength.datatype"/>
+ </attribute>
+ </optional>
+ <ref name="CellHAlign.attrib"/>
+ <ref name="CellVAlign.attrib"/>
+</define>
+
+<define name="tbody">
+ <element name="tbody">
+ <ref name="tbody.attlist"/>
+ <oneOrMore>
+ <ref name="tr"/>
+ </oneOrMore>
+ </element>
+</define>
+
+<define name="tbody.attlist">
+ <ref name="Common.attrib"/>
+ <ref name="CellHAlign.attrib"/>
+ <ref name="CellVAlign.attrib"/>
+</define>
+
+<define name="thead">
+ <element name="thead">
+ <ref name="thead.attlist"/>
+ <oneOrMore>
+ <ref name="tr"/>
+ </oneOrMore>
+ </element>
+</define>
+
+<define name="thead.attlist">
+ <ref name="Common.attrib"/>
+ <ref name="CellHAlign.attrib"/>
+ <ref name="CellVAlign.attrib"/>
+</define>
+
+<define name="tfoot">
+ <element name="tfoot">
+ <ref name="tfoot.attlist"/>
+ <oneOrMore>
+ <ref name="tr"/>
+ </oneOrMore>
+ </element>
+</define>
+
+<define name="tfoot.attlist">
+ <ref name="Common.attrib"/>
+ <ref name="CellHAlign.attrib"/>
+ <ref name="CellVAlign.attrib"/>
+</define>
+
+<define name="frame.attrib">
+ <optional>
+ <attribute name="frame">
+ <choice>
+ <value>void</value>
+ <value>above</value>
+ <value>below</value>
+ <value>hsides</value>
+ <value>lhs</value>
+ <value>rhs</value>
+ <value>vsides</value>
+ <value>box</value>
+ <value>border</value>
+ </choice>
+ </attribute>
+ </optional>
+</define>
+
+<define name="rules.attrib">
+ <optional>
+ <attribute name="rules">
+ <choice>
+ <value>none</value>
+ <value>groups</value>
+ <value>rows</value>
+ <value>cols</value>
+ <value>all</value>
+ </choice>
+ </attribute>
+ </optional>
+</define>
+
+</grammar>
\ No newline at end of file
Added: lenya/contributions/2_0_X/modules/quiz/resources/schemas/target.rng
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/modules/quiz/resources/schemas/target.rng?rev=996291&view=auto
==============================================================================
--- lenya/contributions/2_0_X/modules/quiz/resources/schemas/target.rng (added)
+++ lenya/contributions/2_0_X/modules/quiz/resources/schemas/target.rng Sun Sep 12 10:55:10 2010
@@ -0,0 +1,54 @@
+<?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.
+-->
+
+<!-- $Id: target.rng 42702 2004-03-13 12:34:18Z gregor $ -->
+
+<!-- Target Module -->
+<grammar xmlns="http://relaxng.org/ns/structure/1.0">
+
+<define name="a.attlist" combine="interleave">
+ <ref name="target.attrib"/>
+</define>
+
+<define name="area.attlist" combine="interleave">
+ <ref name="target.attrib"/>
+</define>
+
+<define name="base.attlist" combine="interleave">
+ <ref name="target.attrib"/>
+</define>
+
+<define name="link.attrib" combine="interleave">
+ <ref name="target.attrib"/>
+</define>
+
+<define name="form.attlist" combine="interleave">
+ <ref name="target.attrib"/>
+</define>
+
+<define name="target.attrib">
+ <optional>
+ <attribute name="target">
+ <choice>
+ <value>_blank</value>
+ </choice>
+ </attribute>
+ </optional>
+</define>
+
+</grammar>
Added: lenya/contributions/2_0_X/modules/quiz/resources/schemas/text.rng
URL: http://svn.apache.org/viewvc/lenya/contributions/2_0_X/modules/quiz/resources/schemas/text.rng?rev=996291&view=auto
==============================================================================
--- lenya/contributions/2_0_X/modules/quiz/resources/schemas/text.rng (added)
+++ lenya/contributions/2_0_X/modules/quiz/resources/schemas/text.rng Sun Sep 12 10:55:10 2010
@@ -0,0 +1,357 @@
+<?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.
+-->
+
+<!-- $Id: text.rng 42702 2004-03-13 12:34:18Z gregor $ -->
+
+<!-- Text Module -->
+<grammar xmlns="http://relaxng.org/ns/structure/1.0">
+
+<define name="br">
+ <element name="br">
+ <ref name="br.attlist"/>
+ <empty/>
+ </element>
+</define>
+
+<define name="br.attlist">
+ <ref name="Core.attrib"/>
+</define>
+
+<define name="span">
+ <element name="span">
+ <ref name="span.attlist"/>
+ <ref name="Inline.model"/>
+ </element>
+</define>
+
+<define name="span.attlist">
+ <ref name="Common.attrib"/>
+</define>
+
+<define name="abbr">
+ <element name="abbr">
+ <ref name="abbr.attlist"/>
+ <ref name="Inline.model"/>
+ </element>
+</define>
+
+<define name="abbr.attlist">
+ <ref name="Common.attrib"/>
+</define>
+
+<define name="acronym">
+ <element name="acronym">
+ <ref name="acronym.attlist"/>
+ <ref name="Inline.model"/>
+ </element>
+</define>
+
+<define name="acronym.attlist">
+ <ref name="Common.attrib"/>
+</define>
+
+<define name="cite">
+ <element name="cite">
+ <ref name="cite.attlist"/>
+ <ref name="Inline.model"/>
+ </element>
+</define>
+
+<define name="cite.attlist">
+ <ref name="Common.attrib"/>
+</define>
+
+<define name="code">
+ <element name="code">
+ <ref name="code.attlist"/>
+ <ref name="Inline.model"/>
+ </element>
+</define>
+
+<define name="code.attlist">
+ <ref name="Common.attrib"/>
+</define>
+
+<define name="dfn">
+ <element name="dfn">
+ <ref name="dfn.attlist"/>
+ <ref name="Inline.model"/>
+ </element>
+</define>
+
+<define name="dfn.attlist">
+ <ref name="Common.attrib"/>
+</define>
+
+<define name="em">
+ <element name="em">
+ <ref name="em.attlist"/>
+ <ref name="Inline.model"/>
+ </element>
+</define>
+
+<define name="em.attlist">
+ <ref name="Common.attrib"/>
+</define>
+
+<define name="kbd">
+ <element name="kbd">
+ <ref name="kbd.attlist"/>
+ <ref name="Inline.model"/>
+ </element>
+</define>
+
+<define name="kbd.attlist">
+ <ref name="Common.attrib"/>
+</define>
+
+<define name="q">
+ <element name="q">
+ <ref name="q.attlist"/>
+ <ref name="Inline.model"/>
+ </element>
+</define>
+
+<define name="q.attlist">
+ <ref name="Common.attrib"/>
+ <optional>
+ <attribute name="cite">
+ <ref name="URI.datatype"/>
+ </attribute>
+ </optional>
+</define>
+
+<define name="samp">
+ <element name="samp">
+ <ref name="samp.attlist"/>
+ <ref name="Inline.model"/>
+ </element>
+</define>
+
+<define name="samp.attlist">
+ <ref name="Common.attrib"/>
+</define>
+
+<define name="strong">
+ <element name="strong">
+ <ref name="strong.attlist"/>
+ <ref name="Inline.model"/>
+ </element>
+</define>
+
+<define name="strong.attlist">
+ <ref name="Common.attrib"/>
+</define>
+
+<define name="var">
+ <element name="var">
+ <ref name="var.attlist"/>
+ <ref name="Inline.model"/>
+ </element>
+</define>
+
+<define name="var.attlist">
+ <ref name="Common.attrib"/>
+</define>
+
+<define name="div">
+ <element name="div">
+ <ref name="div.attlist"/>
+ <ref name="Flow.model"/>
+ </element>
+</define>
+
+<define name="div.attlist">
+ <ref name="Common.attrib"/>
+</define>
+
+<define name="p">
+ <element name="p">
+ <ref name="p.attlist"/>
+ <ref name="Inline.model"/>
+ </element>
+</define>
+
+<define name="p.attlist">
+ <ref name="Common.attrib"/>
+</define>
+
+<define name="address">
+ <element name="address">
+ <ref name="address.attlist"/>
+ <ref name="Inline.model"/>
+ </element>
+</define>
+
+<define name="address.attlist">
+ <ref name="Common.attrib"/>
+</define>
+
+<define name="blockquote">
+ <element name="blockquote">
+ <ref name="blockquote.attlist"/>
+ <ref name="Block.model"/>
+ </element>
+</define>
+
+<define name="blockquote.attlist">
+ <ref name="Common.attrib"/>
+ <optional>
+ <attribute name="cite">
+ <ref name="URI.datatype"/>
+ </attribute>
+ </optional>
+</define>
+
+<define name="pre">
+ <element name="pre">
+ <ref name="pre.attlist"/>
+ <ref name="Inline.model"/>
+ </element>
+</define>
+
+<define name="pre.attlist">
+ <ref name="Common.attrib"/>
+ <optional>
+ <attribute name="xml:space">
+ <value>preserve</value>
+ </attribute>
+ </optional>
+</define>
+
+<define name="h1">
+ <element name="h1">
+ <ref name="Heading.attrib"/>
+ <ref name="Heading.content"/>
+ </element>
+</define>
+
+<define name="h2">
+ <element name="h2">
+ <ref name="Heading.attrib"/>
+ <ref name="Heading.content"/>
+ </element>
+</define>
+
+<define name="h3">
+ <element name="h3">
+ <ref name="Heading.attrib"/>
+ <ref name="Heading.content"/>
+ </element>
+</define>
+
+<define name="h4">
+ <element name="h4">
+ <ref name="Heading.attrib"/>
+ <ref name="Heading.content"/>
+ </element>
+</define>
+
+<define name="h5">
+ <element name="h5">
+ <ref name="Heading.attrib"/>
+ <ref name="Heading.content"/>
+ </element>
+</define>
+
+<define name="h6">
+ <element name="h6">
+ <ref name="Heading.attrib"/>
+ <ref name="Heading.content"/>
+ </element>
+</define>
+
+<define name="Heading.attrib">
+ <ref name="Common.attrib"/>
+</define>
+
+<define name="Heading.content">
+ <ref name="Inline.model"/>
+</define>
+
+<define name="Heading.class">
+ <choice>
+ <ref name="h1"/>
+ <ref name="h2"/>
+ <ref name="h3"/>
+ <ref name="h4"/>
+ <ref name="h5"/>
+ <ref name="h6"/>
+ </choice>
+</define>
+
+<define name="Block.class">
+ <choice>
+ <ref name="address"/>
+ <ref name="blockquote"/>
+ <ref name="div"/>
+ <ref name="p"/>
+ <ref name="pre"/>
+ <ref name="Heading.class"/>
+ </choice>
+</define>
+
+<define name="Inline.class">
+ <choice>
+ <ref name="abbr"/>
+ <ref name="acronym"/>
+ <ref name="br"/>
+ <ref name="cite"/>
+ <ref name="code"/>
+ <ref name="dfn"/>
+ <ref name="em"/>
+ <ref name="kbd"/>
+ <ref name="q"/>
+ <ref name="samp"/>
+ <ref name="span"/>
+ <ref name="strong"/>
+ <ref name="var"/>
+ </choice>
+</define>
+
+<define name="Inline.model">
+ <zeroOrMore>
+ <choice>
+ <text/>
+ <ref name="Inline.class"/>
+ </choice>
+ </zeroOrMore>
+</define>
+
+<!-- This is redefined by the legacy module to include inlines. -->
+<define name="Block.mix">
+ <ref name="Block.class"/>
+</define>
+
+<define name="Block.model">
+ <oneOrMore>
+ <ref name="Block.mix"/>
+ </oneOrMore>
+</define>
+
+<define name="Flow.model">
+ <zeroOrMore>
+ <choice>
+ <text/>
+ <ref name="Inline.class"/>
+ <ref name="Block.class"/>
+ </choice>
+ </zeroOrMore>
+</define>
+
+</grammar>
\ No newline at end of file