<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- $Id: config.xml 1444 2006-01-11 08:13:24Z chregu $ --><config>
    <files>
        <input>
            <!-- The XML-document with the actual data -->
            <file name="BX_xmlfile">content.xml</file>
           <!-- The xhtml with the appropriate div tag (e.g. <div bxe_xpath="/xhtml:html/lenya:meta/dc:title" />)
                 An xhtml file can be used instead of an xsl to provide the page layout of the non-editable part -->
            <file name="BX_xhtmlfile">index.bxe.xml</file>

            <!-- The XSL-document which transforms the xml to the output format -->
            
            <!-- The RelaxNG (XML Schema) -->
            <file name="BX_validationfile">schema/homepage.rng.xml</file>
        </input>
        <output>
            <file name="BX_exitdestination">../../index.html</file>

         </output>
        
        <!-- You can't provide a different "method" than http.get for the following files -->
        <css>
            <!-- Document specific css, which you should adjust.  -->
             <file>css/content-bxeng.css</file>
          
        </css>
        
        <scripts>
        <!-- These are the to be included js files 
        the important .js files are included by bxeLoader.js, but you should
        not have to worry about them. 
        You can also add your own js-files here.
        -->

            <file>js/bxehtmltb.js</file>
            <file>js/table.js</file>
            <file>mozile/jsdav.js</file>
            <file>mozile/td/webdav.js</file>
            <file>mozile/mozilekb.js</file>
            
            
            <file>relaxng/AttributeVDOM.js</file>

            <file>relaxng/NodeVDOM.js</file>
            <file>relaxng/DocumentVDOM.js</file>
            <file>relaxng/ElementVDOM.js</file>
            <file>relaxng/DocumentVAL.js</file>
            <file>relaxng/NodeVAL.js</file>
            <file>relaxng/ElementVAL.js</file>

            <file>relaxng/RelaxNG.js</file>
        
        </scripts>
        
        
    </files>
    <options> 
    <option name="autoParaElementName">p</option>
    <option name="autoParaElementNamespace">http://www.w3.org/1999/xhtml</option>
    <option name="showSplashScreen">true</option>
    <option name="mergeDifferentBlocksOnDelete">true</option>
    </options>
<!-- here we define the buttons for the top button bar -->
    <buttons>
    
    <!-- The location of the image for the buttons
           if none is provided, the images/buttons.png is taken 
    <location src="../../images/bxe.png"/>
    -->
     <!-- the dimension tag is for defining the dimensions of your button image and how
            large each button is. -->
    <dimension width="120" height="140" buttonwidth="20" buttonheight="20"/>
    <!-- For each button, we need a definition
    attributes:  
        col: in which column the button is in the button image
        row: in which row the button is in the button image
        name: the name of the button, this has to be unique and is used as tool tip at the moment
        ns: a namespace associated to the button (usually the namespace of the element to be inserted)
        type: The type of the "event" which should happen
            "function": This function will be called, when the button is clicked
            "insertElement": This element will be inserted
            "event": This event will be triggered
            
            If there's no "type" attribute, but a "action" attribute, the event in the action attribute
            will be triggered. 
            
            If type "event" or the action attribute is defined, the event gets the value of @name as parameter.
        examples: 
        - inserts the element xhtml:b at cursor position 
          <button name="b" col="1" row="1" type="insertElement" ns="http://www.w3.org/1999/xhtml">b</button>
        - calls the function DoSomething(), when clicked
          <button name="b" col="1" row="1" type="function">DoSomething</button>
        - triggers the event ToggleTextClass (and makes the selection bold in this example)
          the 2 examples are the same, the later is here for backwards compatibility.
          <button name="b" col="1" row="1" type="event" ns="http://www.w3.org/1999/xhtml">ToggleTextClass</button>
          <button name="b" col="1" row="1" action="ToggleTextClass" ns="http://www.w3.org/1999/xhtml"/>
          
    -->
    
        <button name="b" col="1" row="1" action="ToggleTextClass" ns="http://www.w3.org/1999/xhtml"/>
        <button name="i" col="0" row="1" action="ToggleTextClass" ns="http://www.w3.org/1999/xhtml"/>

        <button name="sub" col="4" row="1" action="ToggleTextClass" ns="http://www.w3.org/1999/xhtml"/>
        <button name="sup" col="5" row="1" action="ToggleTextClass" ns="http://www.w3.org/1999/xhtml"/>
        <button name="clean_inline" col="0" row="6" action="CleanInline"/>
        <button name="link" col="0" row="5" action="InsertLink"/>
        <button name="unlink" col="1" row="5" action="DeleteLink"/>
        <button name="create_table" col="2" row="5" action="InsertTable"/>
        <button name="Unordered_List" col="3" row="2" action="UnorderedList"/>
        <button name="Ordered_List" col="2" row="2" action="OrderedList"/>

        <button name="Copy" col="0" row="4" action="ClipboardCopy"/>
        <button name="Cut" col="1" row="4" action="ClipboardCut"/>
        
        <button name="Paste" col="2" row="4" action="ClipboardPaste"/>
        <button name="PasteDialog" col="4" row="4" action="ClipboardPasteDialog"/>
     
        
        <button name="Image" col="3" row="5" action="InsertImage"/>
        <button name="Save" col="1" row="6" action="DocumentSave"/>
        <button name="Undo" col="3" row="6" action="Undo"/>
        <button name="Redo" col="4" row="6" action="Redo"/>
        <button name="Asset" col="2" row="6" action="InsertAsset"/>

    </buttons>
    <callbacks>
        <element name="object" ns="http://www.w3.org/1999/xhtml" type="popup">?lenya.usecase=bxeng&amp;lenya.step=image-upload-show</element>
        <element name="img" ns="http://www.w3.org/1999/xhtml" type="popup">?lenya.usecase=bxeng&amp;lenya.step=image-upload-show</element>
        <element name="table" ns="http://www.w3.org/1999/xhtml" type="function">bxe_InsertTableCallback</element>
        <element name="asset" ns="http://apache.org/cocoon/lenya/page-envelope/1.0" type="popup">?lenya.usecase=bxeng&amp;lenya.step=asset-upload-show</element>

        <element name="a" ns="http://www.w3.org/1999/xhtml" type="popup">?lenya.usecase=bxeng&amp;lenya.step=link-show</element>
    </callbacks>
    
    <plugins>
    <plugin name="XMLSnippets">
        <option name="h1" >
            <xhtml:h1 xmlns:xhtml="http://www.w3.org/1999/xhtml">hello</xhtml:h1>
            <xhtml:p xmlns:xhtml="http://www.w3.org/1999/xhtml">world</xhtml:p>
        </option>
        <option name="inline">
             <xhtml:a xmlns:xhtml="http://www.w3.org/1999/xhtml">hello</xhtml:a>
             </option>
             <option name="invalid">
             <foobar> jkjkj </foobar>
             <bar> </bar>
             </option>
    </plugin>
    <plugin name="ClipboardPasteDialog">
    </plugin>
    </plugins>
