Search found 154 matches

by dcramer
Mon Oct 09, 2017 11:40 pm
Forum: Other Issues
Topic: xinclude 1.1 and Calabash within Oxygen
Replies: 17
Views: 3076

Re: xinclude 1.1 and Calabash within Oxygen

It ended up being easy to implement schematron-based validation for IDs and IDREFs by importing transclusion-fixup.xsl and reusing the functions and templates in my schematron rules (so if I change the logic in transclusion-fixup.xsl it will propagate to my schematron). Doing this in schematron turn...
by dcramer
Mon Oct 09, 2017 9:49 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Frameworks and Oxygen versions
Replies: 1
Views: 1046

Frameworks and Oxygen versions

On the root element of a .framework file is a version number corresponding to the version of Oxygen that created/edited the file: <serialized version="18.1" xml:space="preserve"> <serializableOrderedMap> ... We have users on more than one version of Oxygen, but for development it's convenient to use...
by dcramer
Fri Oct 06, 2017 6:56 pm
Forum: DocBook
Topic: Preventing invalid content in Author view
Replies: 3
Views: 1940

Re: Preventing invalid content in Author view

Ok, now I see what it's doing. In general, it's doing things that make sense. Often it splits elements. For example, if you insert a chapter in the middle of a para in the context /book/chapter/section/para, it closes the current chapter (closing the para, section, and chapter), and inserts a new ch...
by dcramer
Thu Oct 05, 2017 10:32 pm
Forum: Common Problems
Topic: Search within added/deleted lines in diff/compare tool
Replies: 1
Views: 829

Search within added/deleted lines in diff/compare tool

Is there a way to do a Find within a diff/compare session but limit the scope to content that was added (or optionally removed)? Not a big deal, but would be handy just now.

Thanks,
David
by dcramer
Thu Oct 05, 2017 6:30 pm
Forum: DocBook
Topic: Preventing invalid content in Author view
Replies: 3
Views: 1940

Preventing invalid content in Author view

I'm trying to figure out what the default behavior of Oxygen is and if I've broken something with a config or framework change. If you're in Author view editing a DocBook 5.x document, say in the middle of a para, and press return to bring up the content completion thing, you're presented with a lis...
by dcramer
Thu Oct 05, 2017 5:46 pm
Forum: Other Issues
Topic: xinclude 1.1 and Calabash within Oxygen
Replies: 17
Views: 3076

Re: xinclude 1.1 and Calabash within Oxygen

We're using nvdl, so I can skip id/idref checking by omitting this option:

Code: Select all

