commons.js no more visible
Post here questions and problems related to oXygen frameworks/document types.
-
- Posts: 25
- Joined: Thu Aug 07, 2014 3:40 pm
commons.js no more visible
Post by Bruno.Ballarin »
Hi,
following a company stylesheet update many of my topics failed to open in Oxygen Author, with message "cannot load the associated CSS files.
The root cause appear to be linked to the absence of the following attributes in the Topic elements of many of my topics:
xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/" ditaarch:DITAArchVersion="1.2"
My IT department advised to add a "DITA - Extension" in the Options\Preferences\Document type association with the following "Public ID": *-//STM//DTD DITA 1.3*
Now I can open my topics but some of the toolbar buttons (that I have developed using JSOperation) are not working anymore. I got the following error message when I clicked this custom buttons in the Author toolbar:
"Could not evaluate script: ReferenceError: "rotatecell" is not defined. (asthttps://dcam.st.com/astoria/currentScript.js#1)
It seems the "commons.js" where I have stored my custom functions called by JSOperation is somehow not visible anymore.
Could it be that there is an interference between the Astoria version management plugin and the my framework customizations? How can I have both cohabiting?
following a company stylesheet update many of my topics failed to open in Oxygen Author, with message "cannot load the associated CSS files.
The root cause appear to be linked to the absence of the following attributes in the Topic elements of many of my topics:
xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/" ditaarch:DITAArchVersion="1.2"
My IT department advised to add a "DITA - Extension" in the Options\Preferences\Document type association with the following "Public ID": *-//STM//DTD DITA 1.3*
Now I can open my topics but some of the toolbar buttons (that I have developed using JSOperation) are not working anymore. I got the following error message when I clicked this custom buttons in the Author toolbar:
"Could not evaluate script: ReferenceError: "rotatecell" is not defined. (asthttps://dcam.st.com/astoria/currentScript.js#1)
It seems the "commons.js" where I have stored my custom functions called by JSOperation is somehow not visible anymore.
Could it be that there is an interference between the Astoria version management plugin and the my framework customizations? How can I have both cohabiting?
-
- Posts: 9431
- Joined: Fri Jul 09, 2004 5:18 pm
Re: commons.js no more visible
Hi,
That attribute is used both when Oxygen tries to match an XML document to a document type association (and indeed you can overcome this by adding those extra association rules) but might also be used in other parts of our code where Oxygen needs to decide if an XML document is DITA or not.
Regards,
Radu
Yes, exactly, that's the problem. The specialization DTD needs to be changed to properly define this "DITAArchVersion" default attribute on the root element.The root cause appear to be linked to the absence of the following attributes in the Topic elements of many of my topics:
xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/" ditaarch:DITAArchVersion="1.2"
That attribute is used both when Oxygen tries to match an XML document to a document type association (and indeed you can overcome this by adding those extra association rules) but might also be used in other parts of our code where Oxygen needs to decide if an XML document is DITA or not.
This is probably because of the DITA framework extension you created. Thing is that when Oxygen executes a "JSOperation" it indeed looks for a "commons.js" but it looks for it in the current framework folder. As your framework is an extension of the base "DITA" framework, Oxygen will no longer look in the "frameworks/dita" folder.Now I can open my topics but some of the toolbar buttons (that I have developed using JSOperation) are not working anymore. I got the following error message when I clicked this custom buttons in the Author toolbar:
"Could not evaluate script: ReferenceError: "rotatecell" is not defined. (asthttps://dcam.st.com/astoria/currentScript.js#1)
It seems the "commons.js" where I have stored my custom functions called by JSOperation is somehow not visible anymore.
Could it be that there is an interference between the Astoria version management plugin and the my framework customizations?
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Return to “SDK-API, Frameworks - Document Types”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ 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