Choice does not work under link?

LiuCougar <[email protected]> Mon, 13 Dec 2004 04:08:21 +0000
Newsgroups gmane.editors.bitflux.general
Message-ID <[email protected]>
Hi all,
I am new to bitflux. First of all, I'd like to thanks all the authors
and contributors who make such a wonderful project publicly available.

I use the SVN version of the bitflux and I am try to incorporate it
into ez publish (www.ez.no). I based my attemp on the inline example.
I changed the ulink to link (this is used in eZ) and it works fine:
    <define name="link">
        <element name="link">
            <attribute name="href"/>
            <optional>
            <attribute name="class"/>
            <attribute name="target"> <choice> <value>_self</value>
<value>_blank</value> </choice> </attribute>
            </optional>
            <ref name="Inline.model"/>
        </element>
    </define>
(I also changed the xml source file and the corresponding css file)

However, when I incorporated an alternative required attribute id, it
stops working:
    <define name="link">
        <element name="link">
            <choice>
            <attribute name="href"/>
            <attribute name="id"/>
            </choice>
            <optional>
            <attribute name="class"/>
            <attribute name="target"> <choice> <value>_self</value>
<value>_blank</value> </choice> </attribute>
            </optional>
            <ref name="Inline.model"/>
        </element>
    </define>

When I try to edit the xml file, I got the erros:
The attribute href is not allowed in link
#text is not allowed as child of link()

The related xml source is:
If you can't wait to see it, just try our <link
href="../demo">demo</link> and have fun.

Do you have any ideas? It seems to me that bitflux does not recongnize
the attributes under choice statement.

Thanks in advance.

Regards,
Cougar
-- 
"People's characters are strengthened through struggle against
difficulties; they are weakened by comfort."
- Old Chinese adage
-- 
bx-editor-users mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-users