lenya-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Hartmann <andr...@apache.org>
Subject Re: Custom Doctype
Date Fri, 11 Jun 2004 12:12:51 GMT
Eric Rodriguez wrote:

[...]
>>
> In parameter-doctype.xmap I have defined the following:
> <map:actions>
>    <map:action logger="sitemap.action.sourcetype" name="sourcetype"  
> src="org.apache.forrest.components.sourcetype.SourceTypeAction">
>        <sourcetype name="xhtml">
>          <document-element namespace="http://www.w3.org/1999/xhtml" />
>        </sourcetype>
>       <sourcetype name="card">
>          <document-element local-name="card" />
>        </sourcetype>
>    </map:action>
> </map:actions>
> 
> "card" being of course the name of my doctype which corresponds to 
> card.rng and card2xhtml.rng and to the namespace 
> xmlns:card="http://anydomain.com/card"

What do you mean with "corresponds to the namespace"?

> which I use on both the sample 
> xml and in the xsl file.

And the local name of your document element is "card"?
BTW, I'd recommend to use the namespace URI for sourcetype
resolving.

-- Andreas


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


Mime
View raw message