Discussion:
[XXE] css combo-box - some values can not be chosen
Madlik, Monika (LNG-VIE)
2013-04-19 09:00:31 UTC
Permalink
Hello,

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");
}

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

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

Best regards,
Monika

. . . . . . . . . . . . . . . . . . . . . . . . . .



Ing. Monika Madlik

Developer

LexisNexis

A-1030 Wien, Marxergasse 25



Monika.Madlik at lexisnexis.at<mailto:Monika.Madlik at lexisnexis.at>

Tel.: +43 1 53452 1568

Fax.: +43 1 534 52 146



. . . . . . . . . . . . . . . . . . . . . . . . . .



[cid:865466.png at de1d4ad3.468431a3]<http://www.lexisnexis.at/news/veranstaltungen/>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20130419/96902ca6/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 865466.png
Type: image/png
Size: 25565 bytes
Desc: 865466.png
URL: <Loading Image...>
Hussein Shafie
2013-04-19 09:50:18 UTC
Permalink
Post by Madlik, Monika (LNG-VIE)
I tried to adapt an existing combo-box within the XML-Mind configuration.
<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?.
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
Post by Madlik, Monika (LNG-VIE)
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.
Post by Madlik, Monika (LNG-VIE)
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".
Post by Madlik, Monika (LNG-VIE)
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
Madlik, Monika (LNG-VIE)
2013-04-19 10:00:49 UTC
Permalink
Hello,

thanks for your fast reply.

You are right - I use a schema and the first thoughts when things were not working were, that the error must be down to the schema. My schema had no values included ... but what I didn't know was, that the colleague who wrote the configuration for this source years ago, wrote a schema too. I found this file now and can change the values now.

Lots of thanks to you and best regards,
Monika



-----------------------------
[Insert your disclaimer here]
-----------------------------

-----Urspr?ngliche Nachricht-----
Von: Hussein Shafie [mailto:hussein at xmlmind.com]
Gesendet: Freitag, 19. April 2013 11:50
An: Madlik, Monika (LNG-VIE)
Cc: xmleditor-support at xmlmind.com
Betreff: Re: [XXE] css combo-box - some values can not be chosen
Post by Madlik, Monika (LNG-VIE)
I tried to adapt an existing combo-box within the XML-Mind configuration.
<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?.
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
Post by Madlik, Monika (LNG-VIE)
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.
Post by Madlik, Monika (LNG-VIE)
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".
Post by Madlik, Monika (LNG-VIE)
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

Loading...