Search found 29 matches

by cditcher
Fri Dec 09, 2016 7:44 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Get multiple selected AuthorNodes
Replies: 2
Views: 2310

Re: Get multiple selected AuthorNodes

After looking at your answer it seems I was almost there. Combining the .getNodesToSelect() method with results returned from .getSelectionIntervals() gave me what i was looking for. The following code snippet works, even when there is no selection: List<ContentInterval> selections = aa.getEditorAcc...
by cditcher
Fri Dec 09, 2016 2:24 am
Forum: SDK-API, Frameworks - Document Types
Topic: Get multiple selected AuthorNodes
Replies: 2
Views: 2310

Get multiple selected AuthorNodes

Hi I am attempting to get multiple selected nodes (something like List<AuthorNode>) from AuthorAccess object in our custom framework. Consider the scenario of multiple cells selected in a table (we are using oasis:table). You can see from the attached screenshot the user has selected 4 cells across ...
by cditcher
Fri Nov 25, 2016 7:16 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Unique ID from copy / paste
Replies: 17
Views: 4371

Re: Unique ID from copy / paste

Thanks Radu! This looks like what i was searching for.
by cditcher
Fri Nov 25, 2016 2:53 am
Forum: SDK-API, Frameworks - Document Types
Topic: Unique ID from copy / paste
Replies: 17
Views: 4371

Re: Unique ID from copy / paste

Ah found the answer. Override the AuthorSchemaAwareEditingHandlerAdapter#handlePasteFragment method.
by cditcher
Fri Nov 25, 2016 2:19 am
Forum: SDK-API, Frameworks - Document Types
Topic: Unique ID from copy / paste
Replies: 17
Views: 4371

Unique ID from copy / paste

We have many elements in our schema that have unique "id" attributes. So far we have been injecting a random id when a user creates one of these elements through our framework in Author. Now we are working on preventing duplicate id's when a user copy/paste an element in Author mode. Our initial att...
by cditcher
Wed Nov 09, 2016 12:38 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Add-on schema caching?
Replies: 4
Views: 984

Re: Add-on schema caching?

Just an update. The problem was indeed not Oxygen and confirmed that it was due to a schema import that was not visible outside of our dev network. Thanks.
by cditcher
Thu Nov 03, 2016 7:25 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: com.oxygenxml.editor.frameworks.url system property not working in 18.1
Replies: 6
Views: 1464

Re: com.oxygenxml.editor.frameworks.url system property not working in 18.1

Thanks Michael. Currently we are manually setting the frameworks location in the application which points to our development frameworks which works for the time being. Any idea when a fix might be released?
by cditcher
Thu Nov 03, 2016 6:33 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Saxon9ee licence for oxygen 18.1 missing?
Replies: 5
Views: 983

Re: Saxon9ee licence for oxygen 18.1 missing?

We are providing our code as an add-on so do not have a plugin.xml unfortunately. We used to run the code on 15 to ver 17 no problem. We updated directly to 18.1 when the issue appeared. I like the idea of accessing a transformer directly through your api so am happy to make the code change. Aside f...
by cditcher
Thu Nov 03, 2016 12:43 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Saxon9ee licence for oxygen 18.1 missing?
Replies: 5
Views: 983

Re: Saxon9ee licence for oxygen 18.1 missing?

