HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/share/doc/libxml-xslt-perl/examples/cml.xsl
<!--?xml version="1.0"?-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

  <xsl:template match="*">
    <xsl:apply-templates/>
  </xsl:template>

  <xsl:template match="/">
    <HTML>
    <HEAD>      
      <xsl:if test="molecule[@convention='DictOrgChem']">
        <base href="http://www.sci.kun.nl/sigma/Chemisch/Woordenboek/"/>
        <link rel="stylesheet" href="http://www.sci.kun.nl/sigma/Chemisch/Woordenboek/gui/styles/woc.css" type="text/css"/>
      </xsl:if>
    </HEAD>
    <BODY>
      <H1>Physical Properties</H1>
      <xsl:apply-templates/>
    </BODY>
    </HTML>
  </xsl:template>

  <xsl:template match="molecule">
    <b>Chemical:</b> <xsl:value-of select="@id"/><p/>
    <ul><xsl:apply-templates/></ul>
  </xsl:template>

  <xsl:template match="float">
    <b><xsl:value-of select="@title"/>:</b> <xsl:value-of select="."/> <xsl:value-of select="@units"/><br/>
  </xsl:template>

  <xsl:template match="string">
    <b><xsl:value-of select="@title"/>:</b> <xsl:value-of select="."/><br/>
  </xsl:template>

</xsl:stylesheet>