Dear Wiki user, You have subscribed to a wiki page or wiki category on "Lenya Wiki" for change notification.
The following page has been changed by MarcDM: http://wiki.apache.org/lenya/AddingCustomDocType ------------------------------------------------------------------------------ It might make sense for example to introduce resource types for well known XML schemas such as: * RSS + * DocBook [http://docbook.sourceforge.net/] + * NewsML, SportsML, NITF [http://nitf.org/] [http://www.iptc.org] + * FOAF ? [http://xmlns.com/foaf/0.1/] * ... (someone fill more examples please!) It may also make sense to introduce resource types for custom XML schemas such as @@ -31, +34 @@ Choose a name for the resource type ID: ''myresourcetype'' == Define the resource type ID == - Define the resource type ID in {{{mypub/config/doctypes/doctypes.xconf}}} Note that resource types were historically called doctypes, thus the names of the config files. + Define the resource type ID in {{{mypub/config/doctypes/doctypes.xconf}}} Note that resource types were historically called doctypes, thus the names of the config files. {{{<doctypes> <!-- Here is the document ID --> <doc type="myresourcetype"> @@ -45, +48 @@ <creator src="org.apache.lenya.cms.authoring.DefaultBranchCreator"> <!-- this is the sample file that is used when creating a new instance of this resource type. Can be found in config/doctypes/samples --> <sample-name>myresourcetype.xml</sample-name> - </creator> + </creator> <!-- These tasks here refer to ant tasks that should be called for this resource type. For instance, you can have a special publish task. --> <!-- tasks are defined in mypub/config/tasks/tasks.xconf --> <tasks> @@ -141, +144 @@ The sample file will be used as a template. If you create a new document with this resource type a copy of the sample file will be placed as a starting point. Therefore it makes sense to set some good defaults here. {{{<?xml version="1.0" encoding="UTF-8"?> - <html xmlns="http://www.w3.org/1999/xhtml" + <html xmlns="http://www.w3.org/1999/xhtml" - xmlns:xhtml="http://www.w3.org/1999/xhtml" + xmlns:xhtml="http://www.w3.org/1999/xhtml" - xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" - xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0" + xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0" - xhtml:dummy="FIXME:keepNamespace" dc:dummy="FIXME:keepNamespace" + xhtml:dummy="FIXME:keepNamespace" dc:dummy="FIXME:keepNamespace" lenya:dummy="FIXME:keepNamespace" dcterms:dummy="FIXME:keepNamespace"> <lenya:meta> <dc:title>dctitle</dc:title> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
