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