Author view not updating
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 12
- Joined: Tue Feb 08, 2011 11:40 pm
Author view not updating
Hi,
I have an AuthorOperation which updates the XML document. That works correctly, but after the update, the Author view doesn't show the change unless some text is edited in the Text view. The change not showing up is displayed as CSS read-only, ie
content : " WAC " xpath("../../Heading/SectionCite/TitleNumber/text()") "-" xpath("../../Heading/SectionCite/ChapterNumber/text()") "-" xpath("../../Heading/SectionCite/SectionNumber/text()") " " xpath("../../Heading/Caption/text()") " ";
Here is a snippet of the code which inserts the XML in AuthorOperation:
if (displayDialog(oxygenFrame)) {
docController.deleteNode((AuthorNode) heading);
docController.insertXMLFragmentSchemaAware(getHeadingFragment(map),"ancestor::OTSSection/Section",
AuthorConstants.POSITION_INSIDE_FIRST);
}
Any idea on how to make the Author view update?
I have an AuthorOperation which updates the XML document. That works correctly, but after the update, the Author view doesn't show the change unless some text is edited in the Text view. The change not showing up is displayed as CSS read-only, ie
content : " WAC " xpath("../../Heading/SectionCite/TitleNumber/text()") "-" xpath("../../Heading/SectionCite/ChapterNumber/text()") "-" xpath("../../Heading/SectionCite/SectionNumber/text()") " " xpath("../../Heading/Caption/text()") " ";
Here is a snippet of the code which inserts the XML in AuthorOperation:
if (displayDialog(oxygenFrame)) {
docController.deleteNode((AuthorNode) heading);
docController.insertXMLFragmentSchemaAware(getHeadingFragment(map),"ancestor::OTSSection/Section",
AuthorConstants.POSITION_INSIDE_FIRST);
}
Any idea on how to make the Author view update?
-
- Posts: 9446
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Author view not updating
Hi,
We recently fixed a problem related to this (and the fix will be available in a couple of weeks in Oxygen 12.2), problem which could be avoided if you use the "xpath" function as the single CSS property of the selector.
So if you CSS selector is like:
you can split it in two selectors:
and
If the workaround still does not work:
Usually when using xpath expressions in the CSS the rendered content updates about 4-5 seconds after the modification has been made.
Are you sure the xpath expression result is influenced by the modifications you are making?
If this is not the case maybe you can send to our support email address (support at oxygenxml dot com) some sample XML + CSS and more details (some sample Java code of the operation).
Regards,
Radu
We recently fixed a problem related to this (and the fix will be available in a couple of weeks in Oxygen 12.2), problem which could be avoided if you use the "xpath" function as the single CSS property of the selector.
So if you CSS selector is like:
Code: Select all
element{
content: xpath('.....');
display:block;
......
}
Code: Select all
element{
content: xpath('.....');
}
Code: Select all
element{
display:block;
.....
}
Usually when using xpath expressions in the CSS the rendered content updates about 4-5 seconds after the modification has been made.
Are you sure the xpath expression result is influenced by the modifications you are making?
If this is not the case maybe you can send to our support email address (support at oxygenxml dot com) some sample XML + CSS and more details (some sample Java code of the operation).
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service