XSLT

XSLT is a subset (or a derivative) of XML. It is an XML based language which defines how to transform a XML file to a different XML or HTML file. Thus XSLT works via an XSLT processor which reads an XSLT file, an input XML file and uses the instructions in the input XSLT file to convert the input XML file to its output.

For example consider a portion of the XML code referred to in the XML description.

  <logPstar>3.90</logPstar>
  <SMILES>CCCCCC</SMILES>

The XSLT that follows:


      <xsl:apply-templates select="logPstar"/>
      <TABLE BORDER="0" cellspacing="0">
        <xsl:apply-templates select="SMILES"/>
      </TABLE><BR/>

    <xsl:template match="logPstar">
      <BR/><B>LogPstar found</B> : <xsl:value-of select="."/><BR/><BR/>
    </xsl:template>

        <xsl:template match="SMILES">
          <TR>
            <TD>
              <B>SMILES:</B>
            </TD>
            <TD>
              <TT><xsl:value-of select="."/></TT>
            </TD>
          </TR>
        </xsl:template>

when applied by an XSL processor would produce the following output:

<BR><B>LogPstar found</B> : 3.90
      <TABLE BORDER="0" cellspacing="0">
           <TR>
            <TD>
              <B>SMILES:</B>
            </TD>
            <TD>
              <TT>CCCCCC</TT>
            </TD>
          </TR>
      </TABLE><BR>

which would look like

LogPstar found : 3.90
SMILES: CCCCCC

More information on XSLT can be obtained from
Daylight CIS Inc. Back