You operate with full rights, usually that's dangerously too much.
Id:
Right:
<html xmlns:dsssl="http://www.askemos.org/2000/NameSpaceDSSSL" xmlns:xslt="http://www.w3.org/1999/XSL/Transform">
<xslt:variable name="selected">
<dsssl:copy-of select="#CONTENT">
(node-list
(let ((id (data (form-field 'id (current-node)))))
(node-list-filter
(lambda (node) (and (match-element? 'role node)
(equal? id (attribute-string 'id node))))
(xsl-variable "roles")))
(xsl-variable "role-schema"))
</dsssl:copy-of>
</xslt:variable>
<head>
<title>gcai role form</title>
</head>
<body bccolor="white">
<dsssl:if test="(service-level)">
<h1>Take Care!</h1>
<p>You operate with full rights, usually that's dangerously too
much.</p>
<hr></hr>
</dsssl:if>
<h1>gcai role form</h1>
<dsssl:for-each select="(xsl-variable "roles")">
<p><dsssl:a href="
(read-locator
(msg 'location-format)
(cons (string-append "?id="
(attribute-string 'id (current-node)))
(cons (car (msg 'destination)) (msg 'location))))"><dsssl:copy-of select="(literal (attribute-string 'id (current-node)))"></dsssl:copy-of></dsssl:a>
::
<dsssl:copy-of select="(children (node-list-first
(select-elements (children (current-node)) 'description)))"></dsssl:copy-of></p>
</dsssl:for-each>
<dsssl:form action="'()" method="POST">
<p>Id: <dsssl:copy-of select="
(literal (data (form-field 'id (current-node))))"></dsssl:copy-of></p>
<p>Right: <dsssl:input name="right" size="60" type="text" dsssl:value="
(right->string
(node-list->right
(node-list-first
(select-elements
(children (node-list-first (xsl-variable "selected")))
'right)))) "></dsssl:input></p>
<textarea cols="60" name="description" rows="10">
<dsssl:copy-of select="
(literal
(xml-format
(children (select-elements
(children (node-list-first (xsl-variable "selected")))
'description))))"></dsssl:copy-of>
</textarea>
<p>
<input name="action" type="hidden" value="change-role"></input>
<dsssl:input name="id" type="hidden" dsssl:value="(data (form-field 'id (current-node)))"></dsssl:input>
<input type="submit"></input>
</p>
</dsssl:form>
</body>
<!--
;;; Local Variables: ***
;;; mode: indented-text ***
;;; End: ***
-->
</html>
Diese Seite findet man von: overview, .
Letzte Modifikation:
Autor(en): jfw,
Dokument Nummer A67bb0753e1676f81983e0ecf3a15b391
geliefert an public
um Thu, 20 Nov 2008 19:02:31 +0100