-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.xml
89 lines (86 loc) · 4.51 KB
/
index.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?xml version="1.0" encoding="UTF-8"?>
<!-- This xml-stylesheet URL has to be customized for each implementation - need to include namespaces -->
<?xml-stylesheet href="http://localhost:8888/TEILiteEditor/plugins/xsltforms/xsltforms.xsl" type="text/xsl"?>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:exfk="http://kuberam.ro/exsltforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xf="http://www.w3.org/2002/xforms">
<!--
2011, MITH
Author: Grant Dickie
Developed for the XML Editor Week Barn Raising
-->
<head>
<!-- Header information and body tags from tei-ann/example.xml -->
<title>CKEditor rich text editor</title>
<link rel="stylesheet" type="text/css" href="plugins/skins/office2003/dialog.css" />
<link rel="stylesheet" type="text/css" href="plugins/skins/office2003/editor.css" />
<link rel="stylesheet" type="text/css" href="plugins/skins/office2003/templates.css" />
<style language="text/css">
@namespace xf url("http://www.w3.org/2002/xforms");
#triggerHome {float:left;margin-right:500px;margin-bottom:25px;}
#outputSavedContent .xforms-label {margin-bottom:25px;margin-right:490px;font:bold 14px verdana;}
</style>
<!-- <script type="text/javascript" src="http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js"/>-->
<xf:model id="m">
<xf:instance id="i0">
<v xmlns="">
<description>
<teiHeader><p>The best <hi rend="strong">documentation</hi> (made by John S. Anderson and Andrew S. Anderson, dated 1989-12-12) on this subject is by an insider, Budget Director <persName corresp="#p_SHD1">John Harold Smith</persName>,
whose diary entries (actually, memoranda of conversation) for the same period are in the <persName corresp="#p_RFD1">Franklin D. Roosevelt</persName>
Library.</p><p>The <persName corresp="#p_LAWDUSN1">Leahy</persName> files in Record Group 218 at the National Archives (Records of the Joint Chiefs of Staff)
provided many of the early documents on the formative period (between <date when="1989-04-12">12 Apr 89</date> and
<date when="1989-03-01" when2="when2">1 Mar 89</date>) of the intelligence system…</p>
<list><head>This is the head element of list</head>
<item>This is the first item element</item>
<item>This is the second item element</item>
</list>
<table><role>This is the role element of table</role>
<cell>This is the first cell element</cell>
<cell>This is the second cell element</cell>
</table>
</teiHeader>
</description>
</v>
</xf:instance>
<xf:submission id="submitRTEcontent" ref="instance('i0')/description" resource="RTE_viewContent.xql" method="post" mode="synchronous" omit-xml-declaration="true" replace="all"/>
</xf:model>
</head>
<body>
<xf:trigger id="triggerHome">
<xf:label>Home</xf:label>
<xf:action ev:event="DOMActivate">
<xf:load resource="../index/index.xml"/>
</xf:action>
</xf:trigger>
<xf:trigger>
<xf:label>Submit</xf:label>
<xf:action ev:event="DOMActivate">
<xf:send submission="submitRTEcontent"/>
</xf:action>
</xf:trigger>
<p>
<xf:output id="outputSavedContent" ref="instance('i0')/description">
<xf:label>Saved editor content: </xf:label>
</xf:output>
</p>
<p>
<xf:textarea ref="instance('i0')/description" appearance="exfk:CKEditor">
<xf:label>CKEditor editor 2:</xf:label>
<xf:extension>
<exfk:rteOptions>
{
skin:'office2003'
,width: 1000
,height: 300
,extraPlugins : 'tei-ann'
,toolbar:
[
[ 'Source', 'teiannPersonBtn', 'teiannGlossaryBtn', 'teiannGeoLocationBtn', 'teiannDateBtn', 'teiannHyperlinkBtn' ],
'/',
[ 'teiannLineBreakBtn', 'teiannPageBreakBtn', 'teiannBoldBtn', 'teiannItalicBtn', 'teiannUnderlineBtn', 'teiannStrikethroughBtn', 'teiannParagraphBtn', 'teiannListBtn', 'teiannHeadBtn', 'teiannItemBtn', 'teiannTableBtn', 'teiannRoleBtn', 'teiannCellBtn' ]
]
}
</exfk:rteOptions>
</xf:extension>
</xf:textarea>
</p>
</body>
</html>