Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'transforms/org.eclipse.jet.transforms.taglibdoc/templates')
-rw-r--r--transforms/org.eclipse.jet.transforms.taglibdoc/templates/allTags/tag.html.jet165
-rw-r--r--transforms/org.eclipse.jet.transforms.taglibdoc/templates/control.jet90
-rw-r--r--transforms/org.eclipse.jet.transforms.taglibdoc/templates/dump.jet2
-rw-r--r--transforms/org.eclipse.jet.transforms.taglibdoc/templates/tagLibrary/overview.html.jet53
-rw-r--r--transforms/org.eclipse.jet.transforms.taglibdoc/templates/tagLibrary/toc.xml.jet11
5 files changed, 0 insertions, 321 deletions
diff --git a/transforms/org.eclipse.jet.transforms.taglibdoc/templates/allTags/tag.html.jet b/transforms/org.eclipse.jet.transforms.taglibdoc/templates/allTags/tag.html.jet
deleted file mode 100644
index b2757a2..0000000
--- a/transforms/org.eclipse.jet.transforms.taglibdoc/templates/allTags/tag.html.jet
+++ /dev/null
@@ -1,165 +0,0 @@
-<%@taglib prefix="c" id="org.eclipse.jet.controlTags"%>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<HTML>
-<HEAD>
-<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<META name="GENERATOR" content="IBM Software Development Platform">
-<link rel="STYLESHEET" href="../../../book.css" charset="ISO-8859-1" type="text/css"/>
-<TITLE>&lt;<c:get select="$tag/@tagQName" />&gt; - <c:get select="$tagLibrary/@name" /></TITLE>
-</HEAD>
-<BODY>
-<TABLE border="0" cellpadding="0" cellspacing="1" width="100%">
- <TBODY>
- <TR>
- <TH align="left">
- <P>&lt;<c:get select="$tag/@tagQName" />&gt;</P></TH>
- <TH align="right"><A href="overview.html"><c:get select="$tagLibrary/@name" /></A></TH>
- </TR>
- </TBODY>
-</TABLE>
-<HR>
-<P><B><c:get select="$tag/@name" /></B></P>
-<P><c:get select="$tag/@description"/></P>
-<HR>
-<TABLE border="1" width="100%">
- <TBODY>
- <TR>
- <TH colspan="2" align="left">Tag Summary</TH></TR>
- <TR>
- <TD width="10%">required</TD>
- <TD><SPAN style="font-family: monospace">
-<c:choose>
-<c:when test="local-name($tag) = 'iteratingTag'">
- &lt;<c:get select="$tag/@requiredTagInnards"/>&gt;<br>
- &nbsp;&nbsp;&nbsp;&nbsp;<I>content to be repeated for each iteration</I><BR>
- &lt;/<c:get select="$tag/@tagQName" />&gt;
-</c:when>
-<c:when test="local-name($tag) = 'emptyTag'">
- &lt;<c:get select="$tag/@requiredTagInnards"/>/&gt;<br>
-</c:when>
-<c:when test="local-name($tag) = 'conditionalTag'">
- &lt;<c:get select="$tag/@requiredTagInnards"/>&gt;<br>
- &nbsp;&nbsp;&nbsp;&nbsp;<I>content to process if tag condition is
- satisfied</I><BR>
- &lt;/<c:get select="$tag/@tagQName" />&gt;
-</c:when>
-<c:when test="local-name($tag) = 'containerTag'">
- &lt;<c:get select="$tag/@requiredTagInnards"/>&gt;<br>
- &nbsp;&nbsp;&nbsp;&nbsp;<I>content to be written</I><BR>
- &lt;/<c:get select="$tag/@tagQName" />&gt;
-</c:when>
-<c:when test="local-name($tag) = 'functionTag'">
- &lt;<c:get select="$tag/@requiredTagInnards"/>&gt;<br>
- &nbsp;&nbsp;&nbsp;&nbsp;<I>content consumed by tag evaluation</I><BR>
- &lt;/<c:get select="$tag/@tagQName" />&gt;
-</c:when>
-</c:choose>
- </SPAN></TD>
- </TR>
- <TR>
- <TD width="10%">full tag</TD>
- <TD><SPAN style="font-family: monospace">
-<c:choose>
-<c:when test="local-name($tag) = 'iteratingTag'">
- &lt;<c:get select="$tag/@allTagInnards"/>&gt;<br>
- &nbsp;&nbsp;&nbsp;&nbsp;<I>content to be repeated for each iteration</I><BR>
- &lt;/<c:get select="$tag/@tagQName" />&gt;
-</c:when>
-<c:when test="local-name($tag) = 'emptyTag'">
- &lt;<c:get select="$tag/@allTagInnards"/>/&gt;<br>
-</c:when>
-<c:when test="local-name($tag) = 'conditionalTag'">
- &lt;<c:get select="$tag/@allTagInnards"/>&gt;<br>
- &nbsp;&nbsp;&nbsp;&nbsp;<I>content to process if tag condition is
- satisfied</I><BR>
- &lt;/<c:get select="$tag/@tagQName" />&gt;
-</c:when>
-<c:when test="local-name($tag) = 'containerTag'">
- &lt;<c:get select="$tag/@allTagInnards"/>&gt;<br>
- &nbsp;&nbsp;&nbsp;&nbsp;<I>content to be written</I><BR>
- &lt;/<c:get select="$tag/@tagQName" />&gt;
-</c:when>
-<c:when test="local-name($tag) = 'functionTag'">
- &lt;<c:get select="$tag/@allTagInnards"/>&gt;<br>
- &nbsp;&nbsp;&nbsp;&nbsp;<I>content consumed by tag evaluation</I><BR>
- &lt;/<c:get select="$tag/@tagQName" />&gt;
-</c:when>
-</c:choose>
- </SPAN></TD>
- </TR>
- </TBODY>
-</TABLE>
-<c:if test="$tag/attribute[@use='required' or not(@use)]">
-<HR>
-<TABLE border="1" width="100%">
- <TBODY>
- <TR>
- <TH colspan="2" align="left">Required Attributes</TH></TR>
-<c:iterate select="$tag/attribute[@use='required']" var="attribute" >
- <TR>
- <TD width="10%"><c:get select="$attribute/@name" /></TD>
- <TD><c:get select="$attribute/@description"/></TD>
- </TR>
-</c:iterate>
- </TBODY>
-</TABLE>
-</c:if>
-<c:if test="$tag/attribute[@use!='required']">
-<HR>
-<TABLE border="1" width="100%">
- <TBODY>
- <TR>
- <TH colspan="2" align="left">Optional Attributes</TH></TR>
- <TR>
-<c:iterate select="$tag/attribute[@use!='required']" var="attribute" >
- <TR>
- <TD width="10%"><c:get select="$attribute/@name" /></TD>
- <TD><c:get select="$attribute/@description"/></TD>
- </TR>
-</c:iterate>
- </TBODY>
-</TABLE>
-</c:if>
-<HR>
-<TABLE border="1" width="100%">
- <TBODY>
- <TR>
- <TH colspan="2" align="left">Example</TH></TR>
- <TR>
- <TD width="10%"></TD>
- <TD><SPAN style="font-family: monospace">
-<c:userRegion><!-- Begin <c:get select="$tag/@name" /> example -->
-<c:initialCode>
-<c:choose>
-<c:when test="local-name($tag) = 'iteratingTag'">
- &lt;<c:get select="$tag/@requiredTagInnards"/>&gt;<br>
- &nbsp;&nbsp;&nbsp;&nbsp;<I>content to be repeated for each iteration</I><BR>
- &lt;/<c:get select="$tag/@tagQName" />&gt;
-</c:when>
-<c:when test="local-name($tag) = 'emptyTag'">
- &lt;<c:get select="$tag/@requiredTagInnards"/>/&gt;<br>
-</c:when>
-<c:when test="local-name($tag) = 'conditionalTag'">
- &lt;<c:get select="$tag/@requiredTagInnards"/>&gt;<br>
- &nbsp;&nbsp;&nbsp;&nbsp;<I>content to process if tag condition is
- satisfied</I><BR>
- &lt;/<c:get select="$tag/@tagQName" />&gt;
-</c:when>
-<c:when test="local-name($tag) = 'containerTag'">
- &lt;<c:get select="$tag/@requiredTagInnards"/>&gt;<br>
- &nbsp;&nbsp;&nbsp;&nbsp;<I>content to be written</I><BR>
- &lt;/<c:get select="$tag/@tagQName" />&gt;
-</c:when>
-<c:when test="local-name($tag) = 'functionTag'">
- &lt;<c:get select="$tag/@requiredTagInnards"/>&gt;<br>
- &nbsp;&nbsp;&nbsp;&nbsp;<I>content consumed by tag evaluation</I><BR>
- &lt;/<c:get select="$tag/@tagQName" />&gt;
-</c:when>
-</c:choose>
-</c:initialCode><!-- End <c:get select="$tag/@name" /> example --></c:userRegion>
-</SPAN></TD>
- </TR>
- </TBODY>
-</TABLE>
-<P></P></BODY>
-</HTML>
diff --git a/transforms/org.eclipse.jet.transforms.taglibdoc/templates/control.jet b/transforms/org.eclipse.jet.transforms.taglibdoc/templates/control.jet
deleted file mode 100644
index c6c4ef5..0000000
--- a/transforms/org.eclipse.jet.transforms.taglibdoc/templates/control.jet
+++ /dev/null
@@ -1,90 +0,0 @@
-<%@taglib prefix="c" id="org.eclipse.jet.controlTags" %>
-<%@taglib prefix="f" id="org.eclipse.jet.formatTags" %>
-<%@taglib prefix="ws" id="org.eclipse.jet.workspaceTags" %>
-
-*** Control template for Generate JET2 Tag Documentation
-
-<%-- Define variables for standard items --%>
-<c:setVariable var="jetPluginNS" select="'org.eclipse.jet'"/>
-<c:setVariable var="tagLibrariesXP" select="concat($jetPluginNS, '.tagLibraries')"/>
-<%-- XXX Hack. This should be picked up from the plug-in itself. To do this we need
- 1) the ability to readn Manifest.MF files with JET
- 2) the ability to discover the project containing the input (plugin.xml)
- We're not there yet.
---%>
-<c:setVariable var="pluginNS" select="$org.eclipse.jet.resource.project.name"/>
-<c:setVariable var="docPlugin" select="concat($org.eclipse.jet.resource.project.name, '.doc')"/>
-
- --- Define additional attributes for the current plugin element
-
- --- Iterate over each nested extension element
- <c:iterate select="/plugin/extension[@point = $tagLibrariesXP]" var="extension">
- --- Define additional attributes for the current extension element
-
- --- Iterate over each nested tagLibrary element
- <c:iterate select="$extension/tagLibrary" var="tagLibrary">
- --- Define additional attributes for the current tagLibrary element
- <c:set select="$tagLibrary" name="htmlDir">references/taglibs/<c:get select="$tagLibrary/@id"/><%-- TODO format=QC --%></c:set>
- <c:set select="$tagLibrary" name="tocXmlFile">toc<c:get select="$tagLibrary/@id"/><%-- TODO format="QC" --%>.xml</c:set>
- <c:set select="$tagLibrary" name="tocXmlDir"></c:set>
- <c:set select="$tagLibrary" name="tagPrefix"></c:set>
- <c:if test="$tagLibrary/@standardPrefix">
- <c:set select="$tagLibrary" name="tagPrefix"><c:get select="$tagLibrary/@standardPrefix"/>:</c:set>
- </c:if>
- <c:set select="$tagLibrary" name="description">TODO Define description of <c:get select="$tagLibrary/@name"/></c:set>
- <c:if test="$tagLibrary/description">
- <c:set select="$tagLibrary" name="description"><f:replaceAll value="\r?\n" replacement="<P>" regex="true"><c:get select="$tagLibrary/description"/></f:replaceAll></c:set>
- </c:if>
-
- --- Iterate over each nested conditionalTag element
- <c:iterate select="$tagLibrary/*[local-name() != 'description']" var="tag">
- --- Define additional attributes for the current conditionalTag element
- <c:set select="$tag" name="tagHtmlFile"><c:get select="$tag/@name" />Tag.html</c:set>
- <c:set select="$tag" name="tagQName"><c:get select="$tagLibrary/@tagPrefix"/><c:get select="$tag/@name" /></c:set>
- <c:set select="$tag" name="requiredAttrs"><c:iterate select="$tag/attribute[@use='required']" var="attribute"> <c:get select="$attribute/@name" />=&quot;<I>value</I>&quot;</c:iterate></c:set>
- <c:set select="$tag" name="optionalAttrs"><c:iterate select="$tag/attribute[@use!='required']" var="attribute"> <c:get select="$attribute/@name" />=&quot;<I>value</I>&quot;</c:iterate></c:set>
- <c:set select="$tag" name="requiredTagInnards"><c:get select="$tag/@tagQName" /><c:get select="$tag/@requiredAttrs"/></c:set>
- <c:set select="$tag" name="allTagInnards"><c:get select="$tag/@tagQName" /><c:get select="$tag/@requiredAttrs"/><c:get select="$tag/@optionalAttrs"/></c:set>
- <c:set select="$tag" name="description">TODO Define description of <c:get select="$tag/@name"/></c:set>
- <c:if test="$tag/description">
- <c:set select="$tag" name="description"><f:replaceAll value="\r?\n" replacement="<P>" regex="true"><c:get select="$tag/description"/></f:replaceAll></c:set>
- </c:if>
- --- Iterate over each nested attribute element
- <c:iterate select="$tag/attribute" var="attribute">
- --- Define additional attributes for the current attribute element
- <c:set select="$attribute" name="description">TODO Define description of <c:get select="$attribute/@name"/></c:set>
- <c:if test="$attribute/description">
- <c:set select="$attribute" name="description"><f:replaceAll value="\r?\n" replacement="<BR>" regex="true"><c:get select="$attribute/description"/></f:replaceAll></c:set>
- </c:if>
- </c:iterate>
- </c:iterate>
-
- </c:iterate>
- </c:iterate>
-
-*** Traverse the model and generate artifacts
- --- Generate artifacts for the current plugin element
-
- --- Iterate over each nested extension element
- <c:iterate select="/plugin/extension[@point = $tagLibrariesXP]" var="extension">
- --- Generate artifacts for the current extension element
-
- --- Iterate over each nested tagLibrary element
- <c:iterate select="$extension/tagLibrary" var="tagLibrary">
- --- Generate artifacts for the current tagLibrary element
- <ws:file template="templates/tagLibrary/overview.html.jet" path="{$docPlugin}/{$tagLibrary/@htmlDir}/overview.html" />
- <ws:file template="templates/tagLibrary/toc.xml.jet" path="{$docPlugin}/{$tagLibrary/@tocXmlDir}/{$tagLibrary/@tocXmlFile}" />
-
- --- Iterate over each nested conditionalTag element
- <c:iterate select="$tagLibrary/*[local-name() != 'description']" var="tag">
- --- Generate artifacts for the current conditionalTag element
- <ws:file template="templates/allTags/tag.html.jet" path="{$docPlugin}/{$tagLibrary/@htmlDir}/{$tag/@tagHtmlFile}"/>
-
- </c:iterate>
- </c:iterate>
- </c:iterate>
-
-*** Dump the transformed model for testing and debug purposes
-
-
-
diff --git a/transforms/org.eclipse.jet.transforms.taglibdoc/templates/dump.jet b/transforms/org.eclipse.jet.transforms.taglibdoc/templates/dump.jet
deleted file mode 100644
index a8b699e..0000000
--- a/transforms/org.eclipse.jet.transforms.taglibdoc/templates/dump.jet
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="windows-1252"?>
-<dump node="/*" format="true" entities="true"/>
diff --git a/transforms/org.eclipse.jet.transforms.taglibdoc/templates/tagLibrary/overview.html.jet b/transforms/org.eclipse.jet.transforms.taglibdoc/templates/tagLibrary/overview.html.jet
deleted file mode 100644
index 3e65fd2..0000000
--- a/transforms/org.eclipse.jet.transforms.taglibdoc/templates/tagLibrary/overview.html.jet
+++ /dev/null
@@ -1,53 +0,0 @@
-<%@taglib prefix="c" id="org.eclipse.jet.controlTags"%>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<HTML>
-<HEAD>
-<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
-<link rel="STYLESHEET" href="../../../book.css" charset="ISO-8859-1" type="text/css"/>
-<TITLE>overview.html</TITLE>
-</HEAD>
-<BODY>
-<TABLE border="0" cellpadding="0" cellspacing="1" width="100%">
-
- <TBODY>
- <TR>
- <TH align="left">
- <P>Overview</P>
- </TH>
- <TH align="right"><c:get select="$tagLibrary/@name" /></TH>
- </TR>
- </TBODY>
-</TABLE>
-<P><c:get select="$tagLibrary/@id" /></P>
-<P><c:get select="$tagLibrary/@description"/></P>
-<HR>
-<TABLE border="1" width="100%">
- <TBODY>
- <TR>
- <TH colspan="2" align="left">Tag Summary</TH></TR>
-<c:iterate select="$tagLibrary/*[local-name() != 'description']" var="tag" >
- <TR>
- <TD width="10%"><A href="<c:get select="$tag/@tagHtmlFile" />">&lt;<c:get select="$tag/@tagQName" />&gt;</A></TD>
- <TD><%--<roundtrip>--%><!-- Begin <c:get select="$tag/@name" /> description -->
- <%--<initialCode>--%><c:choose><c:when test="contains($tag/@description, '.')"><c:get select="substring-before($tag/@description,'.')"/></c:when><c:otherwise><c:get select="$tag/@description"/></c:otherwise></c:choose><%--</initialCode>--%>
- <!-- End <c:get select="$tag/@name" /> description -->
- <%--</roundtrip>--%></TD>
- </TR>
-</c:iterate>
- </TBODY>
-</TABLE>
-<HR>
-<TABLE border="1" width="100%">
- <TBODY>
- <TR>
- <TH colspan="2" align="left">Example Directive</TH></TR>
- <TR>
- <TD width="10%"></TD>
- <TD><SPAN style="font-family: sans-serif"><SPAN
- style="font-family: monospace">&lt;%@taglib prefix=&quot;<c:get select="$tagLibrary/@standardPrefix"/>&quot;
- id=&quot;<c:get select="$pluginNS"/>.<c:get select="$tagLibrary/@id" />&quot;%&gt;</SPAN></SPAN></TD>
- </TR>
- </TBODY>
-</TABLE>
-</BODY>
-</HTML>
diff --git a/transforms/org.eclipse.jet.transforms.taglibdoc/templates/tagLibrary/toc.xml.jet b/transforms/org.eclipse.jet.transforms.taglibdoc/templates/tagLibrary/toc.xml.jet
deleted file mode 100644
index 5558359..0000000
--- a/transforms/org.eclipse.jet.transforms.taglibdoc/templates/tagLibrary/toc.xml.jet
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?NLS TYPE="org.eclipse.help.toc"?>
-<%@taglib prefix="c" id="org.eclipse.jet.controlTags"%>
-
-<toc label="<c:get select="$tagLibrary/@name" />" link_to="toc.xml#tagReference">
- <topic label="<c:get select="$tagLibrary/@name" />" href="<c:get select="$tagLibrary/@htmlDir" />/overview.html" >
-<c:iterate select="$tagLibrary/*[local-name()!='description']" var="tag">
- <topic label="<c:get select="$tag/@tagQName" />" href="<c:get select="$tagLibrary/@htmlDir" />/<c:get select="$tag/@tagHtmlFile" />"/>
-</c:iterate>
- </topic>
-</toc>

Back to the top