Hi Matthieu,

I don't find this a silly question, because I have exactly this problem and
I'm searching a solution for hours. Please tell me the solution.

Best regards
- Volker -

-----Original Message-----
From: Matthieu Benéteau [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 21. März 2002 19:10
To: Cocoon-Users
Subject: RE: XML namespaces and result of RequestGenerator


Sorry, this was a silly question, and I found the answer in the archives.
My mistake.

Matthieu



> -----Message d'origine-----
> De : Matthieu Benéteau [mailto:[EMAIL PROTECTED]]
> Envoyé : jeudi 21 mars 2002 18:46
> Ŕ : Cocoon-Users
> Objet : XML namespaces and result of RequestGenerator
>
>
> Hi,
>
> I have a little but annoying problem with the result of the
> RequestGenerator : during the XSL transformation I can't match
> any of the request elements (I can't even match the root
> "request" element).
>
>
> For instance :
>
>   <?xml version="1.0" encoding="iso-8859-1"?>
>   <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
>
>     <xsl:template match="/">
>       <one>
>         <xsl:value-of select="request/@target"/>
>         <xsl:apply-templates
> select="request/requestParameters/parameter"/>
>         <xsl:apply-templates/>
>       </one>
>     </xsl:template>
>
>     <xsl:template match="parameter">
>       <content>inside parameter body</content>
>     </xsl:template>
>
>   </xsl:stylesheet>
>
> will result in an empty element : <one/>.
>
>
> But on the other hand, if I use the following template :
>
>     <!-- by default, copy everything as is -->
>     <xsl:template match="@*|node()">
>       <xsl:copy>
>         <xsl:apply-templates select="@*|node()"/>
>       </xsl:copy>
>     </xsl:template>
>
> the "one" element contains the whole request.
>
>
> I suppose it's a namespace problem. The transformer doesn't seem
> to match elements with the
> xmlns="http://xml.apache.org/cocoon/requestgenerator/2.0";
> namespace declaration.
>
> Has anyone an idea ?
>
>
> Matthieu
>


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


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