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

Re: Re: Re: XSLT Generated Text

Subject: Re: Re: Re: XSLT Generated Text
From: Derek Basch <dbasch@xxxxxxxxx>
Date: Fri, 19 Nov 2004 15:54:59 -0800 (PST)
derek basch
I gave the root element and all its children the same namespace in the xml
document and it still wont transform the (select-value-of="...) elements. I put
the revised XML and XSL below. Any ideas??? Thanks again.

XML:

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE mamu_results SYSTEM
"http://172.20.0.70:81/mamu/mhc_mamu_results.dtd">
<?xml-stylesheet type="text/xsl"
href="http://172.20.0.70:81/mamu/mhc_mamu_results.xsl"?>
<mamu_results xmlns='http://172.20.0.70:81/mamu/'>
  <prediction_description>Predicting 8-mers binding to Mamu-A01 in sequence
"unnamed"</prediction_description>
  <prediction>
    <start>1</start>
    <end>8</end>
    <sequence>AAAAAAAA</sequence>
    <mhc_affinity>4.7</mhc_affinity>
    <combined_prediction>3.19</combined_prediction>
  </prediction>
</mamu_results>

XSL:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<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="mamu_results/prediction">
    <tr>
      <td><xsl:value-of select="start"/></td>
      <td><xsl:value-of select="end"/></td>
      <td><xsl:value-of select="sequence"/></td>
    </tr>
    </xsl:for-each>
    </table>
  </body>
  </html>
</xsl:template>
</xsl:stylesheet>


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

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.