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/95-48-7.xsl
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:template match="/">
    <xsl:processing-instruction name="cml">version="1.0" encoding="ISO-8859-1"</xsl:processing-instruction>
    <![CDATA[<!DOCTYPE molecule SYSTEM "cml.dtd" []>]]>
    <xsl:apply-templates/>
  </xsl:template>

  <xsl:template match="MOL">
    <molecule id="{@ID}">
      <xsl:apply-templates/>
    </molecule>
  </xsl:template>

  <xsl:template match="XVAR">
	<xsl:choose>
	  <xsl:when test="./[@BUILTIN='BOILINGPOINT']">
            <float title="BoilingPoint" units="degrees Celsius"><xsl:value-of select="."/></float>
	  </xsl:when>
	  <xsl:when test="./[@BUILTIN='MELTINGPOINT']">
            <float title="MeltingPoint" units="degrees Celsius"><xsl:value-of select="."/></float>
	  </xsl:when>
	</xsl:choose>
  </xsl:template>
</xsl:stylesheet>