Oxy_Functions and Editing Attribute Values of Child Elements

Oxygen general issues.
john_m
Posts: 32
Joined: Mon Apr 10, 2017 8:56 pm

Oxy_Functions and Editing Attribute Values of Child Elements

Post 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
sorin_carbunaru
Posts: 417
Joined: Mon May 09, 2016 9:37 am

Re: Oxy_Functions and Editing Attribute Values of Child Elements

Post 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
Post Reply