Thanks Radu. This code snippet was how we were obtaining a transformer instance: private static Transformer getTransformer(StreamSource xsl, URIResolver resolver) throws TransformerConfigurationException { Transformer transformer; // don't cache transformer if debug property present if(Config.isDebu...
by cditcher
Mon Oct 31, 2016 6:27 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Add-on schema caching?
Replies: 4
Views: 984

Re: Add-on schema caching?

Ok, thanks for clarifying Radu.
by cditcher
Fri Oct 28, 2016 9:50 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Saxon9ee licence for oxygen 18.1 missing?
Replies: 5
Views: 983

Saxon9ee licence for oxygen 18.1 missing?

Our application is deployed as an add on. Since updating to 18.1 we are getting an error related to saxon9ee complaining that there is no licence...? Basic functionality is that we are exporting the document to WordML using an xslt file that makes a call back to our java api. This only works with th...
by cditcher
Fri Oct 28, 2016 8:47 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Add-on schema caching?
Replies: 4
Views: 984

Add-on schema caching?

We distribute and add-on to various users and a couple of our end users are experiencing a strange occurrence that i can't seem to duplicate. Basically, our add on points to our schema here: http://test.standards.qp.gov.bc.ca/standards/bylaw.xsd. Except that two of our users seem to be seeing an old...
by cditcher
Wed Oct 26, 2016 9:39 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: com.oxygenxml.editor.frameworks.url system property not working in 18.1
Replies: 6
Views: 1464

com.oxygenxml.editor.frameworks.url system property not working in 18.1

We develop add-ons and have been launching oxygen with the following system properties (paths made up for demonstration): -Djava.compiler=NONE -Xss512k -Xmx256m -XX:SoftRefLRUPolicyMSPerMB=10 -XX:PermSize=128M -XX:MaxPermSize=256M -Dcom.oxygenxml.app.descriptor=ro.sync.exml.AuthorFrameDescriptor -Dc...
by cditcher
Tue Aug 16, 2016 11:39 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Document type classpath resolution
Replies: 3
Views: 910

Re: Document type classpath resolution

Thanks! That will make our deployments easier. We are looking at updating to 18 soon.
by cditcher
Fri Mar 11, 2016 3:41 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Document type classpath resolution
Replies: 3
Views: 910

Document type classpath resolution

We deploy a product as an oXygen add-on which is a great feature and works well for our application. This may be trivial, but currently I have to add each dependency to the classpath tab individually. See below: http://styles.qp.gov.bc.ca/media/dev/classpath.png So currently, we list ${baseFramework...
by cditcher
Tue Jan 12, 2016 8:13 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Get current document schema url
Replies: 2
Views: 1324

Re: Get current document schema url

Correct! Thanks Alex. I overlooked that.
by cditcher
Sat Jan 09, 2016 12:38 am
Forum: SDK-API, Frameworks - Document Types
Topic: Get current document schema url
Replies: 2
Views: 1324

Get current document schema url

We are developing DTAs which have actions (implementations of ro.sync.ecss.extensions.api.AuthorOperation) that extend the functionality of Author. I have a situation where i need to get the url of the schema of the current document. I know this should be simple, but a search of the forums and api t...
by cditcher
Thu Jan 09, 2014 2:36 am
Forum: Other Issues
Topic: ro.sync.ecss.g.vb error message
Replies: 3
Views: 1390

Re: ro.sync.ecss.g.vb error message

Ah yes, thanks for your reply Radu. It was indeed a table cell that we had a width:15% property set in our css, but also placeholder text which was pushing the content beyond the bounds of the cell. We have modified the css and the errors have disappeared.

Thanks,

Chris
by cditcher
Tue Dec 31, 2013 7:54 pm
Forum: Other Issues
Topic: ro.sync.ecss.g.vb error message
Replies: 3
Views: 1390

ro.sync.ecss.g.vb error message

I am running author in debug mode using Eclipse IDE. I am getting an error (reported in the Eclipse console) that looks like this: [ro.sync.ecss.g.l] [31 Dec 2013 - 08:46:59] ERROR - ERR: ro.sync.ecss.g.vb: <orc:retention>(34795, 34804) Imposed 195 -> Actual 382 reported MIN is 195 <orc:retention> i...
by cditcher
Tue Dec 10, 2013 7:21 pm
Forum: SDK-API, Frameworks - Document Types
Topic: get applied document filter
Replies: 4
Views: 1726

Re: get applied document filter

Great, thanks Radu!
by cditcher
Fri Dec 06, 2013 10:22 pm
Forum: SDK-API, Frameworks - Document Types
Topic: get applied document filter
Replies: 4
Views: 1726

Re: get applied document filter

Thanks again for the advice Radu. I have kept a reference on my side as you suggested, so I guess a getter method would be handy, but not entirely necessary.
by cditcher
Wed Dec 04, 2013 9:15 pm
Forum: SDK-API, Frameworks - Document Types
Topic: get applied document filter
Replies: 4
Views: 1726

get applied document filter

Is there a way to retrieve a reference to an applied Document Filter? For example I have applied a filter as such: AuthorAccess.getDocumentController().setDocumentFilter(new MyDocumentFilter()); Let's say that in my implementation of DocumentFilter I have added some type of getter / setter methods t...
by cditcher
Wed Dec 04, 2013 12:45 am
Forum: Other Issues
Topic: Listen for changes on specific element / node
Replies: 4
Views: 1553

Re: Listen for changes on specific element / node

Update: I was able to implement AuthorSchemaAwareHandlingAdapter. I just had to go over the documentation a bit more carefully. Thanks.
by cditcher
Tue Dec 03, 2013 8:52 pm
Forum: Other Issues
Topic: Listen for changes on specific element / node
Replies: 4
Views: 1553

Re: Listen for changes on specific element / node

Thanks Radu, I will try the filter approach you mentioned. I have obtained the sdk and it appears classes in the ro.sync.ecss.extensions.docbook package are obfuscated.

Thanks,
Chris
by cditcher
Sat Nov 30, 2013 3:27 am
Forum: Other Issues
Topic: Listen for changes on specific element / node
Replies: 4
Views: 1553

Listen for changes on specific element / node

I have a situation where if a user deletes a node from the document, I want to capture the event and ensure that the entire containing fragment is deleted. For example, the following: <heading> <text>My Heading</text> </heading> If the user deletes the <text> (element)node I would like to check if t...
by cditcher
Fri Dec 07, 2012 10:55 pm
Forum: Common Problems
Topic: F [Saxon-EE 9.4.0.3] Unknown XSLT element: stream
Replies: 1
Views: 1143

F [Saxon-EE 9.4.0.3] Unknown XSLT element: stream

Hi there, I have recently upgraded to <oXygen/> XML Editor 14.0, build 2012070512 (Windows 64-bit standalone) and would like to start using some of the newer features available in the xslt 3.0 specification. Notably xsl:stream. However, I am getting the following error from saxon: F [Saxon-EE 9.4.0....
by cditcher
Thu Jun 21, 2012 6:53 pm
Forum: Feature Request
Topic: ensure matched elements / document compare?
Replies: 1
Views: 1037

ensure matched elements / document compare?

Hi there, I am looking for a feature that compares an xslt stylesheet to a corresponding xml file and reports on which elements are matched in the stylesheet and which are not. Is there such a thing? I do have methods for checking that the stylesheet i have written is matching all the necessary elem...