Re: 2 Questions about the RelaxNG-Schema

Christian Stocker <[email protected]> Wed, 24 Nov 2004 09:20:06 +0100
Newsgroups gmane.editors.bitflux.general
Message-ID <[email protected]>

On 24.11.2004 9:06 Uhr, Patrick Kollitsch wrote:
> Hi,
> 
> I wondered if the 2 following problems are solvable with the existing 
> trunk-version of bxe:
> 
> 1. It is possible to blend some tags and attributes out in the 
> config.xml via
> <context type="dontShow">
> <element name="img" ns="http://www.w3.org/1999/xhtml"/>
> <attribute name="xml:lang"/>
> </context>
> Is it possible to eg. dontShow the attribute "a" specifically on tag 
> "b"? The way it is done in the examples its only for *all* attributes 
> "a" or for the whole tag "b".

No, not possible right now. Can you please file a "bug" report? 
Shouldn't be hard to implement.

> 2. (maybe not bxe-related) howto say in relaxng "either or"?
> we have a tag which has to have either the attribute "src" filled or the 
> attribute "id" filled. I wondered if it would be possible to say this 
> via relax-ng (i did not found a solution) and if bxe is able to 
> interpret this dependance right

Seems like possible:

       <choice>
         <attribute name="id">
           <text/>
         </attribute>
         <attribute name="src">
           <text/>
         </attribute>
       </choice>

But didn't test, if BXE supports this. On an element level, it should, 
but not sure about attributes. Either you tell me or I'll test it later ;)

chregu

-- 
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