Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

displaying xml after xsl conversion

Status
Not open for further replies.

lowbk

Technical User
Nov 26, 2001
162
SG
hi guys, need help on this (quite a long message)

i've a xml that has the following structure
<returndoc>
<doc>
...
</doc>
<doc>
...
</doc>
</returndoc>

and I need to display them in IE such that each <doc>...</doc> is a <form> with the contents as a table. i got a xsl written to transform this <doc>...</doc> to <form>...</form> and the output looks correct when i used XT engine.

in my JSP, i managed to split up the <doc>..</doc> using a method i had written then keeping them inside a vector, something like

<%
for(int j=0;j<splittedxmlmesgv.size();j++)
{
splittedxmlmesg = (String) splittedxmlmesgv.elementAt(j);
%>
<form method=&quot;post&quot; name=&quot;fetchfulldoc&quot;>
<% splittedxmlmesg = &quot;<&quot;+&quot;?xml version='1.0'?&quot;+&quot;>\n&quot; + splittedxmlmesg;
%>
<xsl:apply xsl=&quot;/splitteddoc.xsl&quot; >
<%= splittedxmlmesg %>
</xsl:apply>
<input type=submit value=&quot;Fetch Document&quot; name=&quot;fetchdoc&quot;>
</form>
<hr>
<%
}
%>

but cannot display correctly, i'd tried <?xml stylesheet href.....> also cannot.

i looked at the &quot;source&quot; and it displays the following:

<form method=&quot;post&quot; name=&quot;fetchfulldoc&quot;>
<xsl:apply xsl=&quot;/splitteddoc.xsl&quot; ><?xml version='1.0'?>
<doc>.....</doc></xsl:apply>
<input type=submit value=&quot;Fetch Document&quot; name=&quot;fetchdoc&quot;>
</form>
<hr>


the tables are not displayed at all and i don't even think the xsl is fetched. any kind soul pls advise

and to anyone reading this, HAPPY NEW YEAR
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top