> From: Kenny Chow [mailto:[EMAIL PROTECTED]]
> 
> 
> cocoon
>   /project
>    browse.xsp
>    browse-test.xsl
> 
> sitemap
> <map:match pattern="browse.xsp">
>  <map:generate  src="browse.xsp"/>
>  <map:serialize/>
> </map:match>
> 
> browse.xsp generates the following xml file
> <?xml version="1.0" encoding="UTF-8"?>
> <page xmlns:xsp="http://apache.org/xsp";
> xmlns:xspdoc="http://apache.org/cocoon/XSPDoc/v1";
> xmlns:esql="http://apache.org/cocoon/SQL/v2";
> xmlns:card="http://deibcres.com/card/1.0";>
> 
> <title>Browse card</title>
> 
> <content>
> 
>    <card>
>      <author>someAuthor</author>
>    </card>
> </content>
> <!-- end browse.xsp -->
> 
> The generation is ok, but once I add
> <map:transformer src="browse-test.xsl"/>


<map:transform src="browse-test.xsl"/>



> to the sitemap, "Stylesheet directed termination"
> occurs and the error.log doesn't report the actual
> error.

It does. Search for sentence:

    Sitemap contains invalid tag


Vadim

 
> browse-test.xsl looks like this
> <?xml version="1.0"?>
>   <xsl:stylesheet
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
>     version="1.0">
> 
>   <xsl:template match="content">
>         <xsl:apply-templates/>
>   </xsl:template>
> 
> 
>   <xsl:template match="card">
>     <h1><xsl:value-of select="author"/></h1>
>   </xsl:template>
> <!-- end browse-test.xsl -->
> 
> Please give a hint if anything here is/are wrong and
> thanks for getting this far. :)
> 


---------------------------------------------------------------------
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