[llvm-commits] [hlvm] r38110 - in /hlvm/trunk/docs: DevelopersGuide.html Doxyfile.in GettingStarted.html HLVM.html HLVM.rng ReleasePlans.html RngToXHTML.xsl SConscript index.html
Reid Spencer
reid at x10sys.com
Sat Jul 7 16:59:55 PDT 2007
Author: reid
Date: Sat Jul 7 18:59:54 2007
New Revision: 38110
URL: http://llvm.org/viewvc/llvm-project?rev=38110&view=rev
Log:
Various attempts to improve documentation:
1. Adjust the doxygen options
2. Remove DOCTYPE elements from xml documentation
3. Attempt to implement an RNG -> HTML XSLT stylesheet and the rule to run it.
Added:
hlvm/trunk/docs/HLVM.html
hlvm/trunk/docs/HLVM.rng
hlvm/trunk/docs/RngToXHTML.xsl
Modified:
hlvm/trunk/docs/DevelopersGuide.html
hlvm/trunk/docs/Doxyfile.in
hlvm/trunk/docs/GettingStarted.html
hlvm/trunk/docs/ReleasePlans.html
hlvm/trunk/docs/SConscript
hlvm/trunk/docs/index.html
Modified: hlvm/trunk/docs/DevelopersGuide.html
URL: http://llvm.org/viewvc/llvm-project/hlvm/trunk/docs/DevelopersGuide.html?rev=38110&r1=38109&r2=38110&view=diff
==============================================================================
--- hlvm/trunk/docs/DevelopersGuide.html (original)
+++ hlvm/trunk/docs/DevelopersGuide.html Sat Jul 7 18:59:54 2007
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html>
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Getting Started with HLVM</title>
Modified: hlvm/trunk/docs/Doxyfile.in
URL: http://llvm.org/viewvc/llvm-project/hlvm/trunk/docs/Doxyfile.in?rev=38110&r1=38109&r2=38110&view=diff
==============================================================================
--- hlvm/trunk/docs/Doxyfile.in (original)
+++ hlvm/trunk/docs/Doxyfile.in Sat Jul 7 18:59:54 2007
@@ -926,7 +926,7 @@
# indirect implementation dependencies (inheritance, containment, and
# class references variables) of the class with other documented classes.
-COLLABORATION_GRAPH = YES
+COLLABORATION_GRAPH = NO
# If set to YES, the inheritance and collaboration graphs will show the
# relations between templates and their instances.
@@ -961,7 +961,7 @@
# The tag DOT_PATH can be used to specify the path where the dot tool can be
# found. If left blank, it is assumed the dot tool can be found on the path.
-DOT_PATH =
+DOT_PATH =
# The DOTFILE_DIRS tag can be used to specify one or more directories that
# contain dot files that are included in the documentation (see the
@@ -983,7 +983,7 @@
# the specified constraint. Beware that most browsers cannot cope with very
# large images.
-MAX_DOT_GRAPH_HEIGHT = 240
+MAX_DOT_GRAPH_HEIGHT = 600
# If the GENERATE_LEGEND tag is set to YES (the default) Doxygen will
# generate a legend page explaining the meaning of the various boxes and
Modified: hlvm/trunk/docs/GettingStarted.html
URL: http://llvm.org/viewvc/llvm-project/hlvm/trunk/docs/GettingStarted.html?rev=38110&r1=38109&r2=38110&view=diff
==============================================================================
--- hlvm/trunk/docs/GettingStarted.html (original)
+++ hlvm/trunk/docs/GettingStarted.html Sat Jul 7 18:59:54 2007
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html>
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Getting Started with HLVM</title>
Added: hlvm/trunk/docs/HLVM.html
URL: http://llvm.org/viewvc/llvm-project/hlvm/trunk/docs/HLVM.html?rev=38110&view=auto
==============================================================================
--- hlvm/trunk/docs/HLVM.html (added)
+++ hlvm/trunk/docs/HLVM.html Sat Jul 7 18:59:54 2007
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+ <title>Relax NG Grammar Documentation</title>
+ <link rel="stylesheet" href="relaxng.css" type="text/css"/>
+ </head>
+ <body>
+ </body>
+</html>
Added: hlvm/trunk/docs/HLVM.rng
URL: http://llvm.org/viewvc/llvm-project/hlvm/trunk/docs/HLVM.rng?rev=38110&view=auto
==============================================================================
--- hlvm/trunk/docs/HLVM.rng (added)
+++ hlvm/trunk/docs/HLVM.rng Sat Jul 7 18:59:54 2007
@@ -0,0 +1,614 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--=========================================================================-->
+<!-- Copyright (C) 2006 Reid Spencer. All Rights Reserved. -->
+<!-- -->
+<!-- This software is free software; you can redistribute it and/or modify it-->
+<!-- under the terms of the GNU Lesser General Public License as published by-->
+<!-- the Free Software Foundation; either version 2.1 of the License, or (at -->
+<!-- your option) any later version. -->
+<!-- -->
+<!-- This software is distributed in the hope that it will be useful, but -->
+<!-- WITHOUT ANY WARRANTY; without even the implied warranty of -->
+<!-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser-->
+<!-- General Public License for more details. -->
+<!-- -->
+<!-- You should have received a copy of the GNU Lesser General Public License-->
+<!-- along with this library in the file named LICENSE.txt; if not, write to -->
+<!-- the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -->
+<!-- Boston, MA 02110-1301 USA -->
+<!-- -->
+<!--=========================================================================-->
+<!-- @file hlvm/Reader/XML/HLVM.rng -->
+<!-- @author Reid Spencer <rspencer at reidspencer.com> (original author) -->
+<!-- @date 2006/05/13 -->
+<!-- @since 0.1.0 -->
+<!-- @brief Defines the core XPL language via Relax/NG Schema -->
+<!--=========================================================================-->
+<!-- HLVM AST Schema -->
+<!-- -->
+<!-- This file contains the Relax/NG schema for construction of the HLVM AST -->
+<!-- via an XML syntax. The schema aims to be simple and closely match the -->
+<!-- construction of an HLVM AST. -->
+<!-- -->
+<!-- For full commentary on this schema, see http://hlvm.org/docs/XML.html -->
+<!-- -->
+<!--=========================================================================-->
+
+<grammar
+ datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"
+ xmlns ="http://relaxng.org/ns/structure/1.0"
+ xmlns:a="http://relaxng.org/ns/annotation/1.0"
+ ns="http://hlvm.org/src/hlvm/Reader/XML/HLVM.rng">
+
+ <start>
+ <doc>This is the starting pattern for the HLVM grammar. It
+ specifies that the pattern named <a ref="#HLVM.elem">>HLVM.elem</a>
+ must be matched.
+ </doc>
+ <ref name="HLVM.elem"/>
+ </start>
+
+ <!-- PATTERN DEFINITIONS FOR DATA TYPES -->
+
+ <define name="Identifier.type">
+ <choice>
+ <ref name="Unprefixed_Identifier.type"/>
+ <ref name="Prefixed_Identifier.type"/>
+ </choice>
+ </define>
+
+ <define name="Unprefixed_Identifier.type">
+ <data type="string">
+ <param name="pattern">[^:]+</param>
+ <param name="maxLength">1024</param>
+ </data>
+ </define>
+
+ <define name="Prefixed_Identifier.type">
+ <data type="string">
+ <param name="pattern">[^:]+:[^:]+</param>
+ <param name="maxLength">1024</param>
+ </data>
+ </define>
+
+ <define name="Boolean.type">
+ <choice>
+ <data type="boolean"/>
+ <value>TRUE</value>
+ <value>True</value>
+ <value>yes</value>
+ <value>Yes</value>
+ <value>YES</value>
+ <value>1</value>
+ <value>FALSE</value>
+ <value>False</value>
+ <value>no</value>
+ <value>No</value>
+ <value>NO</value>
+ <value>0</value>
+ </choice>
+ </define>
+
+ <!-- DOCUMENTATION OF HLVM AST PROGRAMS -->
+
+ <define name="Documentation.pat">
+ <optional>
+ <element name="doc">
+ <zeroOrMore>
+ <choice>
+ <text/>
+ <ref name="Any.pat"/> <!-- should really be XHTML elements -->
+ </choice>
+ </zeroOrMore>
+ </element>
+ </optional>
+ </define>
+
+ <define name="Any.pat">
+ <element>
+ <anyName/>
+ <zeroOrMore>
+ <choice>
+ <attribute>
+ <anyName/>
+ </attribute>
+ <text/>
+ <ref name="Any.pat"/>
+ </choice>
+ </zeroOrMore>
+ </element>
+ </define>
+
+ <!-- PATTERNS THAT DEFINE name AND type ATTRIBUTES -->
+
+ <define name="Named_Element.pat">
+ <attribute name="name">
+ <ref name="Identifier.type"/>
+ </attribute>
+ <ref name="Documentation.pat"/>
+ </define>
+
+ <define name="Typed_Element.pat">
+ <attribute name="type">
+ <ref name="Identifier.type"/>
+ </attribute>
+ <ref name="Documentation.pat"/>
+ </define>
+
+ <define name="Named_Typed_Element.pat">
+ <attribute name="name">
+ <ref name="Identifier.type"/>
+ </attribute>
+ <attribute name="type">
+ <ref name="Identifier.type"/>
+ </attribute>
+ <ref name="Documentation.pat"/>
+ </define>
+
+ <!-- HLVM PATTERN -->
+ <define name="HLVM.elem">
+ <element name="hlvm">
+ <oneOrMore>
+ <ref name="Bundle.elem"/>
+ </oneOrMore>
+ </element>
+ </define>
+
+ <!--BUNDLES PATTERN -->
+
+ <define name="Bundle.elem">
+ <element name="bundle">
+ <ref name="bundle.pat"/>
+ </element>
+ </define>
+
+ <define name="bundle.pat">
+ <attribute name="pubid"><data type="anyURI"/></attribute>
+ <ref name="Documentation.pat"/>
+ <optional>
+ <zeroOrMore>
+ <ref name="import.elem"/>
+ </zeroOrMore>
+ </optional>
+ <zeroOrMore>
+ <choice>
+ <ref name="Alias.elem"/>
+ <ref name="Array.elem"/>
+ <ref name="Atom.elem"/>
+ <ref name="Bundle.elem"/>
+ <ref name="Enumeration.elem"/>
+ <ref name="Function.elem"/>
+ <ref name="Pointer.elem"/>
+ <ref name="Structure.elem"/>
+ <ref name="Signature.elem"/>
+ <ref name="Variable.elem"/>
+ <ref name="Vector.elem"/>
+ </choice>
+ </zeroOrMore>
+ </define>
+
+ <define name="import.elem">
+ <element name="import">
+ <attribute name="prefix">
+ <ref name="Identifier.type"/>
+ </attribute>
+ <attribute name="pubid">
+ <data type="anyURI"/>
+ </attribute>
+ <ref name="Documentation.pat"/>
+ </element>
+ </define>
+
+ <!--PATTERNS FOR DEFINING TYPES -->
+
+ <define name="Alias.elem">
+ <element name="alias">
+ <ref name="Named_Element.pat"/>
+ <attribute name="renames"><ref name="Identifier.type"/></attribute>
+ </element>
+ </define>
+
+ <define name="Intrinsic.elem">
+ <element name="intrinsic">
+ <attribute name="is">
+ <ref name="Intrinsic_Atoms.type"/>
+ </attribute>
+ </element>
+ </define>
+
+ <define name="Signed.elem">
+ <element name="signed">
+ <attribute name="bits">
+ <ref name="Integer.type"/>
+ </attribute>
+ </element>
+ </define>
+
+ <define name="Unsigned.elem">
+ <element name="unsigned">
+ <attribute name="bits">
+ <ref name="Integer.type"/>
+ </attribute>
+ </element>
+ </define>
+
+ <define name="Range.elem">
+ <element name="range">
+ <attribute name="min">
+ <ref name="Integer.type"/>
+ </attribute>
+ <attribute name="max">
+ <ref name="Integer.type"/>
+ </attribute>
+ </element>
+ </define>
+
+ <define name="Real.elem">
+ <element name="real">
+ <attribute name="precision">
+ <ref name="Integer.type"/>
+ </attribute>
+ </element>
+ </define>
+
+ <define name="Atom.elem">
+ <element name="atom">
+ <ref name="Named_Element.pat"/>
+ <choice>
+ <ref name="Intrinsic.elem"/>
+ <ref name="Signed.elem"/>
+ <ref name="Unsigned.elem"/>
+ <ref name="Range.elem"/>
+ <ref name="Real.elem"/>
+ </choice>
+ </element>
+ </define>
+
+ <define name="Intrinsic_Atoms.type">
+ <choice>
+ <value>any</value>
+ <value>bool</value>
+ <value>char</value>
+ <value>f32</value>
+ <value>f43</value>
+ <value>f64</value>
+ <value>f80</value>
+ <value>f128</value>
+ <value>octet</value>
+ <value>s8</value>
+ <value>s16</value>
+ <value>s32</value>
+ <value>s64</value>
+ <value>s128</value>
+ <value>u8</value>
+ <value>u16</value>
+ <value>u32</value>
+ <value>u64</value>
+ <value>u128</value>
+ <value>void</value>
+ </choice>
+ </define>
+
+ <define name="Enumeration.elem">
+ <element name="enumeration">
+ <ref name="Named_Element.pat"/>
+ <oneOrMore>
+ <element name="enumerator">
+ <attribute name="id">
+ <ref name="Unprefixed_Identifier.type"/>
+ </attribute>
+ <ref name="Documentation.pat"/>
+ </element>
+ </oneOrMore>
+ </element>
+ </define>
+
+ <define name="Pointer.elem">
+ <element name="pointer">
+ <ref name="Named_Element.pat"/>
+ <attribute name="to"><ref name="Identifier.type"/></attribute>
+ </element>
+ </define>
+
+ <define name="Vector.elem">
+ <element name="vector">
+ <ref name="Named_Element.pat"/>
+ <attribute name="of">
+ <ref name="Intrinsic_Atoms.type"/>
+ </attribute>
+ <attribute name="length"><data type="nonNegativeInteger"/></attribute>
+ </element>
+ </define>
+
+ <define name="Array.elem">
+ <element name="array">
+ <ref name="Named_Element.pat"/>
+ <attribute name="length"><data type="nonNegativeInteger"/></attribute>
+ <attribute name="of"><ref name="Identifier.type"/></attribute>
+ </element>
+ </define>
+
+ <define name="Structure.elem">
+ <element name="structure">
+ <ref name="Named_Element.pat"/>
+ <zeroOrMore>
+ <element name="field">
+ <ref name="Named_Typed_Element.pat"/>
+ </element>
+ </zeroOrMore>
+ </element>
+ </define>
+
+ <define name="Signature.elem">
+ <element name="signature">
+ <ref name="Named_Element.pat"/>
+ <attribute name="result"><ref name="Identifier.type"/></attribute>
+ <optional>
+ <attribute name="varargs"><ref name="Boolean.type"/></attribute>
+ </optional>
+ <zeroOrMore>
+ <element name="arg">
+ <ref name="Named_Typed_Element.pat"/>
+ </element>
+ </zeroOrMore>
+ </element>
+ </define>
+
+ <define name="Opaque.elem">
+ <element name="opaque">
+ <ref name="Named_Element.pat"/>
+ <empty/>
+ </element>
+ </define>
+
+ <!--PATTERNS FOR VARIABLES-->
+
+ <define name="Variable.elem">
+ <element name="var">
+ <ref name="Named_Typed_Element.pat"/>
+ <optional>
+ <choice>
+ <element name="const">
+ <ref name="Constant.pat"/>
+ </element>
+ <element name="init">
+ <ref name="Constant.pat"/>
+ </element>
+ <element name="zero">
+ <empty/>
+ </element>
+ </choice>
+ </optional>
+ <optional>
+ <attribute name="linkage">
+ <ref name="Linkage.type"/>
+ </attribute>
+ </optional>
+ </element>
+ </define>
+
+ <define name="Linkage.type">
+ <choice>
+ <value>appending</value>
+ <value>external</value>
+ <value>internal</value>
+ <value>linkonce</value>
+ <value>weak</value>
+ </choice>
+ </define>
+
+ <!--PATTERNS FOR FUNCTIONS -->
+
+ <define name="Function.elem">
+ <element name="function">
+ <ref name="Named_Typed_Element.pat"/>
+ <optional>
+ <attribute name="symbol"><ref name="Identifier.type"/></attribute>
+ </optional>
+ <optional>
+ <attribute name="linkage"><ref name="Linkage.type"/></attribute>
+ </optional>
+ <zeroOrMore>
+ <element name="var">
+ <ref name="Named_Typed_Element.pat"/>
+ </element>
+ </zeroOrMore>
+ <zeroOrMore>
+ <ref name="Block.elem"/>
+ </zeroOrMore>
+ </element>
+ </define>
+
+ <define name="Block.elem">
+ <element name="block">
+ <optional>
+ <attribute name="label"><ref name="Identifier.type"/></attribute>
+ </optional>
+ </element>
+ </define>
+
+ <define name="Constant.pat">
+ <choice>
+ <ref name="Reference.elem"/>
+ <ref name="Literal.pat"/>
+ </choice>
+ </define>
+
+ <define name="Reference.elem">
+ <element name="ref">
+ <ref name="Named_Element.pat"/>
+ <empty/>
+ </element>
+ </define>
+
+ <!-- PATTERNS FOR LITERAL CONSTANTS -->
+
+ <define name="Literal.pat">
+ <choice>
+ <ref name="IntegerLiteral.pat"/>
+ <ref name="Boolean_Literal.elem"/>
+ <ref name="Character_Literal.elem"/>
+ <ref name="Real_Literal.elem"/>
+ <ref name="Text_Literal.elem"/>
+ <ref name="Null_Literal.elem"/>
+ <ref name="Array_Literal.elem"/>
+ <ref name="Vector_Literal.elem"/>
+ <ref name="Aggregate_Literal.elem"/>
+ </choice>
+ </define>
+
+ <define name="IntegerLiteral.pat">
+ <choice>
+ <ref name="Binary_Literal.elem"/>
+ <ref name="Octal_Literal.elem"/>
+ <ref name="Decimal_Literal.elem"/>
+ <ref name="Hexadecimal_Literal.elem"/>
+ </choice>
+ </define>
+
+ <define name="Integer.type">
+ <choice>
+ <ref name="Binary.type"/>
+ <ref name="Octal.type"/>
+ <ref name="Decimal.type"/>
+ <ref name="Hexadecimal.type"/>
+ </choice>
+ </define>
+
+ <define name="Typed_Literal.pat">
+ <optional>
+ <attribute name="type"><ref name="Identifier.type"/></attribute>
+ </optional>
+ </define>
+
+ <define name="Binary_Literal.elem">
+ <element name="bin">
+ <ref name="Typed_Literal.pat"/>
+ <ref name="Binary.type"/>
+ </element>
+ </define>
+
+ <define name="Binary.type">
+ <data type="string">
+ <param name="minLength">1</param>
+ <param name="maxLength">1024</param>
+ <param name="pattern">[01]+</param>
+ </data>
+ </define>
+
+ <define name="Octal_Literal.elem">
+ <element name="oct">
+ <ref name="Typed_Literal.pat"/>
+ <ref name="Octal.type"/>
+ </element>
+ </define>
+
+ <define name="Octal.type" >
+ <data type="string">
+ <param name="minLength">1</param>
+ <param name="maxLength">1024</param>
+ <param name="pattern">[0-7]+</param>
+ </data>
+ </define>
+
+ <define name="Decimal_Literal.elem">
+ <element name="dec">
+ <ref name="Typed_Literal.pat"/>
+ <ref name="Decimal.type"/>
+ </element>
+ </define>
+
+ <define name="Decimal.type">
+ <data type="string">
+ <param name="minLength">1</param>
+ <param name="maxLength">1024</param>
+ <param name="pattern">[+\-]?\d+</param>
+ </data>
+ </define>
+
+ <define name="Hexadecimal_Literal.elem">
+ <element name="hex">
+ <ref name="Typed_Literal.pat"/>
+ <ref name="Hexadecimal.type"/>
+ </element>
+ </define>
+
+ <define name="Hexadecimal.type">
+ <data type="string">
+ <param name="minLength">1</param>
+ <param name="maxLength">1024</param>
+ <param name="pattern">([0-9A-Fa-f][0-9A-Fa-f])+</param>
+ </data>
+ </define>
+
+ <define name="Boolean_Literal.elem">
+ <choice>
+ <element name="true"><empty/></element>
+ <element name="false"><empty/></element>
+ </choice>
+ </define>
+
+ <define name="Character_Literal.elem">
+ <element name="char"><ref name="Character.type"/></element>
+ </define>
+
+ <define name="Character.type">
+ <choice>
+ <data type="string"><param name="length">1</param></data>
+ <data type="string">
+ <param name="length">5</param>
+ <param name="pattern">[#][0-9A-Fa-f]{4,4}</param>
+ </data>
+ </choice>
+ </define>
+
+ <define name="Real_Literal.elem">
+ <choice>
+ <element name="flt"><ref name="Real.type"/></element>
+ <element name="dbl"><ref name="Real.type"/></element>
+ </choice>
+ </define>
+
+ <define name="Real.type">
+ <data type="string">
+ <param name="minLength">1</param>
+ <param name="maxLength">1024</param>
+ <param name="pattern">ninf|pinf|nan|signan|zero|nzero|[+\-]?0x[0-9A-Fa-f](\.[0-9A-Fa-f]+)?p[-+][0-9]+|#[0-9A-Fa-f]{16}|#[0-9a-fA-F]{8}|[+\-]?\d+\.\d*([Ee][+\-]?\d+)?</param>
+ </data>
+ </define>
+
+ <define name="Text_Literal.elem">
+ <element name="text"><text/></element>
+ </define>
+
+ <define name="Null_Literal.elem">
+ <element name="null"><empty/></element>
+ </define>
+
+ <define name="Array_Literal.elem">
+ <element name="array">
+ <ref name="Typed_Element.pat"/>
+ <oneOrMore>
+ <ref name="Constant.pat"/>
+ </oneOrMore>
+ </element>
+ </define>
+
+ <define name="Vector_Literal.elem">
+ <element name="vector">
+ <ref name="Typed_Element.pat"/>
+ <oneOrMore>
+ <ref name="Constant.pat"/>
+ </oneOrMore>
+ </element>
+ </define>
+
+ <define name="Aggregate_Literal.elem">
+ <element name="aggregate">
+ <ref name="Typed_Element.pat"/>
+ <oneOrMore>
+ <ref name="Constant.pat"/>
+ </oneOrMore>
+ </element>
+ </define>
+</grammar>
Modified: hlvm/trunk/docs/ReleasePlans.html
URL: http://llvm.org/viewvc/llvm-project/hlvm/trunk/docs/ReleasePlans.html?rev=38110&r1=38109&r2=38110&view=diff
==============================================================================
--- hlvm/trunk/docs/ReleasePlans.html (original)
+++ hlvm/trunk/docs/ReleasePlans.html Sat Jul 7 18:59:54 2007
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html>
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>HLVM Release Plans</title>
Added: hlvm/trunk/docs/RngToXHTML.xsl
URL: http://llvm.org/viewvc/llvm-project/hlvm/trunk/docs/RngToXHTML.xsl?rev=38110&view=auto
==============================================================================
--- hlvm/trunk/docs/RngToXHTML.xsl (added)
+++ hlvm/trunk/docs/RngToXHTML.xsl Sat Jul 7 18:59:54 2007
@@ -0,0 +1,29 @@
+<?xml version="1.0"?><!--*- XML -*-->
+
+<xsl:transform
+ version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:rng="http://relaxng.org/ns/structure/1.0"
+ xmlns:local="http://www.pantor.com/ns/local"
+ xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
+ exclude-result-prefixes="rng local a"
+>
+<xsl:template match="/">
+<html>
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+ <title>Relax NG Grammar Documentation</title>
+ <link rel="stylesheet" href="relaxng.css" type="text/css"/>
+ </head>
+ <body>
+ <h1>$X Grammar</h1>
+ <div class="contents">
+ <xsl:call-template name="start"/>
+ </div>
+ </body>
+</html>
+</xsl:template>
+<xsl:template name="start" match="/grammar/start">
+ <h2>Start Pattern: <xsl:copy-of select="./ref"/></h2>
+</xsl:template>
+</xsl:transform>
Modified: hlvm/trunk/docs/SConscript
URL: http://llvm.org/viewvc/llvm-project/hlvm/trunk/docs/SConscript?rev=38110&r1=38109&r2=38110&view=diff
==============================================================================
--- hlvm/trunk/docs/SConscript (original)
+++ hlvm/trunk/docs/SConscript Sat Jul 7 18:59:54 2007
@@ -20,7 +20,13 @@
# MA 02110-1301 USA
#
#===----------------------------------------------------------------------===#
+from os.path import join as pjoin
Import('env')
+cmd = '$XSLTPROC ' + pjoin(env['AbsSrcRoot'],'docs','RngToXHTML.xsl') + ' $SOURCE > $TARGET'
+rng2xhtml = Builder(action=cmd, src_suffix='rng', suffix='html')
+env.Append(BUILDERS= {'Rng2XHTML':rng2xhtml})
+env.Rng2XHTML('HLVM.rng.html',['HLVM.rng'])
+env.Depends('HLVM.rng.html','RngToXHTML.xsl')
#if 'doxygen' in COMMAND_LINE_TARGETS:
# from build import doxygen
# doxygen.Doxygen(env)
Modified: hlvm/trunk/docs/index.html
URL: http://llvm.org/viewvc/llvm-project/hlvm/trunk/docs/index.html?rev=38110&r1=38109&r2=38110&view=diff
==============================================================================
--- hlvm/trunk/docs/index.html (original)
+++ hlvm/trunk/docs/index.html Sat Jul 7 18:59:54 2007
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html>
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Getting Started with HLVM</title>
More information about the llvm-commits
mailing list