r1362 - branches/bxe_2_0/examples/xslt2

[email protected]
Newsgroups gmane.editors.bitflux.cvs
Message-ID <[email protected]>
Author: chregu
Date: Fri Jul 29 11:39:23 2005
New Revision: 1362

Modified:
   branches/bxe_2_0/examples/xslt2/config.xml
Log:
more comment

Modified: branches/bxe_2_0/examples/xslt2/config.xml
==============================================================================
--- branches/bxe_2_0/examples/xslt2/config.xml	(original)
+++ branches/bxe_2_0/examples/xslt2/config.xml	Fri Jul 29 11:39:23 2005
@@ -1,18 +1,67 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
 <!-- $Id: config.xml 687 2004-04-29 08:32:39Z chregu $ --><config>
     <files>
+    
+      <!-- the following file definitions are presumably the most important
+             ones for BXE (= Bitflux Editor). They define, where exactly the files
+             come from (and go to). 
+             Some Remarks for the beginning:
+             - Be sure that all xml documents come with mime-type text/xml, this is
+               important for files ending with .xsd/.xml and .xsl. Most certainly you   
+               have to adjust your webserver for doing that.
+             - You can't get different files from different servers/ports (except css files)
+               For example, if "index.html" comes from somehost/index.html, you can't 
+               get the xml-file from otherhost/index.html, not even from 
+               somehost:81/index.html. If you have can't avoid that, you need some kind
+               of proxy script which redirect the traffic from one host to another. I 
+               wrote a PHP script, which exactly does that, if anyone interested,
+               contact  me (chregu-zfZwwz/hh/[email protected])
+
+            You can define the file location in different ways:
+            The most standard  is:
+            <file name="BX_xmlfile">xml/article.xml</file>
+            which gets the file with a HTTP-get from xml/article.xml (relativ to
+            index.html)
+
+            If you want to provide the location via an URL-Parameter:
+            <file name="BX_xmlfile" isParam="true">xml-url</file>
+            
+            and the request "index.html?xml-url=xml/article.xml" leads to the same as the above
+            example.
+            
+            If you want to provide the location via an Javascript-Parameter:
+            <file name="BX_xmlfile" isConfigParam="true">keyNameOfArrayElement</file>
+            
+            and the request bxe_start("config.xml",true/false, array("keyNameOfArrayElement"=>"xml/article.xml")) leads to the same as the above
+            example. (note: the example doesn't work, you have to create your array in another way...
+            
+            Furthermore you have the option "prefix", which just prefixes the url with
+            this value. The following example would do the same as above again (postfix
+            is currently missing) 
+            <file name="BX_xmlfile" prefix="xml/">article.xml</file>
+
+            If you want to access your files with other methods than http-get and put, you can
+            use the  parameter "method".
+            It's only implemented for BX_xmlfile currently. If you need that in more places, we could
+            certainly add it.
+            Default for BX_xmlfile is method="webdav"
+            Look at mozile/td/ for different implementation of it.
+
+            -->
         <input>
             <!-- The XML-document with the actual data -->
             <file name="BX_xmlfile" method="http">testdoc.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">_main_.xsl</file>
+           <!-- the xsl file -->
+           <file name="BX_xslfile">_main_.xsl</file>
 
             <!-- The XSL-document which transforms the xml to the output format -->
             
             <!-- The RelaxNG (XML Schema) -->
             <file name="BX_validationfile">_main_rng.xml</file>
-            <file name="BX_langfile">../../lang/en.xml</file>
+            
+            <!-- the language file -->
+            <!-- optional, if you want just english, you don't need it -->
+            <!-- <file name="BX_langfile">../../lang/fr.xml</file> -->
         </input>
         <output>
             <file name="BX_exitdestination">../../index.html</file>
-- 
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.