the xml file is in the same dir as the xsl file.
i cant really post it:

i did see this.
http://ncyoung.com/entry/432?PHPSESSID=7661a3993107e4c27271df73bb016c9d
but not sure how to use it.

i am not doing any cf.
just trying to sort through tons of data our engineers out put to xml
so i can the creat a template....
right now just trying to creat a xsl page to sort through all the info.


here is my xsl


<?xml version="1.0" encoding="iso-8859-1"?><!-- DWXMLSource="Snmp.xml" -->



<!DOCTYPE xsl:stylesheet  [
    <!ENTITY nbsp   "&#160;">
    <!ENTITY copy   "&#169;">
    <!ENTITY reg    "&#174;">
    <!ENTITY trade  "&#8482;">
    <!ENTITY mdash  "&#8212;">
    <!ENTITY ldquo  "&#8220;">
    <!ENTITY rdquo  "&#8221;">
    <!ENTITY pound  "&#163;">
    <!ENTITY yen    "&#165;">
    <!ENTITY euro   "&#8364;">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="
http://www.w3.org/1999/XSL/Transform"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance";>
<xsl:output method="html" encoding="iso-8859-1"
doctype-public="-//W3C//XHTML 1.0 Transitional//EN" doctype-system="
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
<xsl:template match="/">
<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>test</title>
<style type="text/css">
<xsl:comment>
body,td,th {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #000000;
}
body {
    background-color: #FFFFFF;
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
}
..style10 {color: #000000; font-weight: bold; }
</xsl:comment>
</style></head>

<body>

<table width="640" border="0" cellpadding="2" cellspacing="2">
  <tr>
    <td colspan="6"><div align="center">
      <h3><xsl:value-of select="SNMP/DATA_POINT/LGP_OIDS"/></h3>
    </div></td>
    </tr>
  <tr>
    <td width="216" bgcolor="#CCCCCC"><span class="style10">NAME</span></td>
    <td width="233" bgcolor="#CCCCCC"><span class="style10"><a href="Snmp.
xml?sort=NUMERIC">NUMERIC</a></span></td>
    <td width="81" bgcolor="#CCCCCC"><span class="style10"><a href="Snmp.xml
?sort=IN_TABLE">IN_TABLE</a></span></td>
    <td width="82" bgcolor="#CCCCCC"><span class="style10"><a href="Snmp.xml
?sort=TABLE_ORDER">TABLE_ORDER</a></span></td>
    <td width="82" bgcolor="#CCCCCC"><span class="style10"><a href="Snmp.xml
?sort=SCALE_FACTOR">SCALE_FACTOR</a></span></td>

  </tr>
  <xsl:for-each select="SNMP/DATA_POINT/LGP_OIDS/LGP_OID/NAME">
  <xsl:sort select="../NUMERIC" order="descending"/>
    <tr>
      <td><xsl:value-of select="."/></td>
      <td><xsl:value-of select="../NUMERIC"/></td>
      <td><xsl:value-of select="../IN_TABLE"/></td>
      <td><xsl:value-of select="../TABLE_ORDER"/></td>
      <td><xsl:value-of select="../SCALE_FACTOR"/></td>

    </tr>

  </xsl:for-each>

  <tr>
    <td bgcolor="#003333">&nbsp;</td>
    <td bgcolor="#003333">&nbsp;</td>
    <td bgcolor="#003333">&nbsp;</td>
    <td bgcolor="#003333">&nbsp;</td>
    <td bgcolor="#003333">&nbsp;</td>
    <td bgcolor="#003333">&nbsp;</td>
  </tr>
</table>

</body>
</html>
</xsl:template>
</xsl:stylesheet>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:5:193884
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/5
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:5
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.5
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to