Hi, Add the request namespace declaration: xmlns:request="http://xml.apache.org/cocoon/requestgenerator/2.0" and try <xsl:value-of select="request:request/@target"/>
HTH, Michael > -----Original Message----- > From: Volker Schneider [mailto:[EMAIL PROTECTED]] > Sent: woensdag 27 maart 2002 10:04 > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: URGENT!!! :RE: XML namespaces and result of RequestGenerator > > > 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]>