Search found 72 matches

by steve.cuzner
Mon Dec 05, 2016 7:57 pm
Forum: SDK-API, Frameworks - Document Types
Topic: css link vs -oxy-link
Replies: 1
Views: 3018

css link vs -oxy-link

What is the difference between the extension properties link and -oxy-link?
by steve.cuzner
Tue Oct 25, 2016 4:51 pm
Forum: SDK-API, Frameworks - Document Types
Topic: XQueryUpdateOperation document update in for loop
Replies: 3
Views: 3643

Re: XQueryUpdateOperation document update in for loop

Radu,

You are correct about the side effect free implementation. You might want to consider this proposed extension for use in XQueryUpdateOperation as a possible enhancement:

http://www.cs.stanford.edu/people/chris ... ryBang.pdf

Steve
by steve.cuzner
Mon Oct 24, 2016 7:10 pm
Forum: SDK-API, Frameworks - Document Types
Topic: XQueryUpdateOperation document update in for loop
Replies: 3
Views: 3643

XQueryUpdateOperation document update in for loop

I've got a custom action that implements XQueryUpdateOperation. The associated script is something like: for $node in ( //*:section ) let $new_att_node := mwclib:augment($node) return insert node $new_att_node into $node The problem is that the function mwclib:augment() depends on evaluating the ent...
by steve.cuzner
Mon Oct 03, 2016 10:39 pm
Forum: Common Problems
Topic: Copy markup in author mode
Replies: 2
Views: 1783

Copy markup in author mode

If I select a tag, e.g., <foo>text</foo>, and copy using ctrl+c or the menu items, then paste to another application, all that is pasted is "text" Is there setting or a special copy mode that includes markup into the paste buffer?
by steve.cuzner
Fri Sep 02, 2016 12:30 am
Forum: SDK-API, Frameworks - Document Types
Topic: Removing Features
Replies: 3
Views: 3253

Re: Removing Features

For the toolbar, we simply removed them and saved a layout file that we will distribute to writers or use the enforce preferences plugin. I've been trying to avoid the development of a plugin because it's not as easy to distribute as a framework and I'd rather avoid java if I can help it. The big it...
by steve.cuzner
Tue Aug 30, 2016 11:15 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Removing Features
Replies: 3
Views: 3253

Removing Features

We have made a decision that we do not want our authors to use the Oxygen review tools when working in certain frameworks. How can I remove the feature or eliminate the GUI items (menu items) that access that feature. We have removed the toolbar items for review from our toolbar configuration, but t...
by steve.cuzner
Thu Aug 25, 2016 5:29 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Storage location for XPath/XQuery Builder Favorites
Replies: 5
Views: 4447

Re: Storage location for XPath/XQuery Builder Favorites

XPath 2.0

We're also considering using a schematron test with the xpath which would allow for quick fixes. Probably the best way to go.

Steve
by steve.cuzner
Wed Aug 24, 2016 7:58 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Storage location for XPath/XQuery Builder Favorites
Replies: 5
Views: 4447

Re: Storage location for XPath/XQuery Builder Favorites

That was my original thought, but that is a transformation. What we are looking for is the ability for writers to find patterns and correct them. When you put the xq in the builder, the results are listed in the results tab and can be double clicked on to navigate to the pattern of interest.
by steve.cuzner
Wed Aug 24, 2016 6:09 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Storage location for XPath/XQuery Builder Favorites
Replies: 5
Views: 4447

Storage location for XPath/XQuery Builder Favorites

If you set a query as a favorite, does it get stored to the user's global preferences file? How could I easily distribute a query to all of my writers who use a framework so that they are all using the same query consistently and the query gets updated and distributed as needed?

Steve
by steve.cuzner
Tue Aug 09, 2016 7:17 pm
Forum: SDK-API, Frameworks - Document Types
Topic: How to access resources from javascript
Replies: 3
Views: 3498

Re: How to access resources from javascript

Code: Select all

frameworkDir = authorAccess.getUtilAccess().expandEditorVariables("${frameworkDir}", null);
by steve.cuzner
Tue Aug 09, 2016 6:34 pm
Forum: SDK-API, Frameworks - Document Types
Topic: How to access resources from javascript
Replies: 3
Views: 3498

Re: How to access resources from javascript

