Mailing List
Home
Forum Home
Cocoon - MVC web framework based on XML/XSL
Maven - Project building tool
Axis - Java SOAP implementation
Lucene - Full-featured text search engine APIs
Log4J - A log library
Fop - Create PDF, PCL, PS, SVG, XML driven by XSL formatting objects.
POI - Java Excel, Word and other Microsoft Office files manipulating library
Oracle database, Microsoft SQL server ...
MySQL - an open source database
Red Hat Linux Installation and Config discussions ...
Subjects
log4j warning: No appenders could be found
java security AccessControlException: access denied (java io FilePermission clie
java lang InstantiationException: org apache tools ant Main
Apache Axis Tutorial
Struts <logic iterate >
log4j properties How to parse outpu to multiple files
configuring log4j with BEA Weblogic 8 1
How to use XSL FOP Java together
JSP precompile
Servlet File Download dialog problem (IE6,Adobe 6 0)
Proposal: Adding jar manifest classpath in jar and war plugins
Unsupported major minor version 48 0 problem while running the an
   telope task
java security AccessControlException: access denied (java io FilePermission
axis wsdl2java Ant Task usage
net sf hibernate MappingException: Error reading resource: test/User hbm xml
Building EAR ANT Script for websphere 5 0
CREATING WAR Files
jsp data into Excel
Classpath problem
Jboss 3 2 3+ vs Tomcat Axis Question
RE: How to include jars and add them into the MANIFEST MF/Class Path
attribute
Printing problem
InstantiationException
Couldn 't find trusted certificate
Please : How can one install ant 1 6 0 under Eclipse 2 1 ?
Excel: Too many different cell formats
Running junit tests fails
XDoclet, Struts and Maven: Where to start? SOLUTION
1 3 final: now giving me java io FileNotFoundException (Too many
open files)
AXIS: tomcat timeout ?
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
request xml tags disappear

request xml tags disappear

2003-12-02       - By Tristan Lyons

 Back
Reply:     1     2     3  

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&lt;SomeTag&gt;some text&lt;/SomeTag&gt;
</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>&lt;SomeTag&gt;some text&lt;/SomeTag&gt;</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>


My Sitemap,
==================
<map:pipeline>
<map:match pattern="*.xml">
<!-- generate xml request doc -->
<map:generate type="request"/>
<!-- xsl transform to create input doc for source writing transform -->
<map:transform type="xslt" src="req2xmlDoc.xsl"/>
<map:serialize type="xml"/>
</map:match>
</map:pipeline>



-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)