On 04/19/2013 11:00 AM, Madlik, Monika (LNG-VIE) wrote:

I tried to adapt an existing combo-box within the XML-Mind configuration.

Within the XML-file I have the following structure:

<verweis>

<artikel>

<autor>…</autor>

<zeitschrift>…</zeitschrift>

<fundstelle>…</fundstelle>

<zusatz>…</zusatz>

</artikel>

</verweis>

Within the css-file I want to assign a combo-box to the element
“zeitschrift”.

My css-part looks like this:

zeitschrift

{

content: combo-box(labels, "AFS\A ARD", values, "AFS\A ARD");

}

This means that you want to use a comboxbox to edit the contents of element zeitschrift. Not an attribute of zeitschrift, but the zeitschrift element itself.

http://www.xmlmind.com/xmleditor/_distrib/doc/csssupport/combo-box.html



And the really big problem is (and I really tried lots of things and I
really don’t know where the error could be), that the value “ARD” could
be chosen, but the value “AFS” not!

If "ARD" works and not "AFS", then this means that your document is conforming to a *schema* and that the schema allows "ARD" and not "AFS" (case-sensitive) as the contents of the zeitschrift element.




I tried to assign the same combo-box to another element:

fundstelle

{

content: combo-box(labels, "AFS\A ARD", values, "AFS\A ARD");

}

And here it was no problem to select both items!

And I tried to rename the element “zeitschrift” i.e. to “zeitschriften”
– and it works … only when the name of the element is “zeitschrift” I
get the problems.

The above behaviors are compatible with my explanation: the content model of element zeitschrift does no allow value "AFS".




Does anybody know what I can do, except renaming the element???


Please select a zeitschrift element and press Shift-F1 (Help|Show Content Model) to check the content model of this element.

http://www.xmlmind.com/xmleditor/_distrib/doc/help/helpMenu.html


--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to