Skip to content

Commit

Permalink
structuring online material; distributing cross-cutting issues proper…
Browse files Browse the repository at this point in the history
…ly between directories

git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@805 ab42f6e0-554d-0410-b580-99e487e6eeb2
  • Loading branch information
grammarware committed Jul 8, 2010
1 parent df8b6c8 commit f2ebbf8
Show file tree
Hide file tree
Showing 15 changed files with 185 additions and 200 deletions.
11 changes: 2 additions & 9 deletions topics/java/related/related.xsd → shared/xsd/links.xsd
Expand Up @@ -16,15 +16,7 @@
<xsd:element name="title" type="xsd:string"/>
<xsd:element name="author" type="xsd:string" maxOccurs="unbounded"/>
<xsd:element name="link" type="xsd:anyURI"/>
<xsd:element name="version">
<xsd:simpleType>
<xsd:restriction base="xsd:int">
<xsd:enumeration value="1"/>
<xsd:enumeration value="2"/>
<xsd:enumeration value="3"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="version" type="xsd:string"/>
<xsd:element name="form" type="xsd:string"/>
<xsd:element name="comment" type="xsd:string"/>
</xsd:sequence>
Expand All @@ -34,6 +26,7 @@
</xsd:complexType>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string"/>
</xsd:complexType>
</xsd:element>

Expand Down
52 changes: 52 additions & 0 deletions shared/xsl/links2html.xslt
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:links="http://planet-sl.org/links" xmlns:xhtml="http://www.w3.org/1999/xhtml" version="1.0">
<xsl:output method="html" encoding="UTF-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
<xsl:template match="/links:repository">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>
<xsl:value-of select="@name"/>
</title>
<style type="text/css">h1{text-align:center}</style>
<link href="slps.css" rel="stylesheet" type="text/css"/>
</head>
<body style="background-color:#9C9;">
<h1><xsl:value-of select="@name"/></h1>
<xsl:for-each select="list">
<h2>
<xsl:value-of select="title"/>
</h2>
<ul>
<xsl:apply-templates select="item"/>
</ul>
<hr/>
</xsl:for-each>
</body>
</html>
</xsl:template>
<xsl:template match="item">
<li xmlns="http://www.w3.org/1999/xhtml">
<strong>
<a>
<xsl:attribute name="href">
<xsl:value-of select="link"/>
</xsl:attribute>
<xsl:value-of select="title"/>
</a>
</strong>
<xsl:text> (</xsl:text>
<xsl:value-of select="author[1]"/>
<xsl:for-each select="author[position()&gt;1]">
<xsl:text>, </xsl:text>
<xsl:value-of select="."/>
</xsl:for-each>
<xsl:text>) — </xsl:text>
<xsl:value-of select="version"/>
<xsl:text>, </xsl:text>
<xsl:value-of select="form"/>
<p>
<xsl:value-of select="comment"/>
</p>
</li>
</xsl:template>
</xsl:stylesheet>
2 changes: 1 addition & 1 deletion shared/xsl/zoo2xhtml.xslt
Expand Up @@ -11,7 +11,7 @@
</title>
<link href="zoo.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<body style="background-color:#9C9;">
<h1>
Software Language Processing Suite
<br/>
Expand Down
7 changes: 0 additions & 7 deletions topics/java/related/Makefile

This file was deleted.

60 changes: 0 additions & 60 deletions topics/java/related/links2html.xslt

This file was deleted.

16 changes: 10 additions & 6 deletions www/Makefile
Expand Up @@ -4,14 +4,18 @@ upload:
scp index.html rlaemmel,slps@web.sourceforge.net:htdocs

sync:
rsync -avz --exclude=".svn" --exclude="Makefile" --exclude="*.zoo" * sspider,slps@web.sourceforge.net:htdocs
rsync -avz --exclude=".svn" --exclude="Makefile" --exclude="_dev" * sspider,slps@web.sourceforge.net:htdocs

