BXE 2 XSL problems w/ DITA <topic>

F Baube <[email protected]> Fri, 17 Jun 2005 16:37:39 +0300
Newsgroups gmane.editors.bitflux.general
Message-ID <[email protected]>
Hi all,

I encountered a problem running BXE 2 (the SVN version).  It 
displays an error dialog box that I do not know how to interpret.

I am trying to get BXE to edit a DITA topic.   So far there is 
DITA support in some commercial tools, but I think it would be 
quite valuable to DITA users to have in-browser editing support.

In principle this should not be too difficult (AFAICT), since 
 topic bodies are fairly close to XHTML.  There will be difficul-
ties with (for example) links, but that can be dealt with later. 

The full DITA schema (translated from DTD to RNG) is pretty big. 
So, rather than try to load the entire thing into BXE, I used 
"trang" to process a typical topic and generate the RNG that 
specifies it. For the XSL and the CSS that BXE needs, I have 
taken them from the DITA Open Toolkit (version 1.0.2). 

And, this is running on Firefox 1.0.4 on Debian Linux. 


So far, I've set up config.xml like this:

  <config>
  <files>
  <input>

    <!-- The XML-document with the actual data -->
    <file name="BX_xmlfile" method="webdav">DITA-testdoc.xml</file>

    <!-- this file comes from the DITA Open Toolkit.  I have also
         copied over the "xslhtml/" subdirectory that it uses --> 
    <file name="BX_xslfile">dita2xhtml.xsl</file>

    <!-- The RelaxNG (XML Schema) -->
    <!-- this is the file created by Trang. it is less than 4K --> 
    <file name="BX_validationfile">DITA-topic-mini-rng.xml</file>

  </input>

  <css>
    <!-- this file also comes from the DITA Open Toolkit, 
          from the file css/topic.css --> 
    <file>css/DITA-topic.css</file>
  </css>


What happens when I load the BXE page is:

the BXE splash screen comes up, and it gets as far as displaying 

	Config loaded & Parsed ... Load XML ... Load XSLT ... 
	XSLT loaded ...

and then it display a large error dialog.  unfortunately I cannot 
cut and paste from this dialog, but what it shows is: 

	Something went wrong during importing the XSLT document.

	ERROR in Bitflux Editor:

	Compnent returned failure code: 0x80600001 [nsiXSLTProxessor.importStylesheet]

	in File: undefined

	Type: null

	Stack: undefined

	<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
	extension-element-prefixes="saxon">

and then it lists a bunch of "<xsl:import .." statements that bring 
in the DITA XSL files from the "xslhtml/" subdirectory.  however, 
ALL the files that it lists are present in my directory structure. 

then the dialog ends with this material:

	<xsl:output method="xml" encoding="UTF-8" indent="no"
	doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
	doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"/>

	<xsl:param name="DITAEXT" select=".xml"/>

	<xsl:template match="/">

	<xsl:apply-templates/>

	</xsl:template>

	</xsl:stylesheet>


Any help would be welcome.  I can post the various specified
files if it helps.


fred baube

-- 
Fred Baube 
Director, Software & Systems
[email protected]  +358 41 536 8192 
BSEE  BS.Math  MSFS '88 Georgetown U. 
Metadoc Oy  http://www.metadoc.fi

----- End forwarded message -----

-- 
F.Baube                * "I propose that we should set a course 
Georgetown/MSFS/1988   *  from 'the free world' of the Cold War, 
email fbaube#welho.com *  which no longer exists, towards _a_ 
 gsm  +358 41 536 8192 *  free world." -- Timothy Garton Ash 
 wmd   60°11'10.8"N 24°57'36.9"E
-- 
bx-editor-users mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-users