You are viewing a plain text version of this content. The canonical link for it is here.
Posted to doxia-commits@maven.apache.org by vs...@apache.org on 2007/08/21 14:57:46 UTC
svn commit: r568106 - in
/maven/doxia/doxia/trunk/doxia-modules/doxia-module-fml: pom.xml
src/main/java/org/apache/maven/doxia/module/fml/model/ src/main/mdo/
src/main/mdo/fml.mdo
Author: vsiveton
Date: Tue Aug 21 05:57:45 2007
New Revision: 568106
URL: http://svn.apache.org/viewvc?rev=568106&view=rev
Log:
DOXIA-136: Create an FML DTD or XSD
o removed model classes and generated them with modello
o updated the pom to include modello stuff
Added:
maven/doxia/doxia/trunk/doxia-modules/doxia-module-fml/src/main/mdo/
maven/doxia/doxia/trunk/doxia-modules/doxia-module-fml/src/main/mdo/fml.mdo
Removed:
maven/doxia/doxia/trunk/doxia-modules/doxia-module-fml/src/main/java/org/apache/maven/doxia/module/fml/model/
Modified:
maven/doxia/doxia/trunk/doxia-modules/doxia-module-fml/pom.xml
Modified: maven/doxia/doxia/trunk/doxia-modules/doxia-module-fml/pom.xml
URL: http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-modules/doxia-module-fml/pom.xml?rev=568106&r1=568105&r2=568106&view=diff
==============================================================================
--- maven/doxia/doxia/trunk/doxia-modules/doxia-module-fml/pom.xml (original)
+++ maven/doxia/doxia/trunk/doxia-modules/doxia-module-fml/pom.xml Tue Aug 21 05:57:45 2007
@@ -1,4 +1,27 @@
-<?xml version="1.0"?><project>
+<?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.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
<artifactId>doxia-modules</artifactId>
<groupId>org.apache.maven.doxia</groupId>
@@ -8,4 +31,39 @@
<artifactId>doxia-module-fml</artifactId>
<name>Doxia :: FML Module</name>
<description>A Doxia module for FML source documents.</description>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.modello</groupId>
+ <artifactId>modello-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>descriptor</id>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>java</goal>
+ <goal>xsd</goal>
+ </goals>
+ <configuration>
+ <model>src/main/mdo/fml.mdo</model>
+ <version>1.0.0</version>
+ </configuration>
+ </execution>
+ <execution>
+ <id>descriptor-site</id>
+ <phase>pre-site</phase>
+ <goals>
+ <goal>xdoc</goal>
+ <goal>xsd</goal>
+ </goals>
+ <configuration>
+ <model>src/main/mdo/fml.mdo</model>
+ <version>1.0.0</version>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
</project>
Added: maven/doxia/doxia/trunk/doxia-modules/doxia-module-fml/src/main/mdo/fml.mdo
URL: http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-modules/doxia-module-fml/src/main/mdo/fml.mdo?rev=568106&view=auto
==============================================================================
--- maven/doxia/doxia/trunk/doxia-modules/doxia-module-fml/src/main/mdo/fml.mdo (added)
+++ maven/doxia/doxia/trunk/doxia-modules/doxia-module-fml/src/main/mdo/fml.mdo Tue Aug 21 05:57:45 2007
@@ -0,0 +1,157 @@
+<?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.
+-->
+
+<model>
+ <id>fml</id>
+ <name>Fml</name>
+ <description><![CDATA[
+ <p>This is a reference for the FML (FAQ Markup Language) descriptor used in Maven Doxia.</p>
+ <p>An XSD is available at:</p>
+ <ul>
+ <li><a href="http://maven.apache.org/xsd/fml-1.0.0.xsd">http://maven.apache.org/xsd/fml-1.0.0.xsd</a> for Doxia 1.0.</li>
+ </ul>
+ ]]></description>
+ <defaults>
+ <default>
+ <key>package</key>
+ <value>org.apache.maven.doxia.module.fml.model</value>
+ </default>
+ </defaults>
+ <classes>
+ <class rootElement="true" xml.tagName="faqs">
+ <name>Faqs</name>
+ <description><![CDATA[
+ The <code><faqs></code> element is the root of the FML descriptor.
+ The following table lists all of the possible child elements.
+ ]]></description>
+ <version>1.0.0</version>
+ <fields>
+ <field xml.attribute="true">
+ <name>title</name>
+ <description><![CDATA[
+ The title name of this FAQ.
+ ]]></description>
+ <version>1.0.0</version>
+ <type>String</type>
+ <defaultValue>FAQ</defaultValue>
+ <identifier>true</identifier>
+ </field>
+ <field xml.attribute="true">
+ <name>toplink</name>
+ <description><![CDATA[
+ Boolean to generate optionally [top] links.
+ ]]></description>
+ <version>1.0.0</version>
+ <type>boolean</type>
+ <defaultValue>true</defaultValue>
+ <identifier>true</identifier>
+ </field>
+ <field xml.listStyle="flat">
+ <name>parts</name>
+ <description><![CDATA[
+ List of FAQ part.
+ ]]></description>
+ <version>1.0.0</version>
+ <association>
+ <type>Part</type>
+ <multiplicity>*</multiplicity>
+ </association>
+ <identifier>true</identifier>
+ </field>
+ </fields>
+ </class>
+ <class>
+ <name>Part</name>
+ <description><![CDATA[
+ FAQ part.
+ ]]></description>
+ <version>1.0.0</version>
+ <fields>
+ <field xml.attribute="true">
+ <name>id</name>
+ <version>1.0.0</version>
+ <description><![CDATA[
+ The identifier of the part.
+ ]]></description>
+ <type>String</type>
+ <identifier>true</identifier>
+ </field>
+ <field>
+ <name>title</name>
+ <version>1.0.0</version>
+ <description><![CDATA[
+ The title of the FAQ part.
+ ]]></description>
+ <type>String</type>
+ <identifier>true</identifier>
+ </field>
+ <field xml.listStyle="flat">
+ <name>faqs</name>
+ <description><![CDATA[
+ A list of FAQ.
+ ]]></description>
+ <version>1.0.0</version>
+ <association>
+ <type>Faq</type>
+ <multiplicity>*</multiplicity>
+ </association>
+ <identifier>true</identifier>
+ </field>
+ </fields>
+ </class>
+ <class>
+ <name>Faq</name>
+ <description><![CDATA[
+ A Faq.
+ ]]></description>
+ <version>1.0.0</version>
+ <fields>
+ <field xml.attribute="true">
+ <name>id</name>
+ <description><![CDATA[
+ The FAQ identifier.
+ ]]></description>
+ <version>1.0.0</version>
+ <type>String</type>
+ <identifier>true</identifier>
+ </field>
+ <field>
+ <name>question</name>
+ <description><![CDATA[
+ The question.
+ ]]></description>
+ <version>1.0.0</version>
+ <type>String</type>
+ <identifier>true</identifier>
+ </field>
+ <field>
+ <name>answer</name>
+ <description><![CDATA[
+ The answer.
+ ]]></description>
+ <version>1.0.0</version>
+ <type>String</type>
+ <identifier>true</identifier>
+ </field>
+ </fields>
+ </class>
+ </classes>
+</model>