xsl-list
[Top] [All Lists]

Re: XSLT Generated Text

2004-11-23 16:01:52
I got it working. I changed the XSL to the following:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
 xmlns:m="http://172.20.0.70:81/mamu/";>
<xsl:template match="/">
 <html>
 <body>
   <h2>Prediction Results</h2>
   <table border="1">
     <tr bgcolor="#9acd32">
       <th align="left">Start</th>
       <th align="left">End</th>
       <th align="left">Sequence</th>
     </tr>
     <xsl:for-each select="m:mamu_results/m:prediction">
       <tr>
         <td><xsl:value-of select="m:start"/></td>
         <td><xsl:value-of select="m:end"/></td>
         <td><xsl:value-of select="m:sequence"/></td>
       </tr>
     </xsl:for-each>
   </table>
 </body>
 </html>
</xsl:template>
</xsl:stylesheet>

I had to remove the ';' after the xmlns attributes and I also removed the
'exclude-result-prefixes="m"' because it was unneccesary now that all the
elements are in the same namespace. Thanks everyone!


                
__________________________________ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>