Hi Volker,

Declare in your xsl file the request's namespace for example:

<xsl:stylesheet ...
xmlns:req="http://xml.apache.org/cocoon/requestgenerator/2.0"; ...>

and then refer to request's elements with defined prefix, ex:
req:requestParameters

    Best regards
        Roman

Volker Schneider wrote:

> Hi Matthieu and all cocoon user colleagues,
>
> I looked into the archives as well, found something but that doesn't help at
> all. There is a link to a xsl-file that does not contain any xsl-tag. I
> don't know what the answer is and I stuck at this problem in a very urgent
> project.
>
> Please help me!
>
> 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]>


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