<context type="dontShow">
         <!-- inline elements -->       
         <element name="abbr" ns="http://www.w3.org/1999/xhtml"/>
         <element name="acronym" ns="http://www.w3.org/1999/xhtml"/>
         <element name="big" ns="http://www.w3.org/1999/xhtml"/>
         <element name="button" ns="http://www.w3.org/1999/xhtml"/>
         <element name="dfn" ns="http://www.w3.org/1999/xhtml"/>

         <element name="input" ns="http://www.w3.org/1999/xhtml"/>
         <element name="kbd" ns="http://www.w3.org/1999/xhtml"/>
         <element name="label" ns="http://www.w3.org/1999/xhtml"/>
         <element name="q" ns="http://www.w3.org/1999/xhtml"/>
         <element name="samp" ns="http://www.w3.org/1999/xhtml"/>
         <element name="select" ns="http://www.w3.org/1999/xhtml"/>
         <element name="small" ns="http://www.w3.org/1999/xhtml"/>
         <element name="span" ns="http://www.w3.org/1999/xhtml"/>
         <element name="textarea" ns="http://www.w3.org/1999/xhtml"/>

         <element name="tt" ns="http://www.w3.org/1999/xhtml"/>
         <element name="unizh:important" ns="http://www.w3.org/1999/xhtml"/>
         <element name="var" ns="http://www.w3.org/1999/xhtml"/>
         <!-- block elements --> 
         <element name="address" ns="http://www.w3.org/1999/xhtml"/>
         <element name="blockquote" ns="http://www.w3.org/1999/xhtml"/>
         <element name="div" ns="http://www.w3.org/1999/xhtml"/>
         <element name="dl" ns="http://www.w3.org/1999/xhtml"/>
         <element name="fieldset" ns="http://www.w3.org/1999/xhtml"/>

         <element name="form" ns="http://www.w3.org/1999/xhtml"/>
         <element name="h1" ns="http://www.w3.org/1999/xhtml"/>
         <element name="h5" ns="http://www.w3.org/1999/xhtml"/>
         <element name="h6" ns="http://www.w3.org/1999/xhtml"/>         
         <element name="asset" ns="http://apache.org/cocoon/lenya/page-envelope/1.0"/> 
         <element name="pre" ns="http://www.w3.org/1999/xhtml"/>
         <element name="table" ns="http://www.w3.org/1999/xhtml"/>
         <element name="ol" ns="http://www.w3.org/1999/xhtml"/>
    <element name="ul" ns="http://www.w3.org/1999/xhtml"/>
         <!-- attributes --> 
         <attribute name="id"/>      
         <attribute name="style"/>      
         <attribute name="xml:lang"/>      
    </context>
    </config>
