Hi Heather,
I don't correctly understand your problem. In in an XSLT you put some
html (or any other XML) not in the xsl: namespace, it will go into the
output, is the way it has to work.

For example :

<xsl:template match="/person">
  <div>
    <p>The name is <xsl:value-of select="name"/></p>
    <p>And bla bla bla</p>
  </div>
</xsl:template>

The correct output for an input like :

<person>
  <name>Simone Gianni</name>
</person>

Will be :
<div>
  <p>The name is Simone Gianni</p>
  <p>And bla bla bla</p>
</div>

That is the correct way for XSLT to work.

Maybe I'm not correctly understanding your point :)

Simone


Heather Rankin wrote:
> Hi,
>
> I'm a newbie. Using Cocoon 2.1.11 and the following simple pipeline:
>
> <map:match pattern="submit-url">       
>       <map:generate src="{request-param:url}" type="html" />        
>       <map:transform src="stylesheets/form-wrapper.xsl" type="xslt"/>
>       <map:serialize type="xhtml" />
> </map:match>
>
> I noticed some strange XSLT behaviour where, on a failed template match,
> the XSL appears to reference *itself* as the input XML doc. In other
> words, let's say I have this xsl template:
>
> <xsl:template match="/">
> <p><xsl:apply-templates select="html/head/title"></p>
> <p>some more stuff</p>
> </xsl:template>
>
> The apply-templates fails because I haven't included the xhtml namespace
> in my xpath. But instead of just producing nothing, I get a fragment of
> the xsl template in the serialised output that looks something like
> this:
>
> </p>
> <p>some more stuff</p>
>
> Bizarre? If I correct the template and reference the xhtml namespace
> properly - no problem. I just thought it was strange that the XSL would
> seemingly call itself like this... Maybe I've observed things wrong?
> Could anyone clarify?
>
> Heather
>
> http://www.bbc.co.uk/
> This e-mail (and any attachments) is confidential and may contain personal 
> views which are not the views of the BBC unless specifically stated.
> If you have received it in error, please delete it from your system.
> Do not use, copy or disclose the information in any way nor act in reliance 
> on it and notify the sender immediately.
> Please note that the BBC monitors e-mails sent or received.
> Further communication will signify your consent to this.
>                                       
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>   


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

Reply via email to