Add new attachment

Only authorized users are allowed to upload new attachments.

This page (revision-58) was last changed on 03-Mar-2011 11:02 by Janne Jalkanen  

This page was created on 23-May-2006 22:17 by 84.192.36.248

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 12 removed one line
At line 16 changed one line
to powerful expressions based on XPATH and JSR-170.
to powerful expressions based on XPATH and JSR-170[1].
At line 18 changed one line
with support for [WikiSubPages] and [WikiFarms]. (wiki-farms todo)
with support for [SubPages] and [WikiFarms]. (wiki-farms todo)
At line 22 changed 2 lines
[SandBox] =>yield link to wiki page
[SandBox/attach.jpg] =>yield link to attachment
[SandBox] =>yield link to wiki page
[SandBox/attach.jpg] =>yield link to attachment
At line 27 changed 4 lines
[SandBox/w:properties/variableX] =>yield value of wiki variable
[SandBox/w:pages/SomeSubPage] =>yield link to a subpage
[SandBox/w:versions/v123] =>yield link to wiki page version
[SandBox/w:versions/v123/attach.jpg] =>yield link to attachment
[SandBox/w:properties/variableX] =>yield value of wiki variable
[SandBox/w:pages/SomeSubPage] =>yield link to a subpage
[SandBox/w:versions/w:v123] =>yield link to wiki page version
[SandBox/w:versions/w:v123/attach.jpg] =>yield link to attachment
At line 34 changed 3 lines
[SandBox/@variableX] =>yield value of wiki variable
[SandBox/SomeSubPage] =>yield link to the subpage
[SandBox/v123/attach.jpg] =>yield link to attachment
[SandBox/@variableX] =>yield value of wiki variable
[SandBox/SomeSubPage] =>yield link to the subpage
[SandBox/w:v123/attach.jpg] =>yield link to attachment
At line 44 changed 6 lines
[SandBox/w:to] =>yield all referred-to page links
[SandBox/w:from] =>yield all referred-from page links
[SandBox/w:pages] =>yield links to all subpages of SandBox
[SandBox/w:versions] =>yield links to all versions of SandBox
[SandBox/w:properties] =>yield all variables (how? name=value)
[SandBox/w:attachments] =>yield all attachment links
[SandBox/w:to] =>yield all referred-to page links
[SandBox/w:from] =>yield all referred-from page links
[SandBox/w:pages] =>yield links to all subpages of SandBox
[SandBox/w:versions] =>yield links to all versions of SandBox
[SandBox/w:properties] =>yield all variables (how? name=value)
[SandBox/w:attachments] =>yield all attachment links
At line 64 removed 6 lines
<w:author> ... </w:author>
<w:pagename> ... </w:pagename>
<w:pathname> ... </w:pathname>
<w:created> ... </w:created>
<w:lastModified> ... </w:lastModified>
<w:versionNumber> ... </w:versionNumber>
At line 64 added 7 lines
<w:name> ... </w:name>
<w:path> ... </w:path>
<w:length> ... </w:length>
<w:author> ... </w:author>
<w:created> ... </w:created>
<w:lastModified> ... </w:lastModified>
<w:versionNumber> ... </w:versionNumber>
At line 76 changed 7 lines
<w:filesize> ... </w:filesize>
<w:author> ... </w:author>
<w:filename> ... </w:filename>
<w:pathname> ... </w:pathname>
<w:created> ... </w:created>
<w:lastModified> ... </w:lastModified>
<w:versionNumber> ... </w:versionNumber>
<w:properties>
<w:name> ... </w:name>
<w:path> ... </w:path>
<w:length> ... </w:length>
<w:author> ... </w:author>
<w:created> ... </w:created>
<w:lastModified> ... </w:lastModified>
<w:versionNumber> ... </w:versionNumber>
</w:properties>
At line 84 changed 3 lines
<v1> ... </v1>
<v2> ... </v2>
<v3> ... </v3>
<w:v1> ... </w:v1>
<w:v2> ... </w:v2>
<w:v3> ... </w:v3>
At line 95 changed 3 lines
<v1> ... </v1>
<v2> ... </v2>
<v3> ... </v3>
<w:v1> ... </w:v1>
<w:v2> ... </w:v2>
<w:v3> ... </w:v3>
At line 115 changed 2 lines
|| Name || Description || Type
| <w:pages> | Set of pages. Used as root element or as a collection of sub-pages | ''pages''
|| Child Node || Description || Type
| <w:pages> | Set of pages. Used as root element or as a collection of sub-pages | ''page'' nodes
| <w:properties> | Set of properties, or metadata of a page or attachment | ''properties''
| <w:attachments> | Set of attachments | ''attachment'' nodes
| <w:versions> | Set of page or attachment versions | ''page'' or ''attachment'' nodes
| <w:to> | Set of pages which are being referred by this page (outgoing links) | ''page'' nodes
| <w:from> | set of pages which are referring to this page (incoming links) | ''page'' nodes
|| Property Node || Description || Type
| <w:name> | Page or Attachment Name, including punctuations| String
| <w:path> | Complete path name, including names of parent pages | String
At line 118 changed 3 lines
| <w:pagename> | Page Name, including punctuations | String
| <w:filename> | File Name or an attachment, including punctuations | String
| <w:pathname> | Complete path name, including names of parent pages | String
| <w:length> | length (number of bytes) of a page or attachment | number
At line 124 removed 9 lines
| <w:filesize> | Filesize (number of bytes) of an attachment | number
| <w:properties> | Set of properties, or metadata of a page or attachment | ''properties''
| <w:attachments> | Set of attachments of a page | ''attachments''
| <w:versions> | set of page or attachment versions | ''pages'' or ''attachments''
| <w:to> | Set of pages which are being referred by this page (outgoing links) | ''pages''
| <w:from> | set of pages which are referring to this page (incoming links) | ''pages''
| <w:parent> | Parent page | ''page''
At line 135 changed 3 lines
The contents of a ''page'' or ''attachment'' always refers to its current state.
The {{<w:versions>}} element provides a set of pages or attachements of
all past __and current__ versions.
* __Wiki Names__\\
Page or Attachment nodes use a wiki-name without punctuations or blanks.
The {{<w:name>}} property contains the full name, including punctuations and blanks.
At line 138 added 4 lines
* __Versions node__ \\
Page or Attachment nodes always refer to their current state.
The {{<w:versions>}} node contains references to all past __and current__ versions.
Each version gets a unique sequence number propery like this: {{w:v1}}, {{w:v2}}, {{w:v%%sub xx%%}}.
At line 140 changed one line
All sibling ''pages'', sibling ''attachments'' or sibling ''properties'' are assumed to be unique. In other words, there can not be a page with the same name inside a single w:pages element.
* __Same Name Siblings__ (JSR-170[1], chap 4.3) \\
All nodes inside {{<w:pages>}}, {{<w:attachments>}} or {{<w:property>}} must have a unique name.
In other words, there can not be a page with the same name
inside a single {{<w:pages>}} node; all page properties have unique names etc.
(multi-value properties need further investigation)
At line 142 changed one line
The <w:from> and <w:to> are ''virtual'' elements, in the sense that they are computed on request, rather then being physically present in the document tree.
* __Virtual nodes__ \\
The {{<w:from>}} and {{<w:to>}} nodes are ''virtual'' in the sense that they are computed
on request, rather then being physically present in the document tree.
At line 159 changed 2 lines
/w:pages/SandBox/w:versions/v127/w:properties/versionLabel
=> SandBox/v127/@versionLabel
/w:pages/SandBox/w:versions/w:v127/w:properties/versionLabel
=> SandBox/w:v127/@versionLabel
At line 197 added 3 lines
You can use local wiki page variables inside xpath expressions too, prefix them with a $.
{{{
[{SET node='Main' }]
At line 201 added 3 lines
[$node/w:to]
}}}
At line 210 changed one line
[./w:filesize|Sanbox/attach.png] --todo check this out
[@w:length|Sanbox/attach.png]
At line 222 changed one line
[* ./w:pagename has version @liveVersion, here is the [link|.] |Sandbox/w:to]
[* @w:name has version @liveVersion, here is the [link|.] |Sandbox/w:to]
At line 227 changed one line
[{SET format='* ./w:pagename has version @liveVersion, here is the [link|.]' }]
[{SET format='* @w:name has version @liveVersion, here is the [link|.]' }]
At line 239 changed one line
[{SET tableformat='| ./w:pagename | @liveVersion | [link|.]' }]
[{SET tableformat='| @w:name | @liveVersion | [link|.]' }]
At line 259 added 4 lines
----
[#1] JSR-170 : see [http://www.jcp.org/en/jsr/detail?id=170]
Version Date Modified Size Author Changes ... Change note
58 03-Mar-2011 11:02 25.952 kB Janne Jalkanen to previous
57 28-Feb-2011 12:32 26.856 kB illetidly to previous | to last
56 27-Feb-2011 13:51 26.206 kB trevib to previous | to last
55 27-Feb-2011 12:38 26.077 kB britneyw to previous | to last
54 05-Feb-2011 10:50 25.952 kB Harry Metske to previous | to last removed spam
53 03-Feb-2011 12:45 26.189 kB neverstoper to previous | to last
52 26-Sep-2007 23:00 25.952 kB JanneJalkanen to previous | to last
51 26-Sep-2007 01:35 25.964 kB 219.138.204.162 to previous | to last
50 12-Oct-2006 11:16 25.952 kB JanneJalkanen to previous | to last
49 10-Oct-2006 12:30 26.132 kB halloween to previous | to last remove spam
48 09-Oct-2006 15:12 25.952 kB 212.123.14.6 to previous | to last remove spam
47 09-Oct-2006 14:02 26.138 kB dresses to previous | to last
46 18-Jun-2006 11:46 25.952 kB Dirk Frederickx to previous | to last
45 27-May-2006 15:16 16.641 kB Dirk Frederickx to previous | to last
44 27-May-2006 15:16 16.641 kB Dirk Frederickx to previous | to last
43 26-May-2006 12:04 15.931 kB Rolf Schumacher to previous | to last
42 26-May-2006 12:04 16.055 kB Rolf Schumacher to previous | to last
41 26-May-2006 12:03 16.029 kB Rolf Schumacher to previous | to last
« This page (revision-58) was last changed on 03-Mar-2011 11:02 by Janne Jalkanen