nothing showed in bxe 2

Ludovic Gasc <[email protected]> Fri, 22 Jul 2005 18:47:47 +0200
Newsgroups gmane.editors.bitflux.general
Message-ID <[email protected]>
--Boundary-00=_zMS4CidQUmCHtZr
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi,

I'll tried to use bxe2 with my relax-ng.

Nothing showed in bitflux 2.

With this mail, I attach the files.

I'm beginner with relax-ng and xsl, I don't know if my files or bxe 2 is the 
problem.

Thanks very much for your response.
-- 
GASC Ludovic - Stagiaire chez Hospimedia
--
travaille sur Kubuntu 5.04 - KDE 3.4

--Boundary-00=_zMS4CidQUmCHtZr
Content-Type: text/html;
  charset="us-ascii";
  name="config.xml"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="config.xml"

<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- $Id: config.xml 687 2004-04-29 08:32:39Z chregu $ --><config>
    <files>
        <input>
            <!-- The XML-document with the actual data -->
            <file name="BX_xmlfile" method="webdav">exemple.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_xslfile">nitf_hospi.xsl</file>

            <!-- The XSL-document which transforms the xml to the output format -->
            
            <!-- The RelaxNG (XML Schema) -->
	    <file name="BX_validationfile">nitf_hospi.rng.xml</file>
        </input>
        <output>
            <file name="BX_exitdestination">../index.php</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/main.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/td/form.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>
            <file>NITF/nitf_hospi.js</file>
        </scripts>
        
        
    </files>
    
    <options>
        <option name="lang">de</option>
        <option name="serverIncludeFunction">cope2_serverIncludeURL</option>
        <option name="serverIncludeElement">include</option>
        <option name="autoParaElementName">para</option>
    
    </options>
<!-- here we define the buttons for the top button bar -->
    <buttons>
     <!-- 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="em" 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="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>

</config>

--Boundary-00=_zMS4CidQUmCHtZr
Content-Type: text/plain;
  charset="us-ascii";
  name="exemple.xml"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="exemple.xml"

<?xml version="1.0"?>

<paragraphe>
coucou, <i>ca</i> <b>va ?</b>
</paragraphe>
--Boundary-00=_zMS4CidQUmCHtZr
Content-Type: application/x-php;
  name="index.html"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="index.html"

<?php echo "<?xml version=\"1.0\"?>" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"  >
<head>

<meta name="bxeNS" content="xhtml=http://www.w3.org/1999/xhtml"/>
<meta name="bxeNS" content="lenya=http://apache.org/cocoon/lenya/page-envelope/1.0"/>
<meta name="bxeNS" content="dc=http://purl.org/dc/elements/1.1/" />
<meta name="bxeNS" content="unzih=http://unizh.ch/doctypes/elements/1.0" />
<meta name="bxeNS" content="dcterms=http://purl.org/dc/terms/" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="../css/editor.css" type="text/css" />

<script src="../bxeLoader.js" type="text/javascript"></script>


<!--<script language="javascript" src="http://www.hospimedia.fr/phpPortal/functions.js"></script>
<script language="javascript" src="http://www.hospimedia.fr/functions.js"></script>
<link rel='stylesheet' type='text/css' href='http://www.hospimedia.fr/themes/netstyle.css'>
<link rel='stylesheet' type='text/css' href='http://www.hospimedia.fr/images/chaines/ressources_humaines/chaineiestyle.css'><basefont face="Verdana" />-->


<title>Bitflux Editor</title>

</head>

<body onload="bxe_start('./config.xml')">
<div id="bxe_area">
<noscript>
<span style='font-family: Arial; padding: 5px; background-color: #ffffff'>
You need JavaScript enabled. Otherwise nothing at all works here
:)</span></noscript>
</div>
</body>
</html>

--Boundary-00=_zMS4CidQUmCHtZr
Content-Type: text/html;
  charset="us-ascii";
  name="nitf_hospi.rng.xml"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="nitf_hospi.rng.xml"

