Joerg
On 02.12.2003 23:35, Tristan Lyons wrote:
I'm having a strange problem with a transformer. I'm trying to access an XML doc passed as a variable with a POST.
I use the RequestGenerator to generate an xml doc for the request (If I output that XML at this point it looks normal, see below). Then I transform that doc with req2xmlDoc.xls. The problem is that somehow all the XML tags have been removed!?
Anyone see where I've gone wrong? -Tristan
The response looks like this, ======================== <?xml version="1.0" encoding="ISO-8859-1"?> <topElement> localhost:8888Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007text/xml,application/xml,application/xhtml+xml,text/html;q=0.9 ,text/plain;q=0.8,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1en-us,en;q=0 .5gzip,deflateISO-8859-1,utf-8;q=0.7,*;q=0.7300keep-aliveapplication/x-www-f orm-urlencoded47<SomeTag>some text</SomeTag> </topElement>
The request (as it looks if I bypass the XSLT transform), ============================ <?xml version="1.0" encoding="ISO-8859-1"?> <h:request xmlns:h="http://apache.org/cocoon/request/2.0" target="/mySite/mirror" source=""> <h:requestHeaders> ... a bunch of headers, omitted for brevity </h:requestHeaders> <h:requestParameters> <h:parameter name="xmlDoc"> <h:value><SomeTag>some text</SomeTag></h:value> </h:parameter> </h:requestParameters> <h:requestAttributes/> <h:configurationParameters> <h:parameter name="test">yes</h:parameter> </h:configurationParameters> </h:request>
req2xmlDoc.xsl looks like (I've simplified this to try and figure out what the problem is) ============================= <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/"> <topElement> <xsl:value-of select="."/> </topElement> </xsl:template>
</xsl:stylesheet>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
