You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by tv...@apache.org on 2009/11/28 21:39:35 UTC
svn commit: r885146 - in /incubator/pivot/trunk/demos: www/ xsl/
Author: tvolkert
Date: Sat Nov 28 20:39:34 2009
New Revision: 885146
URL: http://svn.apache.org/viewvc?rev=885146&view=rev
Log:
Minor clean up to demos www
Modified:
incubator/pivot/trunk/demos/www/animated-clock.xml
incubator/pivot/trunk/demos/www/component-explorer.xml
incubator/pivot/trunk/demos/www/decorators.xml
incubator/pivot/trunk/demos/www/dom-interaction.xml
incubator/pivot/trunk/demos/www/file-drag-drop.xml
incubator/pivot/trunk/demos/www/fixed-column-table.xml
incubator/pivot/trunk/demos/www/index.xml
incubator/pivot/trunk/demos/www/itunes-search.xml
incubator/pivot/trunk/demos/www/json-viewer.xml
incubator/pivot/trunk/demos/www/kitchen-sink.xml
incubator/pivot/trunk/demos/www/large-data.xml
incubator/pivot/trunk/demos/www/multiselect.xml
incubator/pivot/trunk/demos/www/rss-feed.xml
incubator/pivot/trunk/demos/www/scripting.xml
incubator/pivot/trunk/demos/www/stock-tracker.xml
incubator/pivot/trunk/demos/www/table-row-editor.xml
incubator/pivot/trunk/demos/www/xml-viewer.xml
incubator/pivot/trunk/demos/xsl/demo.html.xsl
incubator/pivot/trunk/demos/xsl/demo.jnlp.xsl
incubator/pivot/trunk/demos/xsl/index.xsl
Modified: incubator/pivot/trunk/demos/www/animated-clock.xml
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/animated-clock.xml?rev=885146&r1=885145&r2=885146&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/www/animated-clock.xml (original)
+++ incubator/pivot/trunk/demos/www/animated-clock.xml Sat Nov 28 20:39:34 2009
@@ -30,12 +30,12 @@
Demonstrates the use of the MovieView component, which is used to present an animated
clock. The clock is drawn using Pivot's drawing API.
</p>
- <demo class="org.apache.pivot.demos.clock.ClockDemo" width="320" height="320">
+ <application class="org.apache.pivot.demos.clock.ClockDemo" width="320" height="320">
<libraries>
<library>core</library>
<library>wtk</library>
<library>demos</library>
</libraries>
- </demo>
+ </application>
</body>
</document>
Modified: incubator/pivot/trunk/demos/www/component-explorer.xml
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/component-explorer.xml?rev=885146&r1=885145&r2=885146&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/www/component-explorer.xml (original)
+++ incubator/pivot/trunk/demos/www/component-explorer.xml Sat Nov 28 20:39:34 2009
@@ -22,34 +22,18 @@
<description>
Allows interaction with the properties and styles of the stock Pivot components.
</description>
- <footer/>
- <new-window/>
+ <full-screen>true</full-screen>
</properties>
- <head>
- <style type="text/css">
- * {
- padding: 0px;
- margin: 0px;
- }
-
- html, body {
- height: 100%;
- overflow: hidden;
- }
- </style>
- </head>
-
<body>
- <demo class="org.apache.pivot.tutorials.explorer.ComponentExplorer" width="100%"
- height="100%">
- <signed/>
+ <application class="org.apache.pivot.tutorials.explorer.ComponentExplorer"
+ width="100%" height="100%" signed="true">
<libraries>
<library>core</library>
<library>wtk</library>
<library>tools</library>
<library>tutorials</library>
</libraries>
- </demo>
+ </application>
</body>
</document>
Modified: incubator/pivot/trunk/demos/www/decorators.xml
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/decorators.xml?rev=885146&r1=885145&r2=885146&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/www/decorators.xml (original)
+++ incubator/pivot/trunk/demos/www/decorators.xml Sat Nov 28 20:39:34 2009
@@ -34,12 +34,13 @@
effects, etc. This example shows a window with a reflection decorator and a frame with
a fade decorator.
</p>
- <demo class="org.apache.pivot.demos.decorator.DecoratorDemo" width="640" height="640">
+ <application class="org.apache.pivot.demos.decorator.DecoratorDemo"
+ width="640" height="640">
<libraries>
<library>core</library>
<library>wtk</library>
<library>demos</library>
</libraries>
- </demo>
+ </application>
</body>
</document>
Modified: incubator/pivot/trunk/demos/www/dom-interaction.xml
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/dom-interaction.xml?rev=885146&r1=885145&r2=885146&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/www/dom-interaction.xml (original)
+++ incubator/pivot/trunk/demos/www/dom-interaction.xml Sat Nov 28 20:39:34 2009
@@ -48,8 +48,8 @@
<table>
<tr>
<td style="text-align:center; border:solid 1px #999999">
- <demo class="org.apache.pivot.demos.dom.DOMInteractionDemo" width="380"
- height="240">
+ <application class="org.apache.pivot.demos.dom.DOMInteractionDemo"
+ width="380" height="240">
<libraries>
<library>core</library>
<library>wtk</library>
@@ -58,7 +58,7 @@
<attributes>
<id>domTestApplet</id>
</attributes>
- </demo>
+ </application>
</td>
</tr>
<tr>
Modified: incubator/pivot/trunk/demos/www/file-drag-drop.xml
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/file-drag-drop.xml?rev=885146&r1=885145&r2=885146&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/www/file-drag-drop.xml (original)
+++ incubator/pivot/trunk/demos/www/file-drag-drop.xml Sat Nov 28 20:39:34 2009
@@ -30,14 +30,14 @@
from the desktop or local file system into the applet for upload to a web or other
server.
</p>
- <demo class="org.apache.pivot.demos.dnd.FileDropTargetDemo" width="380" height="260">
- <signed/>
+ <application class="org.apache.pivot.demos.dnd.FileDropTargetDemo"
+ width="380" height="260" signed="true">
<libraries>
<library>core</library>
<library>wtk</library>
<library>demos</library>
</libraries>
- </demo>
+ </application>
<p>
Note that the application doesn't actually perform the upload - it merely serves as a
demonstration of Pivot's ability to interact with the native OS.
Modified: incubator/pivot/trunk/demos/www/fixed-column-table.xml
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/fixed-column-table.xml?rev=885146&r1=885145&r2=885146&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/www/fixed-column-table.xml (original)
+++ incubator/pivot/trunk/demos/www/fixed-column-table.xml Sat Nov 28 20:39:34 2009
@@ -30,12 +30,13 @@
Demonstrates how to create a table with fixed columns in Pivot. Fixed columns are
handy when displaying tables with many columns.
</p>
- <demo class="org.apache.pivot.demos.tables.FixedColumnTable" width="300" height="170">
+ <application class="org.apache.pivot.demos.tables.FixedColumnTable"
+ width="300" height="170">
<libraries>
<library>core</library>
<library>wtk</library>
<library>demos</library>
</libraries>
- </demo>
+ </application>
</body>
</document>
Modified: incubator/pivot/trunk/demos/www/index.xml
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/index.xml?rev=885146&r1=885145&r2=885146&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/www/index.xml (original)
+++ incubator/pivot/trunk/demos/www/index.xml Sat Nov 28 20:39:34 2009
@@ -26,11 +26,11 @@
A collection of Pivot demos. All demos require
<a href="http://www.java.com/">Java 6</a> or greater.
</p>
- <demo-item id="kitchen-sink"/>
- <demo-item id="stock-tracker"/>
- <demo-item id="component-explorer"/>
- <demo-item id="itunes-search"/>
- <demo-item id="charting">
+ <application-item id="kitchen-sink" footer="true" featured="true" new-window="true"/>
+ <application-item id="stock-tracker"/>
+ <application-item id="component-explorer" footer="true" featured="true" new-window="true"/>
+ <application-item id="itunes-search"/>
+ <application-item id="charting" footer="true" featured="true" new-window="true">
<remote href="http://ixnay.biz/charts.html"/>
<properties>
<title>Charting</title>
@@ -38,17 +38,14 @@
Demonstrates charting in Pivot using the JFreeChart chart provider (hosted at
http://ixnay.biz).
</description>
- <featured/>
- <footer/>
- <new-window/>
</properties>
- </demo-item>
- <demo-item id="json-viewer"/>
- <demo-item id="xml-viewer"/>
- <demo-item id="scripting"/>
- <demo-item id="file-drag-drop"/>
- <demo-item id="table-row-editor"/>
- <demo-item id="ticker-slideshow">
+ </application-item>
+ <application-item id="json-viewer"/>
+ <application-item id="xml-viewer"/>
+ <application-item id="scripting"/>
+ <application-item id="file-drag-drop"/>
+ <application-item id="table-row-editor"/>
+ <application-item id="ticker-slideshow" new-window="true">
<remote href="http://www.satelliteconsulting.com/"/>
<properties>
<title>News Ticker/Slide Show</title>
@@ -56,15 +53,14 @@
Demonstrates Pivot used in a real-world context, used to show a news feed and
a slide show of client logos (hosted at www.satelliteconsulting.com).
</description>
- <new-window/>
</properties>
- </demo-item>
- <demo-item id="animated-clock"/>
- <demo-item id="large-data"/>
- <demo-item id="rss-feed"/>
- <demo-item id="dom-interaction"/>
- <demo-item id="decorators"/>
- <demo-item id="fixed-column-table"/>
- <demo-item id="multiselect"/>
+ </application-item>
+ <application-item id="animated-clock"/>
+ <application-item id="large-data"/>
+ <application-item id="rss-feed"/>
+ <application-item id="dom-interaction"/>
+ <application-item id="decorators"/>
+ <application-item id="fixed-column-table"/>
+ <application-item id="multiselect"/>
</body>
</document>
Modified: incubator/pivot/trunk/demos/www/itunes-search.xml
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/itunes-search.xml?rev=885146&r1=885145&r2=885146&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/www/itunes-search.xml (original)
+++ incubator/pivot/trunk/demos/www/itunes-search.xml Sat Nov 28 20:39:34 2009
@@ -30,14 +30,14 @@
Simple application that allows a user to run search queries against the iTunes Music
Store and presents the results in a table view.
</p>
- <demo class="org.apache.pivot.demos.itunes.SearchDemo" width="640" height="480">
- <signed/>
+ <application class="org.apache.pivot.demos.itunes.SearchDemo"
+ width="640" height="480" signed="true">
<libraries>
<library>core</library>
<library>wtk</library>
<library>web</library>
<library>demos</library>
</libraries>
- </demo>
+ </application>
</body>
</document>
Modified: incubator/pivot/trunk/demos/www/json-viewer.xml
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/json-viewer.xml?rev=885146&r1=885145&r2=885146&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/www/json-viewer.xml (original)
+++ incubator/pivot/trunk/demos/www/json-viewer.xml Sat Nov 28 20:39:34 2009
@@ -28,13 +28,13 @@
<p>
Allows users to visually browse a JSON structure using a TreeView component.
</p>
- <demo class="org.apache.pivot.tools.json.JSONViewer" width="360" height="480">
- <signed/>
+ <application class="org.apache.pivot.tools.json.JSONViewer"
+ width="360" height="480" signed="true">
<libraries>
<library>core</library>
<library>wtk</library>
<library>tools</library>
</libraries>
- </demo>
+ </application>
</body>
</document>
Modified: incubator/pivot/trunk/demos/www/kitchen-sink.xml
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/kitchen-sink.xml?rev=885146&r1=885145&r2=885146&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/www/kitchen-sink.xml (original)
+++ incubator/pivot/trunk/demos/www/kitchen-sink.xml Sat Nov 28 20:39:34 2009
@@ -27,33 +27,17 @@
<description>
Demonstrates a number of commonly used Pivot components.
</description>
- <footer/>
- <new-window/>
+ <full-screen>true</full-screen>
</properties>
- <head>
- <style type="text/css">
- * {
- padding: 0px;
- margin: 0px;
- }
-
- html, body {
- height: 100%;
- overflow: hidden;
- }
- </style>
- </head>
-
<body>
- <demo class="org.apache.pivot.tutorials.KitchenSink" width="100%"
- height="100%">
+ <application class="org.apache.pivot.tutorials.KitchenSink" width="100%" height="100%">
<libraries>
<library>core</library>
<library>wtk</library>
<library>tutorials</library>
</libraries>
- </demo>
+ </application>
</body>
</document>
Modified: incubator/pivot/trunk/demos/www/large-data.xml
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/large-data.xml?rev=885146&r1=885145&r2=885146&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/www/large-data.xml (original)
+++ incubator/pivot/trunk/demos/www/large-data.xml Sat Nov 28 20:39:34 2009
@@ -39,7 +39,7 @@
Note that the 10e3.csv, 10e4.csv, and 10e5.csv files are not included in this
distribution due to their large size.
</p>
- <demo class="org.apache.pivot.demos.million.LargeData" width="600" height="480">
+ <application class="org.apache.pivot.demos.million.LargeData" width="600" height="480">
<libraries>
<library>core</library>
<library>wtk</library>
@@ -48,6 +48,6 @@
<startup-properties>
<basePath>pivot-demos/assets</basePath>
</startup-properties>
- </demo>
+ </application>
</body>
</document>
Modified: incubator/pivot/trunk/demos/www/multiselect.xml
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/multiselect.xml?rev=885146&r1=885145&r2=885146&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/www/multiselect.xml (original)
+++ incubator/pivot/trunk/demos/www/multiselect.xml Sat Nov 28 20:39:34 2009
@@ -31,13 +31,13 @@
ListView component. This is more efficient than maintaining a list of individual
selected indexes.
</p>
- <demo class="org.apache.pivot.demos.lists.MultiSelect" width="480" height="360">
+ <application class="org.apache.pivot.demos.lists.MultiSelect" width="480" height="360">
<libraries>
<library>core</library>
<library>wtk</library>
<library>demos</library>
</libraries>
- </demo>
+ </application>
<p>
TableView also maintains selection in this manner.
</p>
Modified: incubator/pivot/trunk/demos/www/rss-feed.xml
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/rss-feed.xml?rev=885146&r1=885145&r2=885146&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/www/rss-feed.xml (original)
+++ incubator/pivot/trunk/demos/www/rss-feed.xml Sat Nov 28 20:39:34 2009
@@ -30,13 +30,13 @@
custom list view item renderer to present the news data. Double-clicking an item in
the list will open the article in a new window.
</p>
- <demo class="org.apache.pivot.demos.rss.RSSFeedDemo" width="480" height="360">
+ <application class="org.apache.pivot.demos.rss.RSSFeedDemo" width="480" height="360">
<libraries>
<library>core</library>
<library>web</library>
<library>wtk</library>
<library>demos</library>
</libraries>
- </demo>
+ </application>
</body>
</document>
Modified: incubator/pivot/trunk/demos/www/scripting.xml
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/scripting.xml?rev=885146&r1=885145&r2=885146&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/www/scripting.xml (original)
+++ incubator/pivot/trunk/demos/www/scripting.xml Sat Nov 28 20:39:34 2009
@@ -30,12 +30,13 @@
implement event handlers and populate a list view component with data. It also
demonstrates data sharing between script and Java code:
</p>
- <demo class="org.apache.pivot.tutorials.scripting.Scripting" width="480" height="360">
+ <application class="org.apache.pivot.tutorials.scripting.Scripting"
+ width="480" height="360">
<libraries>
<library>core</library>
<library>wtk</library>
<library>tutorials</library>
</libraries>
- </demo>
+ </application>
</body>
</document>
Modified: incubator/pivot/trunk/demos/www/stock-tracker.xml
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/stock-tracker.xml?rev=885146&r1=885145&r2=885146&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/www/stock-tracker.xml (original)
+++ incubator/pivot/trunk/demos/www/stock-tracker.xml Sat Nov 28 20:39:34 2009
@@ -31,8 +31,8 @@
Yahoo! Finance as a CSV file and presents it in a table view component (the applet is
signed to allow it to communicate with the Yahoo web service):
</p>
- <demo class="org.apache.pivot.tutorials.stocktracker.StockTracker" width="480" height="360">
- <signed/>
+ <application class="org.apache.pivot.tutorials.stocktracker.StockTracker"
+ width="480" height="360" signed="true">
<libraries>
<library>core</library>
<library>wtk</library>
@@ -42,7 +42,7 @@
<startup-properties>
<language>en</language>
</startup-properties>
- </demo>
+ </application>
<p>
Users can add or remove stock symbols using the text input and buttons at the bottom
of the applet. Selecting a row in the table shows additional information about the
Modified: incubator/pivot/trunk/demos/www/table-row-editor.xml
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/table-row-editor.xml?rev=885146&r1=885145&r2=885146&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/www/table-row-editor.xml (original)
+++ incubator/pivot/trunk/demos/www/table-row-editor.xml Sat Nov 28 20:39:34 2009
@@ -29,13 +29,14 @@
This sample application demonstrates the use of a flip transition to bring up a table
view row editor.
</p>
- <demo class="org.apache.pivot.demos.roweditor.RowEditorDemo" width="480" height="360">
+ <application class="org.apache.pivot.demos.roweditor.RowEditorDemo"
+ width="480" height="360">
<libraries>
<library>core</library>
<library>wtk</library>
<library>demos</library>
</libraries>
- </demo>
+ </application>
<p>
Users can double click on any row to bring up the editor. Pressing the Enter key or
clicking outside the bounds of the editor will save the edits, and pressing the Escape
Modified: incubator/pivot/trunk/demos/www/xml-viewer.xml
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/www/xml-viewer.xml?rev=885146&r1=885145&r2=885146&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/www/xml-viewer.xml (original)
+++ incubator/pivot/trunk/demos/www/xml-viewer.xml Sat Nov 28 20:39:34 2009
@@ -28,13 +28,13 @@
<p>
Allows users to visually browse an XML document using a TreeView component.
</p>
- <demo class="org.apache.pivot.tools.xml.XMLViewer" width="640" height="480">
- <signed/>
+ <application class="org.apache.pivot.tools.xml.XMLViewer"
+ width="640" height="480" signed="true">
<libraries>
<library>core</library>
<library>wtk</library>
<library>tools</library>
</libraries>
- </demo>
+ </application>
</body>
</document>
Modified: incubator/pivot/trunk/demos/xsl/demo.html.xsl
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/xsl/demo.html.xsl?rev=885146&r1=885145&r2=885146&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/xsl/demo.html.xsl (original)
+++ incubator/pivot/trunk/demos/xsl/demo.html.xsl Sat Nov 28 20:39:34 2009
@@ -34,6 +34,19 @@
</title>
<link rel="stylesheet" href="demo.css" type="text/css"/>
<script xmlns="" type="text/javascript" src="http://java.com/js/deployJava.js"></script>
+ <xsl:if test="boolean(properties/full-screen)">
+ <style type="text/css">
+ * {
+ padding: 0px;
+ margin: 0px;
+ }
+
+ html, body {
+ height: 100%;
+ overflow: hidden;
+ }
+ </style>
+ </xsl:if>
<xsl:apply-templates select="head"/>
</head>
@@ -53,8 +66,8 @@
<xsl:apply-templates/>
</xsl:template>
- <!-- <demo> gets translated to a JavaScript block that launches the applet -->
- <xsl:template match="demo">
+ <!-- <application> gets translated to a JavaScript block that launches the applet -->
+ <xsl:template match="application">
<script type="text/javascript">
var attributes = {
code:"org.apache.pivot.wtk.BrowserApplicationContext$HostApplet",
@@ -68,7 +81,7 @@
var libraries = [];
<xsl:apply-templates select="libraries/library">
- <xsl:with-param name="signed" select="signed"/>
+ <xsl:with-param name="signed" select="boolean(@signed)"/>
</xsl:apply-templates>
attributes.archive = libraries.join(",");
Modified: incubator/pivot/trunk/demos/xsl/demo.jnlp.xsl
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/xsl/demo.jnlp.xsl?rev=885146&r1=885145&r2=885146&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/xsl/demo.jnlp.xsl (original)
+++ incubator/pivot/trunk/demos/xsl/demo.jnlp.xsl Sat Nov 28 20:39:34 2009
@@ -29,7 +29,7 @@
<xsl:variable name="project" select="document('project.xml')/project"/>
- <xsl:template match="demo">
+ <xsl:template match="application">
<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="application/x-java-jnlp-file" pageEncoding="UTF-8" %>
@@ -68,7 +68,7 @@
</shortcut>
</information>
- <xsl:if test="signed">
+ <xsl:if test="boolean(@signed)">
<security>
<all-permissions/>
</security>
@@ -82,7 +82,7 @@
<java version="1.6+" href="http://java.sun.com/products/autodl/j2se"/>
<xsl:apply-templates select="libraries/library">
- <xsl:with-param name="signed" select="signed"/>
+ <xsl:with-param name="signed" select="boolean(@signed)"/>
</xsl:apply-templates>
</resources>
Modified: incubator/pivot/trunk/demos/xsl/index.xsl
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/demos/xsl/index.xsl?rev=885146&r1=885145&r2=885146&view=diff
==============================================================================
--- incubator/pivot/trunk/demos/xsl/index.xsl (original)
+++ incubator/pivot/trunk/demos/xsl/index.xsl Sat Nov 28 20:39:34 2009
@@ -92,8 +92,8 @@
<xsl:apply-templates/>
</xsl:template>
- <!-- <demo-item> gets translated to a demo summary with links to the demo -->
- <xsl:template match="demo-item">
+ <!-- <application-item> gets translated to a demo summary with links to the demo -->
+ <xsl:template match="application-item">
<xsl:variable name="id" select="@id"/>
<xsl:if test="position()>1">
@@ -110,7 +110,7 @@
<h3><xsl:value-of select="properties/title"/></h3>
<p>
<xsl:choose>
- <xsl:when test="properties/new-window">
+ <xsl:when test="@new-window='true'">
<a href="{$href}" target="_new">Applet</a>
</xsl:when>
<xsl:otherwise>
@@ -126,7 +126,7 @@
<h3><xsl:value-of select="$demo/properties/title"/></h3>
<p>
<xsl:choose>
- <xsl:when test="$demo/properties/new-window">
+ <xsl:when test="@new-window='true'">
<a href="{$id}.html" target="_new">Applet</a>
</xsl:when>
<xsl:otherwise>