You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by de...@lenya.apache.org on 2005/03/11 18:42:08 UTC

[Lenya Wiki] Updated: AddingCustomDocType

   Date: 2005-03-11T09:42:08
   Editor: ChristianEgli
   Wiki: Lenya Wiki
   Page: AddingCustomDocType
   URL: http://wiki.apache.org/lenya/AddingCustomDocType

   The resource type can now be checked in the overview page of the site are. 

Change Log:

------------------------------------------------------------------------------
@@ -127,25 +127,11 @@
 
 The parameter-doctype.xmap allows Lenya to determine the resource type of any URI. the mapping provided in here allows to mix and match resource types freely. It makes use of the [http://xml.apache.org/forrest/cap.html Source Type action]. There are several ways to identify a resource type, such as by its root tag, the namespace of its root element or its schema. Please note that the name of the resource type you specify here is used throughout Lenya as a naming convention, for instance for the resourcetype2xhtml.xsl.
 
-The root-tag is just the doctype within your publication (i.e., 'homepage', if you have a homepage.rng doctype definition).  For more background, see:   http://forrest.apache.org/docs/cap.html
+The root-tag is just the doctype within your publication (i.e., 'homepage', if you have a homepage.rng doctype definition).  For more background, see:  http://forrest.apache.org/docs/cap.html
 
 For great examples of complex custom types, please also go to http://www.wyona.org and do a Subversion update to download the example publication (Univ. of Zurich and others).
 
-Many problems with resource types not rendering correctly result from this matcher not recognizing the resource type and therefore using the default. So pay special attention to this.
-
-You can debug the resource type by putting some lines into page2xhtml:
-
-{{{
-<xsl:param name="document-type"/>
-
-...
-
-<a href="{$document-type}">Dummy</a>
-}}}
-
-If you move the mouse over the Dummy link you will see the resource type as the last element of the URL.
-
-Note: This is dirty hack just for debugging. 
+Many problems with resource types not rendering correctly result from this matcher not recognizing the resource type and therefore using the default. So pay special attention to this. Check the overview page in the site area where it will tell you what resource type the document has.
 
 == Sample File ==
 Add a sample file: {{{mypub/config/doctypes/samples/myresourcetype.xml}}}

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