Re: message error with bxe 2
Christian Stocker <[email protected]> Mon, 25 Jul 2005 13:34:46 +0200
| Newsgroups | gmane.editors.bitflux.general |
|---|---|
| Message-ID | <[email protected]> |
On 25.7.2005 12:46 Uhr, Ludovic Gasc wrote: > Hi, > > I've this error "b() is not allowed as child of paragraphe()" when I click on > "b" in context menu. you did not define any namesapce in the grammar element, do this <grammar ns="" ... and it should work fine. BXE except the ns attribute in every rng file. This is not specs conform, AFAIK, but anyway :) chregu > > My relax-ng seems good, but it's think that it's the problem. > > Thanks very much for your response. > > > ------------------------------------------------------------------------ > > <?xml version="1.0" encoding="UTF-8"?> > <grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"> > <start> > <element name="paragraphe"> > <oneOrMore> > <choice> > <text/> > <element name="a"> > <attribute name="href"> > <data type="anyURI"/> > </attribute> > <text/> > </element> > <element name="em"> > <text/> > </element> > <element name="b"> > <text/> > </element> > <element name="sup"> > <text/> > </element> > <element name="sub"> > <text/> > </element> > </choice> > </oneOrMore> > </element> > </start> > </grammar> > -- 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