Done playing with xsl for a while. It just does not work as I want with respect to xhtml.

This commit is contained in:
Steve Checkoway
2007-08-06 10:10:18 +00:00
parent a56b120755
commit 6e1cd05800
+92 -88
View File
@@ -4,110 +4,114 @@
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:sm="http://www.stepmania.com"
exclude-result-prefixes="sm"> <!-- keep xslt from spittingout namespace info. -->
<!-- This could be xhtml 1.0 strict, but firefox is failing at xml -> xhtml, or something
<xsl:output method="xml" encoding="UTF-8" version="1.0" standalone="yes"
doctype-system="http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-strict.dtd"
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" />
-->
<!--<xsl:output method="html" encoding="UTF-8" version="4.01" standalone="yes"
<!-- This could be xhtml 1.0 strict, but firefox is failing at displaying the
resultant document even though it seems to parse it just fine. -->
<xsl:output method="html"
version="4.01"
encoding="UTF-8"
doctype-system="http://www.w3.org/TR/html4/strict.dtd"
doctype-public="-//W3C//DTD HTML 4.01//EN" />-->
<xsl:output method="xml" encoding="UTF-8" version="1.0"
doctype-public="-//W3C//DTD HTML 4.01//EN"
media-type="text/html" />
<!--
<xsl:output method="xml"
version="1.0"
encoding="UTF-8"
doctype-system="http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-strict.dtd"
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
media-type="application/xhtml+xml"
indent="yes"/>
media-type="application/xhtml+xml" />
-->
<xsl:template match="/">
<xsl:comment>This file is automatically generated. Do not edit it.</xsl:comment>
<html>
<head>
<title>StepMania LUA Information</title>
<style type="text/css">
th {
background-color: #CCCCFF;
border-style: solid;
border-width: thin;
padding: 2px;
font-size: 150%
}
table {
border-style: ridge;
border-collapse: collapse
}
td {
padding: 2px;
border-style: solid;
border-width: thin
}
hr {
width: 90%
}
code {
font-family: monospace
}
.code {
font-family: monospace
}
.returnTypeCell {
font-family: monospace;
text-align: right;
vertical-align: text-top;
width: 10em
}
.descriptionCell {
font-family: monospace;
text-align: justify;
vertical-align: text-top
}
.descriptionName {
font-family: monospace;
font-weight: bold
}
.descriptionText {
text-indent: 2em;
margin-top: 0;
margin-bottom: 0
}
.trigger {
cursor: pointer
}
.footer {
text-align: center
}
th {
background-color: #CCCCFF;
border-style: solid;
border-width: thin;
padding: 2px;
font-size: 150%
}
table {
border-style: ridge;
border-collapse: collapse
}
td {
padding: 2px;
border-style: solid;
border-width: thin
}
hr {
width: 90%
}
code {
font-family: monospace
}
.code {
font-family: monospace
}
.returnTypeCell {
font-family: monospace;
text-align: right;
vertical-align: text-top;
width: 10em
}
.descriptionCell {
font-family: monospace;
text-align: justify;
vertical-align: text-top
}
.descriptionName {
font-family: monospace;
font-weight: bold
}
.descriptionText {
text-indent: 2em;
margin-top: 0;
margin-bottom: 0
}
.trigger {
cursor: pointer
}
.footer {
text-align: center
}
</style>
<script type="text/javascript">
function Open( id )
function Open( id )
{
var imgid = 'img_' + id;
var listid = 'list_' + id;
var img = document.getElementById( imgid );
var list = document.getElementById( listid );
img.setAttribute( 'src', 'open.gif' );
list.style.display = 'block';
}
function OpenAndMove( classid, functionid )
{
Open( classid );
location.hash = classid + '_' + functionid;
}
function Toggle( id )
{
var imgid = 'img_' + id;
var listid = 'list_' + id;
var img = document.getElementById( imgid );
var list = document.getElementById( listid );
if( img.getAttribute('src') == 'closed.gif' )
{
var imgid = 'img_' + id;
var listid = 'list_' + id;
var img = document.getElementById( imgid );
var list = document.getElementById( listid );
img.setAttribute( 'src', 'open.gif' );
list.style.display = 'block';
}
function OpenAndMove( classid, functionid )
else
{
Open( classid );
location.hash = classid + '_' + functionid;
}
function Toggle( id )
{
var imgid = 'img_' + id;
var listid = 'list_' + id;
var img = document.getElementById( imgid );
var list = document.getElementById( listid );
if( img.getAttribute('src') == 'closed.gif' )
{
img.setAttribute( 'src', 'open.gif' );
list.style.display = 'block';
}
else
{
img.setAttribute( 'src', 'closed.gif' );
list.style.display = 'none';
}
img.setAttribute( 'src', 'closed.gif' );
list.style.display = 'none';
}
}
</script>
</head>
<body>