[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

problem converting xml into html

Subject: problem converting xml into html
From: Clay_Rowland@xxxxxxxxxxx
Date: Thu, 27 Apr 2000 14:34:34 -0400
xmldom transformnode

I have some xml and xsl that I would like to combine to produce an html file.
When I use the microsoft.xmldom transformNode() method, and then write the
resultant html string to a file, the file displays correctly in a browser.
However, when I use lotusxsl to combine the xml and xsl, and write the resultant
html string to a file, the html can not be viewed in a browser.  To make things
more complicated, when I view the source of the html file, the html code appears
to be there.  I have included some sample code.  Does anybody have any idea why
this is happening?  I am pretty sure that I am missing something fairly small
but important.


xml:

<SampleML>
     <Data>
          <Group ID="1">
               <Class ID="1>
                    <A>A</A>
                    <B>B</B>
               </Class>
               <Class ID="2">
                    <A>A</A>
                    <B>B</B>
               </Class>
          </Group>
     </Data>
</SampleML>


xsl:

<?xml version="1.0" ?>
<html xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<head><title>Test</title></head>
<body>
     <table>
          <tr>
               <td>A</td>
               <td>B</td>
          </tr>
          <tr>
               <td><xsl:value-of
select="SampleML/Data/Group[@ID='1']/Class[@ID='1']/A" /></td>
               <td><xsl:value-of
select="SampleML/Data/Group[@ID='1']/Class[@ID='1']/B" /></td>
          </tr>
     </table>
</body>
</html>





 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.