> From: root [mailto:root] On Behalf Of Christian Zoffoli
> 
> Vadim Gritsenko wrote:
> >
> > > From: root [mailto:root] On Behalf Of Christian Zoffoli
> > >
> > > Hi to all.
> > >
> > > ...I tried to aggregate two stylesheets ...but the aggregated xsl
> > > doesn't work fine
> > >
> 
> [cut]
> 
> > It works perfectly! Exactly as it suppose to work. But this does not
> > help you - according to my feelings, you want to get valid XSL as
output
> > without inner <xsl:stylesheet>s. To achieve this, try following:
> >
> > <map:match pattern="step.xsl">
> >         <map:aggregate element="stylesheet"
> > ns="http://www.w3.org/1999/XSL/Transform"; prefix="xsl">
> >                 <map:part src="stylesheets/step0.xsl/"
> > strip-root="yes"/>
> >                 <map:part src="stylesheets/step1.xsl"
strip-root="yes"/>
> >         </map:aggregate>
> >         <map:serialize type="xml"/>
> > </map:match>
> >
> > Other available attributes for map:part:
> >         @element - specify element which encapsulates result
> >         @ns - to set namespace for this element
> >         @prefix - specify prefix to use for this element
> >
> > Other completely different options include:
> > 1. Post process result with XSLT
> > 2. Use X/CInclude transformer
> >
> > Hope this helps,
> > Vadim
> 
> 
> now there's another problem ... all is prefixed by "xsl"
> 
> -------------
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
> 
> 
> <xsl:template match="page"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
> 
> <xsl:html>
> <xsl:head/>
> <xsl:body>

This looks weird :)))

Do you have default namespace defined in you included stylsheets?
Like:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
                xmlns="http://www.w3.org/HTML/whatever";>


Disclaimer: I don't know exact solution, just suggesting the ways which
could help you to solve the problem.

Vadim


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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

Reply via email to