[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Krazy XML file validation
From:       Parker Coates <parker.coates () gmail ! com>
Date:       2009-03-05 0:34:21
Message-ID: 85d347350903041634s48889517u62aff54ed32a2b88 () mail ! gmail ! com
[Download RAW message or body]

On Sat, Feb 28, 2009 at 21:22, Parker Coates wrote:
> The second issue is the with the "choices" element in killbots.kcfg. I
> have two different config entries that share a single enumeration. [2]
> This arrangement works quite well in the program, but xmllint
> complains about that the second "choices" element doesn't contain any
> "choice" elements. Repeating the "choice" elements from the first
> entry causes the XML to validate, but causes the kconfig_compiler to
> produce non compilable sources. Adding minOccurs="0" to the "choice"
> element in kcfg.xsd makes the validation pass, but, again, I know next
> to nothing about XML, so I'm not sure if this is correct.
>
> [2]
>                <entry name="MiddleClickAction" type="Enum">
>                        <choices name="ClickAction">
>                                <choice name="Nothing"/>
>                                <choice name="Step"/>
>                                <choice name="RepeatedStep"/>
>                                <choice name="Teleport"/>
>                                <choice name="TeleportSafely"/>
>                                <choice name="TeleportSafelyIfPossible"/>
>                                <choice name="WaitOutRound"/>
>                        </choices>
>                        <default>RepeatedStep</default>
>                        <tooltip>The action performed on a middle-click</tooltip>
>                        <whatsthis>Selects <snip> control key.</whatsthis>
>                </entry>
>                <entry name="RightClickAction" type="Enum">
>                        <choices name="ClickAction"/>
>                        <default>TeleportSafelyIfPossible</default>
>                        <tooltip>The action performed on a right-click</tooltip>
>                        <whatsthis>Selects <snip> game area.</whatsthis>
>                </entry>

So, now that we've worked out the ui.rc issue, does anyone have any
thoughts on the .kcfg issue? Did I discover an "accidental" feature of
KConfigXT that I really shouldn't be using? Or does the .xsd file not
capture the full abilities of the KConfig Compiler?

Thanks,

Parker
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic