LaTeXML

 view release on metacpan or  search on metacpan

lib/LaTeXML/resources/XSLT/LaTeXML-webpage-xhtml.xsl  view on Meta::CPAN

  </xsl:template>

  <!--  ======================================================================
       The <head>
       ====================================================================== -->

  <xsl:template match="/" mode="head">
    <xsl:text>&#x0A;</xsl:text>
    <xsl:element name="head" namespace="{$html_ns}">
      <xsl:apply-templates select="." mode="head-begin"/>
      <xsl:apply-templates select="." mode="head-content-type"/>
      <xsl:apply-templates select="." mode="head-title"/>
      <xsl:apply-templates select="." mode="head-generator-identifier"/>
      <xsl:apply-templates select="." mode="head-icon"/>
      <xsl:apply-templates select="." mode="head-resources"/>
      <xsl:apply-templates select="." mode="head-viewport"/>
      <xsl:apply-templates select="." mode="head-css"/>
      <xsl:apply-templates select="." mode="head-javascript"/>
      <xsl:apply-templates select="." mode="head-links"/>
      <xsl:apply-templates select="." mode="head-keywords"/>
      <xsl:apply-templates select="." mode="head-end"/>
      <xsl:text>&#x0A;</xsl:text>
    </xsl:element>
  </xsl:template>

  <!-- Note: if you override the head-begin template in a plain HTML5 (non-XML)
       document, you must ensure that the content of the head-content-type
       declaration appears in full within the first 1024 bytes of the document,
       or the output will not comply with the HTML5 standard.
      -->
  <xsl:template match="/" mode="head-begin"/>
  <xsl:template match="/" mode="head-end"/>

  <!-- Generate an appropriate title element (for the head) -->
  <xsl:template match="/" mode="head-title">
    <xsl:text>&#x0A;</xsl:text>
    <!-- must have a title, even empty, for validity! -->

lib/LaTeXML/resources/XSLT/LaTeXML-webpage-xhtml.xsl  view on Meta::CPAN

  </xsl:template>

  <!--  ====================================================================== -->

  <!-- Generate an identifier for the "generator", ie. program that created these files-->
  <xsl:template match="/" mode="head-generator-identifier">
    <xsl:text>&#x0A;</xsl:text>
    <xsl:call-template name="LaTeXML_identifier"/>
  </xsl:template>

  <!-- Generate a meta indicating the content-type -->
  <xsl:template match="/" mode="head-content-type">
    <xsl:text>&#x0A;</xsl:text>
    <xsl:choose>
      <!-- HTML5 in XML syntax: content-type and charset not allowed -->
      <xsl:when test="$USE_NAMESPACES='true' and $USE_HTML5='true'" />
      <xsl:otherwise>
        <xsl:element name="meta" namespace="{$html_ns}">
          <!-- HTML(4|5) or XHTML1.1: content-type and charset -->
          <xsl:attribute name="http-equiv">content-type</xsl:attribute>
          <xsl:attribute name="content">
            <xsl:value-of select="f:if($USE_NAMESPACES,'application/xhtml+xml','text/html')"/>
            <xsl:text>; charset=UTF-8</xsl:text>
          </xsl:attribute>
        </xsl:element>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:template>

  <!-- Generate an "icon" link for the head -->

t/daemon/formats/citation.xml  view on Meta::CPAN

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8"/>
<title>References</title>
<!--Generated by LaTeXML (version TEST) http://dlmf.nist.gov/LaTeXML/.-->

</head>
<body>
<div class="ltx_page_main">
<div class="ltx_page_content">
<div class="ltx_document">
<div id="p1" class="ltx_para">
<p class="ltx_p">A sample citation <cite class="ltx_cite ltx_citemacro_cite">[<a href="#bib.bib1" title="Handbook of mathematical functions with formulas, graphs, and mathematical tables" class="ltx_ref">AS64</a>]</cite>, then point to bibliography:<...

t/daemon/formats/citationraw.xml  view on Meta::CPAN

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8"/>
<title>References</title>
<!--Generated by LaTeXML (version TEST) http://dlmf.nist.gov/LaTeXML/.-->

</head>
<body>
<div class="ltx_page_main">
<div class="ltx_page_content">
<div class="ltx_document">
<div id="p1" class="ltx_para">
<p class="ltx_p">A sample citation <cite class="ltx_cite ltx_citemacro_cite">[<a href="#bib.bib1" title="Handbook of mathematical functions with formulas, graphs, and mathematical tables" class="ltx_ref">AS64</a>]</cite>, then point to bibliography:<...

t/daemon/formats/mixedmath.xml  view on Meta::CPAN

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8"/>
<title>Untitled Document</title>
<!--Generated by LaTeXML (version TEST) http://dlmf.nist.gov/LaTeXML/.-->

</head>
<body>
<div class="ltx_page_main">
<div class="ltx_page_content">
<div class="ltx_document">
<div id="p1" class="ltx_para">
<table id="S0.Ex1" class="ltx_equation ltx_eqn_table">



( run in 1.456 second using v1.01-cache-2.11-cpan-524268b4103 )