Oxy_Functions and Editing Attribute Values of Child Elements
Posted: Fri May 12, 2017 12:07 am
Hello,
I have a question about using css/oxy-functions to access attribute values of child elements.
Here is a portion of my schema:
And below is a portion of my css:
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:
Any assistance would be appreciated!
Thanks!
John
I have a question about using css/oxy-functions to access attribute values of child elements.
Here is a portion of my schema:
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);
}
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);
}
Thanks!
John