refactor structure
This commit is contained in:
1
releng/com.minres.scviewer.target/.gitignore
vendored
Normal file
1
releng/com.minres.scviewer.target/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
/target/
|
17
releng/com.minres.scviewer.target/.project
Normal file
17
releng/com.minres.scviewer.target/.project
Normal file
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>com.minres.scviewer.target</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.m2e.core.maven2Builder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.m2e.core.maven2Nature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
@ -0,0 +1,2 @@
|
||||
eclipse.preferences.version=1
|
||||
encoding/<project>=UTF-8
|
@ -0,0 +1,4 @@
|
||||
activeProfiles=
|
||||
eclipse.preferences.version=1
|
||||
resolveWorkspaceProjects=true
|
||||
version=1
|
@ -0,0 +1,44 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<?pde version="3.8"?>
|
||||
<target name="com.minres.scviewer.target" sequenceNumber="138">
|
||||
<locations>
|
||||
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
|
||||
<repository location="http://download.eclipse.org/releases/2020-03/"/>
|
||||
<unit id="org.eclipse.equinox.executable.feature.group" version="0.0.0"/>
|
||||
<unit id="org.eclipse.equinox.p2.sdk.feature.jar" version="0.0.0"/> <!-- needed by Linux exectable-->
|
||||
<unit id="org.eclipse.equinox.sdk.feature.group" version="0.0.0"/>
|
||||
<unit id="org.eclipse.platform.sdk" version="0.0.0"/>
|
||||
<unit id="org.eclipse.sdk.feature.group" version="0.0.0"/> <!-- org.eclipse.equinox.p2.iu -->
|
||||
<unit id="org.eclipse.rcptt.core.feature.group" version="0.0.0"/><!-- com.google.guave-->
|
||||
<unit id="org.eclipse.pde.feature.group" version="0.0.0"/> <!-- org.junit for testing -->
|
||||
</location>
|
||||
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
|
||||
<repository location="https://www.opcoach.com/repository/2020-03/"/>
|
||||
<unit id="com.opcoach.e4.preferences.feature.feature.group" version="0.0.0"/>
|
||||
</location>
|
||||
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
|
||||
<repository location="http://dist.springsource.org/snapshot/GRECLIPSE/e4.15/"/>
|
||||
<unit id="org.codehaus.groovy25.feature.feature.group" version="0.0.0"/>
|
||||
</location>
|
||||
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
|
||||
<repository location="http://download.eclipse.org/nattable/releases/1.6.0/repository/"/>
|
||||
<unit id="org.eclipse.nebula.widgets.nattable.core.feature.feature.group" version="1.6.0.201909181823"/>
|
||||
<unit id="org.eclipse.nebula.widgets.nattable.extension.e4.feature.feature.group" version="1.2.0.201909181823"/>
|
||||
<unit id="org.eclipse.nebula.widgets.nattable.extension.glazedlists.feature.feature.group" version="1.6.0.201909181823"/>
|
||||
<unit id="org.eclipse.nebula.widgets.nattable.extension.poi.feature.feature.group" version="1.5.1.201909181823"/>
|
||||
</location>
|
||||
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
|
||||
<repository location="http://download.eclipse.org/nebula/releases/latest"/>
|
||||
<unit id="org.eclipse.nebula.widgets.xviewer.feature.feature.group" version="1.1.0.202011020719"/>
|
||||
</location>
|
||||
<location includeAllPlatforms="false" includeConfigurePhase="true" includeMode="planner" includeSource="true" type="InstallableUnit">
|
||||
<repository location="http://download.eclipse.org/collections/10.4.0/repository"/>
|
||||
<unit id="org.eclipse.collections.feature.feature.group" version="0.0.0"/>
|
||||
<unit id="org.eclipse.collections.feature.source.feature.group" version="0.0.0"/>
|
||||
</location>
|
||||
</locations>
|
||||
<targetJRE path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
|
||||
<launcherArgs>
|
||||
<vmArgs>-Xms40m -Xmx2G</vmArgs>
|
||||
</launcherArgs>
|
||||
</target>
|
19
releng/com.minres.scviewer.target/pom.xml
Normal file
19
releng/com.minres.scviewer.target/pom.xml
Normal file
@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
|
||||
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<artifactId>com.minres.scviewer.target</artifactId>
|
||||
|
||||
<packaging>eclipse-target-definition</packaging>
|
||||
<name>SCViewer Target Definition</name>
|
||||
|
||||
<parent>
|
||||
<groupId>com.minres.scviewer</groupId>
|
||||
<artifactId>com.minres.scviewer.parent</artifactId>
|
||||
<version>2.11.0</version>
|
||||
<relativePath>../..</relativePath>
|
||||
</parent>
|
||||
|
||||
</project>
|
5
releng/com.minres.scviewer.updateSite/.gitignore
vendored
Normal file
5
releng/com.minres.scviewer.updateSite/.gitignore
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
/features/
|
||||
/plugins/
|
||||
/artifacts.jar
|
||||
/content.jar
|
||||
/target/
|
23
releng/com.minres.scviewer.updateSite/.project
Normal file
23
releng/com.minres.scviewer.updateSite/.project
Normal file
@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>com.minres.scviewer.updateSite</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.pde.UpdateSiteBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.m2e.core.maven2Builder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.m2e.core.maven2Nature</nature>
|
||||
<nature>org.eclipse.pde.UpdateSiteNature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
@ -0,0 +1,4 @@
|
||||
activeProfiles=
|
||||
eclipse.preferences.version=1
|
||||
resolveWorkspaceProjects=true
|
||||
version=1
|
32
releng/com.minres.scviewer.updateSite/category.xml
Normal file
32
releng/com.minres.scviewer.updateSite/category.xml
Normal file
@ -0,0 +1,32 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<site>
|
||||
<feature id="com.minres.scviewer.feature" version="0.0.0">
|
||||
<category name="ide_components"/>
|
||||
</feature>
|
||||
<feature id="com.minres.scviewer.feature.source" version="0.0.0">
|
||||
<category name="ide_components"/>
|
||||
</feature>
|
||||
<feature id="com.minres.scviewer.ui.feature" version="0.0.0">
|
||||
<category name="devel_components"/>
|
||||
</feature>
|
||||
<feature id="com.minres.scviewer.ui.feature.source" version="0.0.0">
|
||||
<category name="devel_components.source"/>
|
||||
</feature>
|
||||
<feature id="com.minres.scviewer.database.feature" version="0.0.0">
|
||||
<category name="devel_components"/>
|
||||
</feature>
|
||||
<feature id="com.minres.scviewer.database.feature.source" version="0.0.0">
|
||||
<category name="devel_components.source"/>
|
||||
</feature>
|
||||
<category-def name="ide_components" label="SCViewer">
|
||||
<description>
|
||||
Viewer for transaction recording outputs of the SystemC Verification (SCV) library
|
||||
</description>
|
||||
</category-def>
|
||||
<category-def name="devel_components" label="Developer Resources">
|
||||
<description>
|
||||
Components to deal with the transaction recording outputs of the SystemC Verification (SCV) library
|
||||
</description>
|
||||
</category-def>
|
||||
<category-def name="devel_components.source" label="Developer Resources (Source)"/>
|
||||
</site>
|
90
releng/com.minres.scviewer.updateSite/pom.xml
Normal file
90
releng/com.minres.scviewer.updateSite/pom.xml
Normal file
@ -0,0 +1,90 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>com.minres.scviewer.updateSite</artifactId>
|
||||
<version>2.11.0-SNAPSHOT</version>
|
||||
<packaging>eclipse-repository</packaging>
|
||||
<parent>
|
||||
<groupId>com.minres.scviewer</groupId>
|
||||
<artifactId>com.minres.scviewer.parent</artifactId>
|
||||
<version>2.11.0</version>
|
||||
<relativePath>../..</relativePath>
|
||||
</parent>
|
||||
<build>
|
||||
<plugins>
|
||||
<!-- make sure that zipped p2 repositories have the fully qualified version -->
|
||||
<plugin>
|
||||
<groupId>org.eclipse.tycho</groupId>
|
||||
<artifactId>tycho-p2-repository-plugin</artifactId>
|
||||
<version>${tycho-version}</version>
|
||||
<configuration>
|
||||
<finalName>${project.artifactId}-${qualifiedVersion}</finalName>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>build-helper-maven-plugin</artifactId>
|
||||
<version>3.2.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>parse-version</id>
|
||||
<goals>
|
||||
<goal>parse-version</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<profiles>
|
||||
<profile>
|
||||
<!-- Activate this profile to perform the release to Bintray -->
|
||||
<id>release-composite</id>
|
||||
<activation>
|
||||
<activeByDefault>false</activeByDefault>
|
||||
</activation>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>com.carrotgarden.maven</groupId>
|
||||
<artifactId>bintray-maven-plugin</artifactId>
|
||||
<version>1.5.20191113165555</version>
|
||||
<configuration>
|
||||
<skip>false</skip>
|
||||
<!-- Bintray organization name. -->
|
||||
<subject>minres</subject>
|
||||
<!-- Bintray target repository. -->
|
||||
<repository>eclipse</repository>
|
||||
<!-- Bintray package name -->
|
||||
<bintrayPackage>SCViewer</bintrayPackage>
|
||||
<!-- Bintray package version number -->
|
||||
<bintrayVersion>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}</bintrayVersion>
|
||||
<!-- remove any preexisting files -->
|
||||
<performDestroy>true</performDestroy>
|
||||
<!-- information used when creating the package -->
|
||||
<packageVcsUrl>https://git.minres.com/VP-Tools/SCViewer.git</packageVcsUrl>
|
||||
<packageLicenses>EPL-1.0</packageLicenses>
|
||||
<!-- Local folder content to sync to the remote repo. -->
|
||||
<sourceFolder>${project.build.directory}/repository</sourceFolder>
|
||||
<!-- Remote folder for local content upload, relative path. -->
|
||||
<targetFolder>scviewer-${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion}</targetFolder>
|
||||
<!-- Bintray credentials in settings.xml. -->
|
||||
<serverId>bintray-minres-deploy</serverId>
|
||||
</configuration>
|
||||
<executions>
|
||||
<!-- Activate "bintray:upload" during "package" -->
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>upload</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
||||
</project>
|
@ -0,0 +1,60 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>SCViewer Update site</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<style>@import url("web/site.css");</style>
|
||||
<script type="text/javascript">
|
||||
var returnval = 0;
|
||||
var stylesheet, xmlFile, cache, doc;
|
||||
function init(){
|
||||
// NSCP 7.1+ / Mozilla 1.4.1+ / Safari
|
||||
// Use the standard DOM Level 2 technique, if it is supported
|
||||
if (document.implementation && document.implementation.createDocument) {
|
||||
xmlFile = document.implementation.createDocument("", "", null);
|
||||
stylesheet = document.implementation.createDocument("", "", null);
|
||||
if (xmlFile.load){
|
||||
xmlFile.load("site.xml");
|
||||
stylesheet.load("web/site.xsl");
|
||||
} else {
|
||||
alert("Document could not be loaded by browser.");
|
||||
}
|
||||
xmlFile.addEventListener("load", transform, false);
|
||||
stylesheet.addEventListener("load", transform, false);
|
||||
}
|
||||
//IE 6.0+ solution
|
||||
else if (window.ActiveXObject) {
|
||||
xmlFile = new ActiveXObject("msxml2.DOMDocument.3.0");
|
||||
xmlFile.async = false;
|
||||
xmlFile.load("site.xml");
|
||||
stylesheet = new ActiveXObject("msxml2.FreeThreadedDOMDocument.3.0");
|
||||
stylesheet.async = false;
|
||||
stylesheet.load("web/site.xsl");
|
||||
cache = new ActiveXObject("msxml2.XSLTemplate.3.0");
|
||||
cache.stylesheet = stylesheet;
|
||||
transformData();
|
||||
}
|
||||
}
|
||||
// separate transformation function for IE 6.0+
|
||||
function transformData(){
|
||||
var processor = cache.createProcessor();
|
||||
processor.input = xmlFile;
|
||||
processor.transform();
|
||||
data.innerHTML = processor.output;
|
||||
}
|
||||
// separate transformation function for NSCP 7.1+ and Mozilla 1.4.1+
|
||||
function transform(){
|
||||
returnval+=1;
|
||||
if (returnval==2){
|
||||
var processor = new XSLTProcessor();
|
||||
processor.importStylesheet(stylesheet);
|
||||
doc = processor.transformToDocument(xmlFile);
|
||||
document.getElementById("data").innerHTML = doc.documentElement.innerHTML;
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onload="init();">
|
||||
<!--[insert static HTML here]-->
|
||||
<div id="data"><!-- this is where the transformed data goes --></div>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,12 @@
|
||||
<STYLE type="text/css">
|
||||
td.spacer {padding-bottom: 10px; padding-top: 10px;}
|
||||
.title { font-family: sans-serif; color: #99AACC;}
|
||||
.bodyText { font-family: sans-serif; font-size: 9pt; color:#000000; }
|
||||
.sub-header { font-family: sans-serif; font-style: normal; font-weight: bold; font-size: 9pt; color: white;}
|
||||
.log-text {font-family: sans-serif; font-style: normal; font-weight: lighter; font-size: 8pt; color:black;}
|
||||
.big-header { font-family: sans-serif; font-style: normal; font-weight: bold; font-size: 9pt; color: white; border-top:10px solid white;}
|
||||
.light-row {background:#FFFFFF}
|
||||
.dark-row {background:#EEEEFF}
|
||||
.header {background:#99AADD}
|
||||
#indent {word-wrap : break-word;width :300px;text-indent:10px;}
|
||||
</STYLE>
|
@ -0,0 +1,214 @@
|
||||
<xsl:stylesheet version = '1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl="urn:schemas-microsoft-com:xslt">
|
||||
<xsl:output method="html" encoding="UTF-8"/>
|
||||
<xsl:key name="cat" match="category" use="@name"/>
|
||||
<xsl:template match="/">
|
||||
<xsl:for-each select="site">
|
||||
<html>
|
||||
<head>
|
||||
<title>com.itjw.txviewer.updateSite</title>
|
||||
<style>@import url("web/site.css");</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1 class="title">com.itjw.txviewer.updateSite</h1>
|
||||
<p class="bodyText"><xsl:value-of select="description"/></p>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
||||
<xsl:for-each select="category-def">
|
||||
<xsl:sort select="@label" order="ascending" case-order="upper-first"/>
|
||||
<xsl:sort select="@name" order="ascending" case-order="upper-first"/>
|
||||
<xsl:if test="count(key('cat',@name)) != 0">
|
||||
<tr class="header">
|
||||
<td class="sub-header" width="30%">
|
||||
<xsl:value-of select="@name"/>
|
||||
</td>
|
||||
<td class="sub-header" width="70%">
|
||||
<xsl:value-of select="@label"/>
|
||||
</td>
|
||||
</tr>
|
||||
<xsl:for-each select="key('cat',@name)">
|
||||
<xsl:sort select="ancestor::feature//@version" order="ascending"/>
|
||||
<xsl:sort select="ancestor::feature//@id" order="ascending" case-order="upper-first"/>
|
||||
<tr>
|
||||
<xsl:choose>
|
||||
<xsl:when test="(position() mod 2 = 1)">
|
||||
<xsl:attribute name="class">dark-row</xsl:attribute>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:attribute name="class">light-row</xsl:attribute>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<td class="log-text" id="indent">
|
||||
<xsl:choose>
|
||||
<xsl:when test="ancestor::feature//@label">
|
||||
<a href="{ancestor::feature//@url}"><xsl:value-of select="ancestor::feature//@label"/></a>
|
||||
<br/>
|
||||
<div id="indent">
|
||||
(<xsl:value-of select="ancestor::feature//@id"/> - <xsl:value-of select="ancestor::feature//@version"/>)
|
||||
</div>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<a href="{ancestor::feature//@url}"><xsl:value-of select="ancestor::feature//@id"/> - <xsl:value-of select="ancestor::feature//@version"/></a>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<br />
|
||||
</td>
|
||||
<td>
|
||||
<table>
|
||||
<xsl:if test="ancestor::feature//@os">
|
||||
<tr><td class="log-text" id="indent">Operating Systems:</td>
|
||||
<td class="log-text" id="indent"><xsl:value-of select="ancestor::feature//@os"/></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
<xsl:if test="ancestor::feature//@ws">
|
||||
<tr><td class="log-text" id="indent">Windows Systems:</td>
|
||||
<td class="log-text" id="indent"><xsl:value-of select="ancestor::feature//@ws"/></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
<xsl:if test="ancestor::feature//@nl">
|
||||
<tr><td class="log-text" id="indent">Languages:</td>
|
||||
<td class="log-text" id="indent"><xsl:value-of select="ancestor::feature//@nl"/></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
<xsl:if test="ancestor::feature//@arch">
|
||||
<tr><td class="log-text" id="indent">Architecture:</td>
|
||||
<td class="log-text" id="indent"><xsl:value-of select="ancestor::feature//@arch"/></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:for-each>
|
||||
<tr><td class="spacer"><br/></td><td class="spacer"><br/></td></tr>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
<xsl:if test="count(feature) > count(feature/category)">
|
||||
<tr class="header">
|
||||
<td class="sub-header" colspan="2">
|
||||
Uncategorized
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
<xsl:choose>
|
||||
<xsl:when test="function-available('msxsl:node-set')">
|
||||
<xsl:variable name="rtf-nodes">
|
||||
<xsl:for-each select="feature[not(category)]">
|
||||
<xsl:sort select="@id" order="ascending" case-order="upper-first"/>
|
||||
<xsl:sort select="@version" order="ascending" />
|
||||
<xsl:value-of select="."/>
|
||||
<xsl:copy-of select="." />
|
||||
</xsl:for-each>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="myNodeSet" select="msxsl:node-set($rtf-nodes)/*"/>
|
||||
<xsl:for-each select="$myNodeSet">
|
||||
<tr>
|
||||
<xsl:choose>
|
||||
<xsl:when test="position() mod 2 = 1">
|
||||
<xsl:attribute name="class">dark-row</xsl:attribute>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:attribute name="class">light-row</xsl:attribute>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<td class="log-text" id="indent">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@label">
|
||||
<a href="{@url}"><xsl:value-of select="@label"/></a>
|
||||
<br />
|
||||
<div id="indent">
|
||||
(<xsl:value-of select="@id"/> - <xsl:value-of select="@version"/>)
|
||||
</div>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<a href="{@url}"><xsl:value-of select="@id"/> - <xsl:value-of select="@version"/></a>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<br /><br />
|
||||
</td>
|
||||
<td>
|
||||
<table>
|
||||
<xsl:if test="@os">
|
||||
<tr><td class="log-text" id="indent">Operating Systems:</td>
|
||||
<td class="log-text" id="indent"><xsl:value-of select="@os"/></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
<xsl:if test="@ws">
|
||||
<tr><td class="log-text" id="indent">Windows Systems:</td>
|
||||
<td class="log-text" id="indent"><xsl:value-of select="@ws"/></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
<xsl:if test="@nl">
|
||||
<tr><td class="log-text" id="indent">Languages:</td>
|
||||
<td class="log-text" id="indent"><xsl:value-of select="@nl"/></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
<xsl:if test="@arch">
|
||||
<tr><td class="log-text" id="indent">Architecture:</td>
|
||||
<td class="log-text" id="indent"><xsl:value-of select="@arch"/></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:for-each>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="feature[not(category)]">
|
||||
<xsl:sort select="@id" order="ascending" case-order="upper-first"/>
|
||||
<xsl:sort select="@version" order="ascending" />
|
||||
<tr>
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(preceding-sibling::feature[not(category)]) mod 2 = 1">
|
||||
<xsl:attribute name="class">dark-row</xsl:attribute>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:attribute name="class">light-row</xsl:attribute>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<td class="log-text" id="indent">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@label">
|
||||
<a href="{@url}"><xsl:value-of select="@label"/></a>
|
||||
<br />
|
||||
<div id="indent">
|
||||
(<xsl:value-of select="@id"/> - <xsl:value-of select="@version"/>)
|
||||
</div>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<a href="{@url}"><xsl:value-of select="@id"/> - <xsl:value-of select="@version"/></a>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<br /><br />
|
||||
</td>
|
||||
<td>
|
||||
<table>
|
||||
<xsl:if test="@os">
|
||||
<tr><td class="log-text" id="indent">Operating Systems:</td>
|
||||
<td class="log-text" id="indent"><xsl:value-of select="@os"/></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
<xsl:if test="@ws">
|
||||
<tr><td class="log-text" id="indent">Windows Systems:</td>
|
||||
<td class="log-text" id="indent"><xsl:value-of select="@ws"/></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
<xsl:if test="@nl">
|
||||
<tr><td class="log-text" id="indent">Languages:</td>
|
||||
<td class="log-text" id="indent"><xsl:value-of select="@nl"/></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
<xsl:if test="@arch">
|
||||
<tr><td class="log-text" id="indent">Architecture:</td>
|
||||
<td class="log-text" id="indent"><xsl:value-of select="@arch"/></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
Reference in New Issue
Block a user