Re: Choice does not work under link?
Christian Stocker <[email protected]> Mon, 13 Dec 2004 08:34:00 +0100
| Newsgroups | gmane.editors.bitflux.general |
|---|---|
| Message-ID | <[email protected]> |
Hi On 13.12.2004 5:08 Uhr, LiuCougar wrote: > 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). Cool. 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() yep. That's possible, that this is not supported right now. Attribute checking works a little bit different thant element checking.. Can you please file a bug under http://bugzilla.bitflux.ch/, I'll try to have a look ASAP. Thanks for the report. chregu > > 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 -- christian stocker | Bitflux GmbH | schoeneggstrasse 5 | ch-8004 zurich phone +41 1 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71 http://www.bitflux.ch | [email protected] | gnupg-keyid 0x5CE1DECB -- bx-editor-users mailing list [email protected] http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-users