<option name="http://www.thaiopensource.com/validate/check-id-idref"/>
Using nvdl (or something we're doing) might be borking other aspects of the framework, but I'll start another thread about that.

David
by dcramer
Wed Oct 04, 2017 7:41 pm
Forum: Common Problems
Topic: Hiding a valid attribute from Attributes View
Replies: 5
Views: 1245

Re: Hiding a valid attribute from Attributes View

Unfortuantely, path="db:*" ends up being the same as omitting the path attribute and applies the rule to all elements. My goal is to hide these attributes from elements in the DocBook namespace, but to allow them on the xi:include element. These attributes must be legal on all elements that can be i...
by dcramer
Wed Oct 04, 2017 6:18 pm
Forum: DocBook
Topic: Encouraging <para> in <entry>s
Replies: 6
Views: 2565

Re: Encouraging <para> in <entry>s

A few questions about the XSLTOperation: How are entities treated? If I run my xslt over an element that includes an entity, will that entity be resolved in the result? How are xincludes treated? Are xincludes resolved or left in place? Will my xslt operate on the included document? Where can I find...
by dcramer
Wed Oct 04, 2017 6:12 pm
Forum: DocBook
Topic: Encouraging <para> in <entry>s
Replies: 6
Views: 2565

Re: Encouraging <para> in <entry>s

I think I'll wait for the bug fix rather than maintain my own meta-action and remapping everything in the gui to it, but those operations are handy to know about, especially the XSLTOperation. I can put that to good use elsewhere.

Thanks,
David
by dcramer
Wed Oct 04, 2017 5:28 pm
Forum: Other Issues
Topic: xinclude 1.1 and Calabash within Oxygen
Replies: 17
Views: 3076

Re: xinclude 1.1 and Calabash within Oxygen

Thanks for taking care of that. Life is much easier when Oxygen and Calabash agree about things. The only thing requried to support things like db:idprefix is that attributes be passed down to the xincluded content. You can then implement arbitrary post-processing to fix ids, turn data into DocBook,...
by dcramer
Wed Oct 04, 2017 12:35 am
Forum: Other Issues
Topic: xinclude 1.1 and Calabash within Oxygen
Replies: 17
Views: 3076

Re: xinclude 1.1 and Calabash within Oxygen

Btw., I suppose all this implies an update to the xinclude insertion Action/wizard. At the very least you'll need a way to set the value for the set-xml-id attribute, perhaps with an "auto" option that defers to the ID Options? Maybe also a way to add other attributes that are allowed on xi:include....
by dcramer
Wed Oct 04, 2017 12:21 am
Forum: DocBook
Topic: Encouraging <para> in <entry>s
Replies: 6
Views: 2565

Re: Encouraging <para> in <entry>s

Correction, it works (the paras are added) for the Actions that have cellFragment for fragment arguments. I hadn't noticed that for each Action there are several Operations for different Activation XPaths. However it does NOT work when using the Insert Table dialog (whether inserting a table or info...
by dcramer
Tue Oct 03, 2017 11:55 pm
Forum: DocBook
Topic: Encouraging <para> in <entry>s
Replies: 6
Views: 2565

Encouraging <para> in <entry>s

I'm trying to do what is described in this post https://www.oxygenxml.com/forum/post41634.html?hilit=cc_config.xml%20table#p41667 but for DocBook. When I edit the insert.table action, there's no cellFragment field available to modify the template markup used by the table wizard. It just defers to ro...
by dcramer
Tue Oct 03, 2017 10:48 pm
Forum: Common Problems
Topic: Hiding a valid attribute from Attributes View
Replies: 5
Views: 1245

Re: Hiding a valid attribute from Attributes View

Ah, this looks like a very useful file. What I really want to do is the following to suppress these attributes on all elements in the docbook namespace: <elementProposals xmlns:db="http://docbook.org/ns/docbook" path="db:*" rejectAttributes="db:idfixup db:idprefix db:linkscope" /> But "db:*" isn't a...
by dcramer
Tue Oct 03, 2017 9:24 pm
Forum: Other Issues
Topic: xinclude 1.1 and Calabash within Oxygen
Replies: 17
Views: 3076

Re: xinclude 1.1 and Calabash within Oxygen

I've pushed up an example illustrating the features from the xinclude 1.1 spec and the differences between the behavior of Oxygen and Calabash:

https://github.com/dwcramer/xinclude-at ... py-example
by dcramer
Mon Oct 02, 2017 7:10 pm
Forum: Other Issues
Topic: xinclude 1.1 and Calabash within Oxygen
Replies: 17
Views: 3076

Re: xinclude 1.1 and Calabash within Oxygen

Ok, correction: Oxygen is passing down attributes to the xincluded content, but it's not doing any fixup of the duplicate ids. Initially, Oxygen was reporting validation errors due to my extra attributes on my xi:include element that were being passed down. This was apparently causing it not to repo...
by dcramer
Mon Oct 02, 2017 7:01 pm
Forum: Common Problems
Topic: Hiding a valid attribute from Attributes View
Replies: 5
Views: 1245

Hiding a valid attribute from Attributes View

I have a situation where I need certain attributes to be valid in my schema, but I do not want users to add this attribute manually or have them be confused the attributes cluttering up the Attributes View. Is there a way to configure my Document Type so that certain attributes do not appear in the ...
by dcramer
Mon Oct 02, 2017 6:06 pm
Forum: Other Issues
Topic: xinclude 1.1 and Calabash within Oxygen
Replies: 17
Views: 3076

Re: xinclude 1.1 and Calabash within Oxygen

I'm experimenting with the xinclude 1.1 support in Oxygen 19.1 and want to understand how it works. I have a test document that xincludes the same section several times. When I validate this document in Oxygen 19.1, it no longer complains about the repeated xml:id attributes. Yea! What's not apparen...
by dcramer
Mon Sep 25, 2017 5:09 pm
Forum: Feature Request
Topic: Support for the xpath() xinclude scheme
Replies: 2
Views: 1188

Re: Support for the xpath() xinclude scheme

Thanks for the explanation Radu. Given those challenges, using a fallback in these cases is a good approach for us.
by dcramer
Sat Sep 23, 2017 11:30 pm
Forum: Feature Request
Topic: Support for the xpath() xinclude scheme
Replies: 2
Views: 1188

Support for the xpath() xinclude scheme

I'm using an XProc pipeline with Calabash to resolve xincludes. In addition to supporting xinclude 1.1, this allows me to use the xpath() xpointer scheme like so: <xi:include href="../shared/content/content.xml" xpointer="xmlns(db=http://docbook.org/ns/docbook) xpath(//db:section[xml:id=‘foo’]/*[not...
by dcramer
Fri Sep 22, 2017 11:05 pm
Forum: Common Problems
Topic: Unresolved Entity not detected or not reported
Replies: 12
Views: 2914

Re: Unresolved Entity not detected or not reported

It appears this was a bug that disappeared between 18.1 and 19.0. I have several versions of Oxygen running to represent what our users have installed. A users reported the issue and I reproduced it one 18.0, but hadn't checked 19.0.

Thanks,
David
by dcramer
Thu Sep 21, 2017 11:25 pm
Forum: Feature Request
Topic: Hijacking Tip of the Day window for site-specific news
Replies: 1
Views: 926

Hijacking Tip of the Day window for site-specific news

Hi there, I've got a request to notify users about updates to our framework and tools when they start Oxygen. I was thinking there might be a way to hijack the Tip of the Day box and load it with our own content. I'm not seeing anything in the docs or finding a tell-tale xml file loaded with the tip...
by dcramer
Thu Sep 21, 2017 6:31 pm
Forum: Common Problems
Topic: Unresolved Entity not detected or not reported
Replies: 12
Views: 2914

Re: Unresolved Entity not detected or not reported

Hi Radu, Thanks for that explanation. We've experimented with adding standalone="yes". With that added to the xml declaration, Oxygen does indeed start reporting all undeclared entities, even those in attribute values, as fatal errors. However, it also reports other things as errors that I don't thi...
by dcramer
Wed Sep 20, 2017 9:26 pm
Forum: Common Problems
Topic: Unresolved Entity not detected or not reported
Replies: 12
Views: 2914

Re: Unresolved Entity not detected or not reported

Thanks Radu. Arcane stuff! I'm still puzzled by two things: 1. Why does role="&foo;" completely escape Xerces/Oxygen's notice without standalone="yes"? Is this interpreted as being a default value for the attribute? If so, that seems to be a strange interpretation. In any case, I can't imagine a sit...
by dcramer
Wed Sep 20, 2017 8:36 am
Forum: Common Problems
Topic: Unresolved Entity not detected or not reported
Replies: 12
Views: 2914

Re: Unresolved Entity not detected or not reported

I also have a legit bug to report related to this. There's a situation where Oxygen fails to give even a warning about an undeclared entity. See the section "Bonus bug in Oxygen 19.0" in https://github.com/dwcramer/xmlcalabash-catalog-bug In the screen cap below, notice that Oxygen fails to report t...
by dcramer
Wed Sep 20, 2017 8:13 am
Forum: Common Problems
Topic: Unresolved Entity not detected or not reported
Replies: 12
Views: 2914

Re: Unresolved Entity not detected or not reported

Feature Request: I would like to be able to specify for a given validation scenario the severity of this situation. I understand (and quote below) the spec's logic for leaving room for applications to recover from this situation (see the quote below). However, as a tool chain maintainer, it might be...
by dcramer
Tue Sep 19, 2017 6:53 pm
Forum: DocBook
Topic: Enforcing the generation of xml:id attributes in DocBook content
Replies: 1
Views: 1481

Enforcing the generation of xml:id attributes in DocBook content

In the DocBook framework, the menu DocBook5->ID Options... allows the user to specify a pattern to use for automatically adding xml:id attributes to a specified list of elements. I would like to control these settings for our users in our customization of that framework. It appears that the preferen...
by dcramer
Mon Sep 18, 2017 11:40 pm
Forum: SDK-API, Frameworks - Document Types
Topic: "Adding Placeholders or Hints in a Document Template" broken in our local framework/oxygen install
Replies: 2
Views: 1078

Re: "Adding Placeholders or Hints in a Document Template" broken in our local framework/oxygen install

Oh, now I see it's broken for me in 18.1 but works in 19.0. I have multiple versions of Oxygen installed because I want to edit a framework file using the lowest version that our users have installed. I'm not certain that's necessary, but I was worried that if I pushed out a framework created with a...
by dcramer
Mon Sep 18, 2017 11:34 pm
Forum: SDK-API, Frameworks - Document Types
Topic: "Adding Placeholders or Hints in a Document Template" broken in our local framework/oxygen install
Replies: 2
Views: 1078

"Adding Placeholders or Hints in a Document Template" broken in our local framework/oxygen install

In a fresh install of Oxygen, the <?oxy-placeholder?> PI, https://www.oxygenxml.com/doc/versions/19.0/ug-editor/topics/customizing-templates.html , works perfectly. However, in my environment it's broken, perhaps by some customization or some aspect of my framework. These PIs just show up as PIs, no...
by dcramer
Mon Aug 21, 2017 6:21 pm
Forum: Other Issues
Topic: xinclude 1.1 and Calabash within Oxygen
Replies: 17
Views: 3076

Re: xinclude 1.1 and Calabash within Oxygen

Thanks Adrian. Turning off "Enable Xinclude Processing" globally did indeed make my XProc transformation scenario work the same as when I run the pipeline from the command line. That's good news about the support for xinclude 1.1 in 19.1! Having support for it in my pipeline without support in the e...