Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpelder2006-11-21 15:35:08 -0500
committerpelder2006-11-21 15:35:08 -0500
commit0ff861880316a067249750eba5530b799194e002 (patch)
treeb4f902403bd17c5d83037679179c2aa248be2d51 /doc/org.eclipse.jet.doc/references/xpath/predefinedVariables.xhtml
parent85e924faca7becbb1ce6bc080e8a4c2784d69587 (diff)
downloadorg.eclipse.jet-0ff861880316a067249750eba5530b799194e002.tar.gz
org.eclipse.jet-0ff861880316a067249750eba5530b799194e002.tar.xz
org.eclipse.jet-0ff861880316a067249750eba5530b799194e002.zip
[163849] Merge in 0.7.x maintenance fixes
Diffstat (limited to 'doc/org.eclipse.jet.doc/references/xpath/predefinedVariables.xhtml')
-rw-r--r--doc/org.eclipse.jet.doc/references/xpath/predefinedVariables.xhtml162
1 files changed, 162 insertions, 0 deletions
diff --git a/doc/org.eclipse.jet.doc/references/xpath/predefinedVariables.xhtml b/doc/org.eclipse.jet.doc/references/xpath/predefinedVariables.xhtml
new file mode 100644
index 0000000..919ccf5
--- /dev/null
+++ b/doc/org.eclipse.jet.doc/references/xpath/predefinedVariables.xhtml
@@ -0,0 +1,162 @@
+<?xml version='1.0'?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html>
+
+ <head>
+
+ <title>Predefined XPath Variables</title>
+
+ <link charset="ISO-8859-1" href="../../book.css" rel="STYLESHEET"
+ type="text/css"/>
+
+ </head>
+
+ <body>
+
+ <h2>Predefined XPath Variables</h2>
+
+ <p>When a JET transformation loads a model from an Eclipse
+ resource, the following XPath variables are set.</p>
+
+ <table border="1">
+
+ <tr>
+
+ <th>Variable</th>
+
+ <th>Contents</th>
+
+ </tr>
+
+ <tr>
+
+ <td>org.eclipse.jet.resource.name</td>
+
+ <td>the name of the loaded resource</td>
+
+ </tr>
+
+ <tr>
+
+ <td>org.eclipse.jet.resource.type</td>
+
+ <td>the resource type (file, folder, project)</td>
+
+ </tr>
+
+ <tr>
+
+ <td>org.eclipse.jet.resource.location</td>
+
+ <td>the resource location (absolute file system path)</td>
+
+ </tr>
+
+ <tr>
+
+ <td>org.eclipse.jet.resource.rawLocation</td>
+
+ <td>the resource raw location. See
+ <a href="PLUGINS_ROOT/org.eclipse.platform.doc.isv/reference/api/org/eclipse/core/resources/IResource.html#getRawLocation()">
+ IResource.getRawLocation()</a>.</td>
+
+ </tr>
+
+ <tr>
+
+ <td>org.eclipse.jet.resource.fullPath</td>
+
+ <td>the Eclipse workspace relative path of the resource.</td>
+
+ </tr>
+
+ <tr>
+
+ <td>org.eclipse.jet.resource.projectRelativePath</td>
+
+ <td>the Eclipse project relative path of the resource.</td>
+
+ </tr>
+
+ <tr>
+
+ <td>org.eclipse.jet.resource.fileExtension</td>
+
+ <td>the resource file extension</td>
+
+ </tr>
+
+ <tr>
+
+ <td>org.eclipse.jet.resource.fileName</td>
+
+ <td>the resource file name (without path).</td>
+
+ </tr>
+
+ </table>
+
+ <p>The following variables are defined if the loaded resource is a
+ file or folder.</p>
+
+ <table border="1">
+
+ <tr>
+
+ <th>Variable</th>
+
+ <th>Contents</th>
+
+ </tr>
+
+ <tr>
+
+ <td>org.eclipse.jet.resource.parent.name</td>
+
+ <td>The resource&apos;s parent name (files and folders
+ only)</td>
+
+ </tr>
+
+ <tr>
+
+ <td>org.eclipse.jet.resource.parent.location</td>
+
+ <td>The resource&apos;s parent location (files and folders
+ only).</td>
+
+ </tr>
+
+ <tr>
+
+ <td>org.eclipse.jet.resource.parent.rawLocation</td>
+
+ <td>the resource&apos;s parent raw location (files and folders
+ only).</td>
+
+ </tr>
+
+ <tr>
+
+ <td>org.eclipse.jet.resource.parent.fullPath</td>
+
+ <td>the resource&apos;s parent full path (files and folders
+ only).</td>
+
+ </tr>
+
+ <tr>
+
+ <td>org.eclipse.jet.resource.parent.projectRelativePath</td>
+
+ <td>the resource&apos;s parent project relative path (files and
+ folders only).</td>
+
+ </tr>
+
+ </table>
+
+ </body>
+
+</html>
+

Back to the top