Download Firefox: WindowsMac OS X
logo       
Google Custom Search
    AddThis Social Bookmark Button

Questions about Simple Example: msg#00007

Subject: Questions about Simple Example
Thanks for posting this. Now that I've had a chance to look at it, I have some questions.

1) When transform.xsl is applied to data.xml, we get:

<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<title>BXE simple demo</title>
</head>
<body bgcolor="#ffffff">
<p>
<article contentEditable="true"><title>This is the title</title>
<para>
        this is the main part with an
        <emphasize>emphasized part</emphasize>
    </para><para>
                this is the main part with an
        </para></article>
</body>
</html>

Does that mean that the only thing the transform does is copy XML fragments into elements for which content editable is true? And any HTML generated by the transform is assumed to be non-editable?

2) The selectors in the CSS from the example are based on the example document's schema. So I can assume that means any editable XML cannot be transformed to HTML, but must use CSS for layout?

3) When I open the simple example in Bitflux, I see:

        BXE Simple Demo

This is the title this is the main part with an _emphasized part_ this is the main part with an

The paragraphs are not displayed as blocks.

And as I click on the editable elements, the XPath status bar displays:

Article /
or
Article / Emphasize /

but not Article / Title /, Article / Paragraph /, or Article / Paragraph / Emphasize as I expected.

4) When I select Get XML I see

-<article>
-<title>
 This is the title this is the main part with an
 <emphasize>emphasized part</emphasize>
  this is the main part with an
 </title>
-<para>
  this is the main part with an
 <emphasize>emphasized part</emphasize>
 </para>
 <para> this is the main part with an </para>
 </article>

Instead of

<article>
        <title>This is the title</title>
        <para>this is the main part with an
        <emphasize>emphasized part</emphasize>
    </para>
        <para>
                this is the main part with an
        </para>
</article>

Which I expected.

5) I installed the files for the example in:

bitfluxeditor
                        \ css / style.css
                        |
                        \ xml / data.xml
                        |        / transform.xsl
                        |        / transformxml-include.xsl (from original 
bitflux install)
                        |
                        \ schema / schema.xml
                                        / js2schema.xml (from original bitflux 
install)

That was placed in my /Users/username/Sites folder and accessed via:

http://www.example.org/~username/bitfluxeditor/index.html

Was that the correct install layout? Do I need to place it where it can be access via: http://www.example.org/bitfluxeditor/index.html instead?

Thanks.

Bill Humphries
Apple Computer
Web Engineer, HR Systems




                                        

--
bx-editor-dev mailing list
bx-editor-dev@xxxxxxxxxxxxxxxx
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-dev



<Prev in Thread] Current Thread [Next in Thread>