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