XSL:weblogic.apache.xalan.transformer.TransformerImpl.transform
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Sandy_Saha
Posted On:   Monday, March 3, 2003 03:24 AM

==================================================================================================== I have data something as follows: blah-blah-blah some more blah-blah-blah some more blah-blah-blah some more blah-blah-blah ==================================================================================================== The xsl for this is something as follows: <?xml version="1.0"?> stylesheet [ <!ENTITY nbsp " " > ]> xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1   More>>

====================================================================================================
I
have data something as follows:





blah-blah-blah



some more
blah-blah-blah




some more blah-blah-blah




some more blah-blah-blah



====================================================================================================
The
xsl for this is something as follows:

<?xml version="1.0"?>

stylesheet [
<!ENTITY nbsp " " >
]>


xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">













Do some things here










Do some more things here






====================================================================================================
Now
the problem is this:

As long as there is only 1 AnotherEle_01 there is
no error. But the moment I have more than 1 AnotherEle_01 tag
during transformation,
the o/p on the browser comes as desired but at the server side, a transformation
exception occurs as follows:

javax.xml.transform.TransformerException:
The root element is required in a well-formed document.
at weblogic.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:671)


====================================================================================================
I
tried doing, in vain,



.....

All
the above data
.....



====================================================================================================
So
can u pls suggest what is wrong in the xsl or what has to be added into it???

Note:
The transformation is done via a servlet
transformer.transform(xmlSource,
new javax.xml.transform.stream.StreamResult(out));

====================================================================================================

   <<Less

Re: XSL:weblogic.apache.xalan.transformer.TransformerImpl.transform

Posted By:   Roseanne_Zhang  
Posted On:   Monday, March 3, 2003 06:59 AM

1) I don't know weblogic.apache... , however, I've heard some bad words about it. You can make the system not use weblogic by specifying the system properties to use xalan directory:

javax.xml.transform.TransformerFactory = org.apache.xalan.processor.TransformerFactoryImpl


2) From your error message, I'm suspect weblogic is try to verify the well-formness of the result xml (default xsl:output). Try this one to see it solve your problem or not:




]>












Do some things here









Do some more things here







3) Please use
 tag to make your code more readable.

Hope this helps!
Roseanne
About | Sitemap | Contact