beyaNet Consultancy wrote:

Hi,

1. is it possible to apply a stylesheet to a *.jx file like you can to xsp?

<map:match pattern="*.jx">
<map:generate type="jx" src="jx/{1}.jx"/>
<map:transform type="xslt" src="style/main.xsl"/>
<map:serialize type="xhtml"/>
</map:match>

If not, why? Surely not being able to apply a stylesheet to any document runs away from the xml/xslt ethos of cocoon!

2. can you aggregate *.jx files

<map:match pattern="registerd">
<map:aggregate element="main">
<map:part src="context://beyarecords/jx/login.jx"/>
<map:part src="cocoon:/support/contract-summary"/>
<map:part src="context://beyarecords/content/adv-xyz-01.xml"/>
<map:part src="cocoon:/support/banner"/>
</map:aggregate>


<map:transform type="xslt" src="style/home-page.xsl"/> <map:call resource="serialize"/> </map:match>

In the above example, the login.jx file is not rendered to the screen, why?


If you use "context:/" the physical available file is read and *not* the content of an URI provided by Cocoon.

--
Reinhard


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to