I've found some success using standard java: fileReader = new java.io.FileReader("T:\\custom\\Oxygen\\frameworks\\tmwbook.framework\\frag.xml"); br = new java.io.BufferedReader(fileReader); sb = new java.lang.StringBuilder(); line = br.readLine() while (line != null) { sb.append(line); lin...
by steve.cuzner
Tue Aug 09, 2016 4:59 pm
Forum: SDK-API, Frameworks - Document Types
Topic: How to access resources from javascript
Replies: 3
Views: 3498

How to access resources from javascript

I'm writing a javascript function to insert xml fragments which works well with authorAccess.getDocumentController().insertXMLFragment. I would like to store my fragments as resource files outside of the javascript. I've tried the javascript File object, but that doesn't seem to work. How can I read...
by steve.cuzner
Tue Aug 09, 2016 4:03 pm
Forum: SDK-API, Frameworks - Document Types
Topic: commons.js location
Replies: 2
Views: 2952

Re: commons.js location

More specifically, does it have to be in the root of the framework folder or does it simply need to be in a folder on the classpath?
by steve.cuzner
Mon Aug 08, 2016 11:01 pm
Forum: SDK-API, Frameworks - Document Types
Topic: commons.js location
Replies: 2
Views: 2952

commons.js location

at https://www.oxygenxml.com/doc/versions/18.0/ug-editor/topics/dg-default-author-operations.html?hl=commons.js there is a note that says: If you have a script called commons.js in the framework directory, you can call functions defined inside it from your custom script content so that you can use t...
by steve.cuzner
Tue Jul 26, 2016 4:07 pm
Forum: Feature Request
Topic: Profiling configuration storage location
Replies: 1
Views: 1793

Profiling configuration storage location

We use profiling in our environment and we don't think that the proper location for them is in the preferences, either global or project, because profiling is based on attributes and attributes are defined in a doctype. We would suggest that profiling configuration be moved from the preferences file...
by steve.cuzner
Thu Mar 03, 2016 12:06 am
Forum: DocBook
Topic: Pre-populate the URL field on xinclude dialog
Replies: 3
Views: 4866

Re: Pre-populate the URL field on xinclude dialog

Not exactly. I would want the standard insert.xinclude action to behave as it does, but I would like to add a new toolbar button that calls insert.xinclude with an argument that is the file to populate the URL field with. The reason is that we are using xinclude as a text entity replacement mechanis...
by steve.cuzner
Tue Mar 01, 2016 11:37 pm
Forum: DocBook
Topic: Pre-populate the URL field on xinclude dialog
Replies: 3
Views: 4866

Pre-populate the URL field on xinclude dialog

I'd like to create a new button that launches the standard insert.xinclude action but sets the URL field to a specific file. There doesn't seem to be any available arguments available to the ro.sync.ecss.extensions.commons.operations.InsertXIncludeOperation operation. Is there any way to make this c...
by steve.cuzner
Fri Feb 26, 2016 8:47 pm
Forum: Other Issues
Topic: Modify xinclude on insert
Replies: 3
Views: 1853

Re: Modify xinclude on insert

Figured it out. I needed to keep insert.xinclude as in, created a new mw.insert.xinclude which calls the new custom action that does the multiple action call to insert.xinculde then the convert action.
by steve.cuzner
Fri Feb 26, 2016 7:17 pm
Forum: Other Issues
Topic: Modify xinclude on insert
Replies: 3
Views: 1853

Re: Modify xinclude on insert

Hi, This isn't working as expected. When I press the insert xinclude button now, the dialog never appears to select an item to include and then I end up with an xpointer on the parent tag of the insertion point: <para xpointer="element(/1)">This file contains ...</para> I made all modifica...
by steve.cuzner
Tue Feb 16, 2016 9:50 pm
Forum: Other Issues
Topic: Modify xinclude on insert
Replies: 3
Views: 1853

Modify xinclude on insert

I'm implementing a text entity replacement system using xinclude and need to modify the xinclude to the specific includes on insert. I've converted my entity file <!ENTITY foo '<b>foo</b>'> <!ENTITY bar '<b>bar</b>'> to <fileents> <ent xml:id="foo"><b>foo</b></ent> <ent xml:id="bar&qu...
by steve.cuzner
Fri Feb 12, 2016 4:45 pm
Forum: Common Problems
Topic: framework catalog not found by all tolls
Replies: 2
Views: 1346

