attachment-0001
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4611.1300" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>I'm looking out for help today while trying to
write some proper XML for what I want to implement.</FONT></DIV>
<DIV><FONT face=Arial size=2>My intention:</FONT></DIV>
<DIV><FONT face=Arial size=2>Let think about media types.</FONT></DIV>
<DIV><FONT face=Arial size=2>It's quite easy to provide a list of predefined
keywords to let the developer choose from allowed values only. That's an
attribute with an enumerated list.</FONT></DIV>
<DIV><FONT face=Arial size=2>But it's getting complicated when I want to allow
him to choose from the list or enter his own name for a custom media type. So I
was dreaming of something like an editable combo box. Does not seem to be
possible with XML.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>What about workarounds? Who was facing that kind of
problem already and developed some syntax for it? Or knows somebody who did or
may know?</FONT></DIV>
<DIV><FONT face=Arial size=2>A simple solution could be to add a keyword
'custom' to the list of predefined ones and adding another attribute, which then
holds the custom string. Feels like a hack to me. In that case I'd expect a rule
like 'show the custom string only when keyword custom is chosen in the
predefined list'. Don't know that syntax either by heart.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Help???</FONT></DIV>
<DIV><FONT face=Arial size=2>Norbert</FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV></BODY></HTML>