<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
  <define name="paragraphe">
    <element name="paragraphe">
      <ref name="attlist.paragraphe"/>
      <zeroOrMore>
        <ref name="i"/>
      </zeroOrMore>
      <zeroOrMore>
        <ref name="b"/>
      </zeroOrMore>
    </element>
  </define>
  <define name="attlist.paragraphe" combine="interleave">
    <empty/>
  </define>
  <!--
    Pour un balisage XML du genre:
    <b>texte en gras</b>
  -->
  <define name="b">
    <element name="b">
      <ref name="attlist.b"/>
      <text/>
    </element>
  </define>
  <define name="attlist.b" combine="interleave">
    <empty/>
  </define>
  <!--
    Pour un balisage XML du genre:
    <i>texte en italique</i>
  -->
  <define name="i">
    <element name="i">
      <ref name="attlist.i"/>
      <text/>
    </element>
  </define>
  <define name="attlist.i" combine="interleave">
    <empty/>
  </define>
</grammar>

--Boundary-00=_zMS4CidQUmCHtZr
Content-Type: text/html;
  charset="us-ascii";
  name="nitf_hospi.xsl"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="nitf_hospi.xsl"

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:content="http://purl.org/rss/1.0/modules/content/"
 xmlns:xhtml="http://www.w3.org/1999/xhtml"
 xmlns:dc="http://purl.org/dc/elements/1.1/"  
content:ns=""
xhtml:ns=""
dc:ns=""
>
    <xsl:template match="paragraphe">
        <html>
            <body>
            <div id="paragraphe">
<!--                 <xsl:value-of select="."/> -->
<xsl:apply-templates/>
            </div>
            </body>
        </html>
    </xsl:template>


    <xsl:template match="b">
        <b><xsl:value-of select="."/></b>
    </xsl:template>

</xsl:stylesheet>
--Boundary-00=_zMS4CidQUmCHtZr
Content-Type: text/x-objcsrc;
  charset="us-ascii";
  name="main.css"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="main.css"

/* ... IN VALID CODE WE TRUST ...http://www.intensivstation.ch */
/* css created by miss monorom 2004 http://www.monorom.to */
/* This css is made specialy for BX-CMS  */
/* css released under Creative Commons License - http://creativecommons.org/licenses/by/2.0/deed.en  */

/* @import url(bx-additions.css); */

/*body element, you can overwrite that with a custom stylesheet for example in mozilla*/

#ng_bitflux_org, body {
background-color: #ffffff;
font-size: 13px;
/*font-family: "Trebuchet MS", Geneva, Arial, Helvetica, SunSans-Regular, sans-serif;*/
font-family:  Arial,Verdana, SunSans-Regular, Sans-Serif;
color:#222;  

}

/* for iePC */ td{
font-size: 12px;
}
a {
color: #798C63;
background-color:transparent;
}
a:visited {color:#798C63;}
a:hover {color: #4bd32c; 
}
a:active { color:#4bd32c;}

h1{
color: #99b58d;
font-size:22px;
}
h2{
color: #99b58d;
font-size:15px;
}
h3{
font-size:14px;
}
h4{
font-size:12px;
}

/*#paragraphe {
border-left:1px solid #99b58d;
border-right:1px solid #99b58d;
border-bottom:1px solid #99b58d;
width: 300px;
margin: 0px;
margin-left: auto;
margin-right: auto;
padding: 0px;
}*/

/*#content  h1{
padding: 0px 50px 10px 50px;
margin:0px;
}
#content  h2{
padding: 0px 50px 0px 50px;
margin:0px 0px 5px 0px;
}

#content h3 {
margin: 0px 50px 5px 50px;
padding:0px;
border-bottom: 1px solid #aaa;
}
#content p{
line-height: 1.5em;
padding: 0px 50px 15px 50px;
margin:0px;
}

#content ul {
list-style-type: disc;
margin: 0px;
padding: 0px 50px 15px 75px;
 }

#content li {
line-height:18px;
margin: 0px;
padding: 0px 0px 10px 0px;
}

#content .post_content ul {
	padding-left: 20px;
}

#content .post_content li {
	padding-bottom: 0px;
}


#content table {
margin: 10px 50px;
padding:0px;
}
#content table td {
padding: 0px 30px 10px 0px;
margin:0px;
}*/

--Boundary-00=_zMS4CidQUmCHtZr
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-- 
bx-editor-users mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-users

--Boundary-00=_zMS4CidQUmCHtZr--