Re: framework catalog not found by all tolls

Radu,

Thanks, that was most of the issue. I also had URIs without a protocol. When I changed them to start with http:/ they worked.
by steve.cuzner
Thu Feb 11, 2016 10:39 pm
Forum: Common Problems
Topic: framework catalog not found by all tolls
Replies: 2
Views: 1346

framework catalog not found by all tolls

I've got a catalog.xml file that I add to my framework in the Options->preferences, Document Type Association, edit framework, select catalog tab, add entry. The framework uses an rng for the schema. When I open my document in text view, there is no error indicator on my xinclude which has a href th...
by steve.cuzner
Mon Jan 25, 2016 4:47 pm
Forum: Feature Request
Topic: Change RelaxNG annotation preference
Replies: 1
Views: 1736

Change RelaxNG annotation preference

I would like to suggest that the Oxygen the Preference Editor->Content Completion->Annotations->Use all Relax NG annotations as documentation change from a check box to a list of namespaces and/or tags to use for annotations. This would allow a developer to ignore the http://relaxng.org/ns/compatibi...
by steve.cuzner
Mon Jan 25, 2016 4:45 pm
Forum: Other Issues
Topic: How to filterRNG Schema Annotation Hover Help
Replies: 4
Views: 1937

Re: How to filterRNG Schema Annotation Hover Help

Thanks, Radu, this will help. Can the xml:base attribute be used on the mapping element rather than the mappingGroup for more fine tuned control? Might I suggest that a possible enhancement (I'll cross post to the other list) would be to modify the Preference Editor->Content Completion->Annotations-...
by steve.cuzner
Sat Jan 23, 2016 1:43 am
Forum: Other Issues
Topic: How to filterRNG Schema Annotation Hover Help
Replies: 4
Views: 1937

How to filterRNG Schema Annotation Hover Help

I'm working with a docbook and when I hover over an element I get the annotations from the RNG schema for that element, which is great. However, I get all the annotations for that element regardless of context. Take the info element which is used in multiple patterns for multiple contexts (info in b...
by steve.cuzner
Thu Jan 07, 2016 8:03 pm
Forum: XML Schemas
Topic: Further development on schematron
Replies: 13
Views: 8417

Re: Further development on schematron

... Since it's a hierarchy of stylesheets with a patched module referred from another stylesheet, you need to place there the entire hierarchy, because the references between master and modules are relative and there are two possible locations for the resources (one in the "oxygen.jar/builtin&...
by steve.cuzner
Tue Oct 06, 2015 6:30 pm
Forum: DocBook
Topic: Docbook 5.1 rng/schmatron validation errors
Replies: 1
Views: 4266

Docbook 5.1 rng/schmatron validation errors

I've dowloaded the DocBook XInclude V5.1-CSPRD02 schemas from Oasis and I'm getting a schematron validation error. If I open docbookxi.rng and use the validation scenario Validate Relax NG Schema with embedded Schematron I get 307 errors related to undeclared namespace errors, for example: System ID...
by steve.cuzner
Wed Sep 09, 2015 4:59 pm
Forum: DocBook
Topic: DocBook framework menu ID Options
Replies: 3
Views: 4855

Re: DocBook framework menu ID Options

Radu, Thanks for the information. I'm building an extension framework to docbook 5. If I add a resources folder to my extension framework and copy idGenerationDefaultOptionsDB5.xml to that folder and modify it, will my extension framework use that or the resource in the base framework. For example, ...
by steve.cuzner
Tue Aug 25, 2015 9:48 pm
Forum: DocBook
Topic: DocBook framework menu ID Options
Replies: 3
Views: 4855

DocBook framework menu ID Options

When you select this menu, you open a dialog that lists element names, defaulting to article, chapter, sect1-5, and section, and you have the option to add, edit, or delete from this list. Where is this data stored after you modify the list of elements?
by steve.cuzner
Tue Jul 28, 2015 7:54 pm
Forum: DocBook
Topic: modifying the OLink dialog
Replies: 6
Views: 7137

Re: modifying the OLink dialog

One small issue I've found: if you hit cancel button, any links and the surrounding element are deleted (leaving the text). For example, I positioned the cursor in a para tag inside an abstract tag. If I open the new dialog, then hit cancel, I'm left with the para contents directly inside the abstra...