Page 1 of 1

Oxy_Functions and Editing Attribute Values of Child Elements

Posted: Fri May 12, 2017 12:07 am
by john_m
Hello,

I have a question about using css/oxy-functions to access attribute values of child elements.

Here is a portion of my schema:Image

And below is a portion of my css:

Code: Select all

miscellaneousInformation{
display:block;
font-weight:normal;
padding:5px 0px;
}

parts{
content:
oxy_label(text, "Are all parts interchangeable? ")
oxy_combobox(edit, "@interchangeabilityOfParts", editable, false)"\A"
oxy_label(text, "Are any parts reidentified? ")
oxy_combobox(edit, "@reidentifiedParts", editable, false)"\A"
oxy_label(text, "Is the replacement of RFID Tag required? ")
oxy_combobox(edit, "@replacementRFIDTagRequired", editable, false)
}

replacementPlatesRequired{
content:
oxy_label(text, "Is a replacement nameplate? ")
oxy_combobox(edit, "@replacementNameplateRequired", editable, false)
oxy_label(text, "If Yes, select the type of nameplate: ")
oxy_combobox(edit, "@replacementNameplateType", editable, false);
}
However, suppose I want to rearrange the layout of my document and the order of the oxy_functions within the miscellaneousInformation element. Is there a way to write the css/oxy_functions using xpath in such a way I could do something like this:

Code: Select all


miscellaneousInformation{
display:block;
font-weight:normal;
padding:5px 0px;

content:
oxy_label(text, "Are all parts interchangeable? ")
oxy_combobox(edit, "/parts@interchangeabilityOfParts", editable, false)"\A"
oxy_label(text, "Are any parts reidentified? ")
oxy_combobox(edit, "/parts@reidentifiedParts", editable, false)"\A"
oxy_label(text, "Is the replacement of RFID Tag required? ")
oxy_combobox(edit, "/parts@replacementRFIDTagRequired", editable, false)

oxy_label(text, "Is a replacement nameplate? ")
oxy_combobox(edit, "/replacementPlatesRequired@replacementNameplateRequired", editable, false)
oxy_label(text, "If Yes, select the type of nameplate: ")
oxy_combobox(edit, "/replacementPlatesRequired@replacementNameplateType", editable, false);
}
Any assistance would be appreciated!

Thanks!
John

Re: Oxy_Functions and Editing Attribute Values of Child Elements

Posted: Fri May 12, 2017 10:12 am
by sorin_carbunaru
Hello John,

Unfortunately we cannot help you with this one, as the form controls are not capable of editing the children of the current element.

Regards,
Sorin Carbunaru
oXygen XML