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="post" name="fetchfulldoc">
<% splittedxmlmesg = "<"+"?xml version='1.0'?"+">\n" + splittedxmlmesg;
%>
<xsl:apply xsl="/splitteddoc.xsl" >
<%= splittedxmlmesg %>
</xsl:apply>
<input type=submit value="Fetch Document" name="fetchdoc">
</form>
<hr>
<%
}
%>
but cannot display correctly, i'd tried <?xml stylesheet href.....> also cannot.
i looked at the "source" and it displays the following:
<form method="post" name="fetchfulldoc">
<xsl:apply xsl="/splitteddoc.xsl" ><?xml version='1.0'?>
<doc>.....</doc></xsl:apply>
<input type=submit value="Fetch Document" name="fetchdoc">
</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
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="post" name="fetchfulldoc">
<% splittedxmlmesg = "<"+"?xml version='1.0'?"+">\n" + splittedxmlmesg;
%>
<xsl:apply xsl="/splitteddoc.xsl" >
<%= splittedxmlmesg %>
</xsl:apply>
<input type=submit value="Fetch Document" name="fetchdoc">
</form>
<hr>
<%
}
%>
but cannot display correctly, i'd tried <?xml stylesheet href.....> also cannot.
i looked at the "source" and it displays the following:
<form method="post" name="fetchfulldoc">
<xsl:apply xsl="/splitteddoc.xsl" ><?xml version='1.0'?>
<doc>.....</doc></xsl:apply>
<input type=submit value="Fetch Document" name="fetchdoc">
</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