clean:
rm -f *~ zoo/*/*

build:
make -f Makefile.c.zoo
make -f Makefile.cpp.zoo
make -f Makefile.csharp.zoo
make -f Makefile.java.zoo
xsltproc --stringparam date `date +"%d/%m/%Y"` ../shared/xsl/zoo2xhtml.xslt config.zoo > zoo/index.html
make -f _dev/Makefile.c.zoo
make -f _dev/Makefile.cpp.zoo
make -f _dev/Makefile.csharp.zoo
make -f _dev/Makefile.java.zoo
xsltproc --stringparam date `date +"%d/%m/%Y"` ../shared/xsl/zoo2xhtml.xslt _dev/config.zoo > zoo/index.html
xsltproc ../shared/xsl/links2html.xslt _dev/java-grammars.xml | python ../shared/python/closemeta.py > zoo/java/links.html

test:
xmllint --noout --schema ../shared/xsd/links.xsd _dev/java-grammars.xml
6 changes: 3 additions & 3 deletions www/Makefile.c.zoo → www/_dev/Makefile.c.zoo
@@ -1,7 +1,7 @@
all:
make iso-9899-1999 -f Makefile.c.zoo
make iso-9899-tc2 -f Makefile.c.zoo
make iso-9899-tc3 -f Makefile.c.zoo
make iso-9899-1999 -f _dev/Makefile.c.zoo
make iso-9899-tc2 -f _dev/Makefile.c.zoo
make iso-9899-tc3 -f _dev/Makefile.c.zoo

%:
cp ../topics/grammars/c/$*/extracted-grammar.bgf zoo/c/$*.bgf
Expand Down
4 changes: 2 additions & 2 deletions www/Makefile.cpp.zoo → www/_dev/Makefile.cpp.zoo
@@ -1,6 +1,6 @@
all:
make iso-14882-1998 -f Makefile.cpp.zoo
make iso-n2723 -f Makefile.cpp.zoo
make iso-14882-1998 -f _dev/Makefile.cpp.zoo
make iso-n2723 -f _dev/Makefile.cpp.zoo

%:
cp ../topics/grammars/cpp/$*/extracted-grammar.bgf zoo/cpp/$*.bgf
Expand Down
22 changes: 11 additions & 11 deletions www/Makefile.csharp.zoo → www/_dev/Makefile.csharp.zoo
@@ -1,15 +1,15 @@
all:
make ecma-334-1 -f Makefile.csharp.zoo
make ecma-334-2 -f Makefile.csharp.zoo
make ecma-334-3 -f Makefile.csharp.zoo
make ecma-334-4 -f Makefile.csharp.zoo
make iso-23270-2003-extracted -f Makefile.csharp.zoo
make iso-23270-2003-recovered -f Makefile.csharp.zoo
make iso-23270-2006 -f Makefile.csharp.zoo
make msft-ls-1.0 -f Makefile.csharp.zoo
make msft-ls-1.2 -f Makefile.csharp.zoo
make msft-ls-3.0 -f Makefile.csharp.zoo
make msft-ls-4.0 -f Makefile.csharp.zoo
make ecma-334-1 -f _dev/Makefile.csharp.zoo
make ecma-334-2 -f _dev/Makefile.csharp.zoo
make ecma-334-3 -f _dev/Makefile.csharp.zoo
make ecma-334-4 -f _dev/Makefile.csharp.zoo
make iso-23270-2003-extracted -f _dev/Makefile.csharp.zoo
make iso-23270-2003-recovered -f _dev/Makefile.csharp.zoo
make iso-23270-2006 -f _dev/Makefile.csharp.zoo
make msft-ls-1.0 -f _dev/Makefile.csharp.zoo
make msft-ls-1.2 -f _dev/Makefile.csharp.zoo
make msft-ls-3.0 -f _dev/Makefile.csharp.zoo
make msft-ls-4.0 -f _dev/Makefile.csharp.zoo

%:
cp ../topics/grammars/csharp/$*/extracted-grammar.bgf zoo/csharp/$*.bgf
Expand Down
10 changes: 5 additions & 5 deletions www/Makefile.java.zoo → www/_dev/Makefile.java.zoo
@@ -1,13 +1,13 @@
all:
make 1.jls -f Makefile.java.zoo
make 2.jls -f Makefile.java.zoo
make 3.jls -f Makefile.java.zoo
make 1.jls -f _dev/Makefile.java.zoo
make 2.jls -f _dev/Makefile.java.zoo
make 3.jls -f _dev/Makefile.java.zoo

%.jls:
cp ../topics/grammars/java/jls$*/extracted-implementable-grammar.bgf zoo/java/jls$*-impl.bgf
make jls$*-impl.formats -f Makefile.java.zoo
make jls$*-impl.formats -f _dev/Makefile.java.zoo
cp ../topics/grammars/java/jls$*/extracted-readable-grammar.bgf zoo/java/jls$*-read.bgf
make jls$*-read.formats -f Makefile.java.zoo
make jls$*-read.formats -f _dev/Makefile.java.zoo

%.formats:
../shared/tools/bgf2html zoo/java/$*.bgf zoo/java/$*.html
Expand Down
File renamed without changes.

0 comments on commit f2ebbf8

Please sign in to comment.