Replies: 4 comments 2 replies
-
|
Question: you mention a schema for the XML. Does it require a certain position in the data? In the given case your z element will be the last child of Just asking as often the there's no special restriction on the order of elements in the XML data and therefore does not matter. Controlling that position is currently not explicitly possible i think though that would need a test to verify. Did i at least get the problem right? |
Beta Was this translation helpful? Give feedback.
-
|
Yes, schema requires fixed ordering of elements. This is very common in XML and most XML vocabularies require particular ordering. (The main reason is that while XML Schema allows unordered content models by using |
Beta Was this translation helpful? Give feedback.
-
|
for xs:sequence in a schema that certainly true. Fore was not designed as a schema-aware editor. However this does not mean it can't be done - just not out-of-the-box. There are several ideas to make it work though it has not been a priority right now. We'll discuss approaches and get back to you. I convert this to a discussion as this seems more appropriate. |
Beta Was this translation helpful? Give feedback.
-
|
This is now resolved in Fore 2.27.0 by using the <fx-bind ref="root">
<fx-bind ref="a" ></fx-bind>
<fx-bind ref="b"></fx-bind>
<fx-bind ref="c"></fx-bind>
<fx-bind ref="d"></fx-bind>
</fx-bind>These binds will then be used as a first choice to place elements: a |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm struggling with a problem. I will try to simplify it. Let's assume we are editing the following XML:
But schema also allows optional element
<z>inside<b>element. Thus there is a control for editing of this element that is bound to the proper node in XML document:The question is: if user will fill value for
<z>element where this element will appear in the instance? Is there any way how to control where new node<z>will be attached?Beta Was this translation helpful? Give feedback.
All reactions