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:07:38 GMT
Eric Rodriguez wrote:

> Gregor J. Rothfuss wrote:
>> Eric Rodriguez wrote:
>>> 1) Is "mypub/xslt/xhtml2xhtml.xsl" always called or is Lenya 
>>> defaulting the doctype to xhtml???
>> no. the doctype is chosen by looking into the file that matches the 
>> request, getting the root namespace, and comparing that with the 
>> definitions in doctypes.xmap. make sure to follow the naming 
>> conventions throughout. if you have defined the name of your doctype 
>> as customDoctype then thats what lenya expects.
>> is that the case for you?
> If I understand it correctly, my request is sent to 
> "mypub/content/rc/view.xsp" and this XSP searches the root namespace of 
> my sample document. Is this right? So if in my sample xml I have 
> xmlns:card="http://anydomain.com/card" then view.xsp takes the string 
> "card" and then goes to mypub/xslt and looks for card2xhtml.xsl it 
> processes it and the result will later be transformed by page2html.xsl - 
> Is that more or less the process?

view.xsp has nothing to do with the doctype resolving, its purpose
is to generate a revision from the revision history.

The doctype is resolved in parameter-doctype.xmap using the

-- Andreas

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

View raw message