Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

using MSXML3 (DOM) within JSP

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I need help integrating MSXML3 within a JSP page in a web format.
I have an XSL file as such:
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
<HTML>
<STYLE>
.hdr {font-family:Verdana;font-size:9pt;border-bottom:1px black solid;font-weight:bold;}
.normal {font-family:Verdana;font-size:8pt;border-bottom:1px silver solid;}
</STYLE>
<BODY>
<CENTER>
<TABLE BORDER="0" BORDERCOLOR="silver" CELLSPACING="0" CELLPADDING="5" WIDTH="60%">
<xsl:for-each select="//books/book">
<TR>
<TD CLASS="normal"><xsl:value-of select="title" /></TD>
<TD CLASS="normal"><xsl:value-of select="quantity" /></TD>
<TD CLASS="normal"><xsl:value-of select="price" /></TD>

</TR>
</xsl:for-each>
</TABLE>
</CENTER>
</BODY>
</HTML>
</xsl:template>

</xsl:stylesheet>
-----------------------------------------------------------------
Assume the XML is good XML that conforms to what the XSL is looking for.
I want to dynamically pass an XML string from one JSP page(JSP1) to another (JSP2) that will:
1. get the xml string from the querystring
2. load the XSL page above
3. send these 2 sources to a parser (preferably DOM/MSXML3)
4. display HTML
What is the syntax of my JSP 2 that will perform the following 4 points above?

------------------
 
Kevin Fay
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here is the answer. I've noticed that this board is very slow to help....(I'll keep this in mind in the future) Looks like a lot of people just want answers and don't contribute!!!
http://www.javaranch.com/ubb/Forum31/HTML/000376.html
 
You had your fun. Now it's time to go to jail. Thanks for your help tiny ad.
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic