<?xml version="1.0" encoding="UTF-8" ?>

      
     
    
   
  
 
 <variable name="portletnavi">
  <copy-of select="#CONTENT">
		(fetch "portletNavi"
	       body: (sxml `(form 
	                      (get "navilinklist")
	                      (dest ,(oid-&gt;string (me (data (xsl-variable "portalName")))))
	                      (portalName ,(data (xsl-variable "portalName")))
	                      (portalLocation ,(literal (read-locator (msg 'location-format)
                   																						 	(msg 'location)
     								
              																		)
     																			))
	                    ))
	  )  	      
  </copy-of>
 </variable>
 <variable name="sidedata">
  <copy-of select="(fetch (msg &amp;apos;destination)
	  		 		  								body: (sxml `(form (get &amp;quot;sidedata&amp;quot;))))"></copy-of>
 </variable>

 <variable name="realDestination">
  <copy-of select="#CONTENT">
	   (begin 
			 (define (xcons aList rList)
						     (if (pair? (cdr rList))
						     		 (xcons (cons (car rList) aList) (cdr rList))
						      	 (cons  (car rList) aList)
						     )		
			 )

		   ;;(literal (read-locator (msg 'location-format)
	     ;;                       (reverse (xcons (msg 'destination) 
	     ;;                                       (parsed-locator (data (form-field "portalLocation" (current-node))))))))
	     
		   (literal (read-locator (msg 'location-format)
	                            (reverse (msg 'destination))))
	   )
	 </copy-of>
 </variable>
 <variable name="protection">
  <protection>
   <copy-of select="#CONTENT">  
   (let* ((protectionString (data ((sxpath '(Description protection)) (me (oid-&gt;string (msg 'dc-creator)) 'metainfo))))
          (protectionList (string-split protectionString "/"))
         )
         (node-list-map
           (lambda (protection)
             (cond 
               ((equal? protection (data (xsl-variable "portalEditRight")))
                (sxml '(edit "true"))
               )
             )
           )
           protectionList
         )
         ;; liste durchgehen und prüfen ob eins der geforden Rechte drin steht
         ;; mit true oder false notieren 
   )
   </copy-of>
  </protection>
 </variable>
 <template match="*[@type=&amp;quot;read&amp;quot;]">
  <call-template name="read"></call-template>
 </template>
 <template match="*[@type=&amp;quot;write&amp;quot;]">
  <call-template name="write"></call-template>
 </template>
 <include href="portalDavDir/includes/portal_frame/portal_read.xml"></include>
 <include href="portalDavDir/includes/portal_frame/portal_write.xml"></include>
 <include href="portalDavDir/includes/portal_frame/portal_template.xml"></include>


