Search found 6266 matches

by Radu
Fri Jun 14, 2019 11:42 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: DITA-OT 3.3 and XSLT 3.0
Replies: 1
Views: 66

Re: DITA-OT 3.3 and XSLT 3.0

Hi John,

Yes, you should be able to use XSLT 3.0 constructs in your stylesheets.

Regards,
Radu
by Radu
Thu Jun 13, 2019 9:16 pm
Forum: XSLT and FOP
Topic: font-family not working when running XSL-FO via XProc
Replies: 1
Views: 83

Re: font-family not working when running XSL-FO via XProc

Hi Martin, We are not very familiar with using XProc to generate PDF. Are you using Apache FOP for this or the XEP formatter? How did you set this up? Can you also give us a sample XProc script to test on our side. For Apache FOP there usually can be specified a "fop.xconf" configuration file which ...
by Radu
Thu Jun 13, 2019 8:54 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: DITA Map MS Office Word transformation scenario: resolving xref
Replies: 4
Views: 210

Re: DITA Map MS Office Word transformation scenario: resolving xref

Hi, Looking at the XSLT stylesheet: Oxygen XML Editor/frameworks/dita/DITA-OT2.x/plugins/com.elovirta.ooxml/docx/word/document.topic.xsl it seems to have that XSLT template I suggested you to change: <xsl:template match="*[contains(@class, ' topic/topic ')]/ *[contains(@class, ' topic/title ')]" nam...
by Radu
Thu Jun 13, 2019 8:14 pm
Forum: XSLT and FOP
Topic: Page-Break in a table
Replies: 3
Views: 90

Re: Page-Break in a table

Hi, Usually to add a page break inside XSL-FO I add a new fo:block looking something like this: <fo:block page-break-before="always"/> If this does not work inside table cells, maybe depending on the FO processor used to create the PDF from XSL-FO (Oxygen uses Apache FOP by default) you could regist...
by Radu
Thu Jun 13, 2019 8:05 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Bibliography.dita example / bibliolist result
Replies: 1
Views: 35

Re: Bibliography.dita example / bibliolist result

Hi David, As far as I know (but we are not using bibliographies in our user's docs) DITA does not special element names for creating bibliographies so you will need to use the DITA regular tags (bold, italic, underline, links, lists) to create the bibliographical topic. You can also try to register ...
by Radu
Thu Jun 13, 2019 7:25 pm
Forum: General XML Questions
Topic: Global XML Attribute Change Possible?
Replies: 5
Views: 185

Re: Global XML Attribute Change Possible?

Hi, These constructs are regular expressions implemented in Java based closely on PERL based expressions. They should work and can also be tested in the Oxygen Find/Replace dialog: https://www.oxygenxml.com/doc/versions/21.1/ug-editor/topics/regular-expressions.html In your case you should probably ...
by Radu
Thu Jun 13, 2019 6:58 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Use of <foreign> for embedding HTML content into topics
Replies: 5
Views: 77

Re: Use of <foreign> for embedding HTML content into topics

Hi David,

I also missed it a couple of times :) But once you said the HTML was not produced at all, it meant that somehow the fragment was not a well formed XHTML content so I took another close look at it.

Regards,
Radu
by Radu
Thu Jun 13, 2019 1:38 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Use of <foreign> for embedding HTML content into topics
Replies: 5
Views: 77

Re: Use of <foreign> for embedding HTML content into topics

Hi David,

Probably this occurs because instead of using "</span>" to end the tag you used "<span>".
So the XML should have looked like this:

Code: Select all

<foreign outputclass="html-embed"><![CDATA[<span class="span_test">test</span>]]></foreign>
Regards,
Radu
by Radu
Wed Jun 12, 2019 9:05 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Eclipse auto update
Replies: 1
Views: 44

Re: Eclipse auto update

Hi Wayne, A third party Eclipse plugin can add a dependency on the Oxygen plugin and impose a set of fixed options when our plugin starts. I think you should also ask Ixiasoft about this, from what I remember you are not the first company requesting this so they may have something in our own Eclipse...
by Radu
Wed Jun 12, 2019 9:00 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Use of <foreign> for embedding HTML content into topics
Replies: 5
Views: 77

Re: Use of <foreign> for embedding HTML content into topics

Hi David,

What specifically breaks in the topic rendering? Maybe you should open the equivalent generated HTML topic in Oxygen and see if there is anything fishy in there in the way in which the span inside the CDATA was preserved.

Regards,
Radu
by Radu
Fri Jun 07, 2019 8:08 am
Forum: SDK-API, Frameworks - Document Types
Topic: Unresolved Keyref
Replies: 1
Views: 106

Re: Unresolved Keyref

Hi Krishna, By adding your own Author extension state listener you inhibited the default Author extension state listener used in the DITA Map framework Java extensions. The workaround would be to extend directly the DITA Map extensions bundle (located in the dita.jar): public class DITAMapExtBundleE...
by Radu
Fri Jun 07, 2019 8:00 am
Forum: General XML Questions
Topic: Can OxygenXML batch relocate XML Blocks?
Replies: 8
Views: 203

Re: Can OxygenXML batch relocate XML Blocks?

Hi, For moving the "referencedApplicGroup" before "description" custom XML refactoring XSLT stylesheet would look like this: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs" version="2.0"> <xsl:template match="n...
by Radu
Fri Jun 07, 2019 7:50 am
Forum: General XML Questions
Topic: Can XML Refactoring convert an element to an attribute?
Replies: 2
Views: 63

Re: Can XML Refactoring convert an element to an attribute?

Hi, The XSLT stylesheet for a custom XML refactoring operation could look something like this: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs" version="2.0"> <xsl:template match="node() | @*"> <xsl:copy> <xsl:a...
by Radu
Fri Jun 07, 2019 7:44 am
Forum: General XML Questions
Topic: How to disable MSXML output escaping?
Replies: 1
Views: 41

Re: How to disable MSXML output escaping?

Hi, Maybe you could have given a small example with the characters which are escaped. XSLT processors need to produce valid XML content. So usually various characters like "<" and "&" are required to be escaped in the produced XML text otherwise the produced XML content would not be valid. Regards, ...
by Radu
Fri Jun 07, 2019 7:41 am
Forum: Common Problems
Topic: Updating read only file background color
Replies: 1
Views: 72

Re: Updating read only file background color

Hi, With that CMS are you using Oxygen? Oxygen has APIs which can be called by a CMS to make it read-only. Indeed if the editing area is made read-only this does not change by default the background of the opened XML documents. There is a small lock icon which appears on the editor tab and editing s...
by Radu
Fri Jun 07, 2019 7:28 am
Forum: Other Issues
Topic: Suppressing Certain Validation Errors
Replies: 1
Views: 71

Re: Suppressing Certain Validation Errors

Hi, There is a possibility to add an Oxygen plugin which filters out errors before they are presented but as the errors are reported by Oxygen because a Subject Scheme map has imposed a fixed set of values for that specific attribute, I think that it's best to talk to the maintainers of the Subject ...
by Radu
Thu Jun 06, 2019 2:15 pm
Forum: XSLT and FOP
Topic: Remove multiline comments
Replies: 8
Views: 279

Re: Remove multiline comments

Hi, Quoting from one of my previous replies: Also you should first check if your XML document is wellformed. On the Oxygen toolbar there is a "Validate" drop-down button which has a "Check Well-Formedness" action. If the action reports problems, then you will not be able to apply XSLT over the XML d...
by Radu
Thu Jun 06, 2019 11:22 am
Forum: General XML Questions
Topic: Adding Matching Tags using XML Refactoring
Replies: 4
Views: 99

Re: Adding Matching Tags using XML Refactoring

Hi, You should try to use the "Wrap element" pre-defined XML refactoring action. The target element should be "symbol" and the wrapper element should be "para" with empty namespace (if your XML does not specify a namespace). About these remarks: Additionally, how do I instruct OxygenXML to skip over...
by Radu
Thu Jun 06, 2019 11:09 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Integrating REST API Reference (OpenAPI) with DITA
Replies: 1
Views: 66

Re: Integrating REST API Reference (OpenAPI) with DITA

Hi, You have quite an interesting use case. The DITA Open Toolkit allows adding plugins, plugins which would pre-process referenced JSON files to DITA. For example if in a topicref in the DITA Map you would refer to a JSON file: <topicref href="test.json" format="json"/> a DITA Open Toolkit plugin c...
by Radu
Thu Jun 06, 2019 10:52 am
Forum: SDK-API, Frameworks - Document Types
Topic: JS Plugin causes java.lang.ClassCastException when Oxygen is closed.
Replies: 1
Views: 65

Re: JS Plugin causes java.lang.ClassCastException when Oxygen is closed.

Hi Andreas, Please add to your Javascript file also this function: function applicationClosing(pluginWorkspaceAccess) { } because Oxygen tries to call it when it is closing and as it is not there, it issues that error. I will make changes in our code so that we never throw that strange error when th...
by Radu
Thu Jun 06, 2019 10:48 am
Forum: General XML Questions
Topic: Can OxygenXML batch relocate XML Blocks?
Replies: 8
Views: 203

Re: Can OxygenXML batch relocate XML Blocks?

Hi, Looking at the refactor.xsl content I posted, I forgot to post the last line in the file, it should be like this: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs" version="2.0"> <!-- Copy anything unchanged ...
by Radu
Thu Jun 06, 2019 10:42 am
Forum: XSLT and FOP
Topic: Remove multiline comments
Replies: 8
Views: 279

Re: Remove multiline comments

Hi Samba, The regular expression example I gave you matches content multi line. About using an array like structure, you probably need to use a programming language like Java, apply the regexp in the Java code and keep the results in an array for further processing. Maybe you can ask around on Stack...
by Radu
Wed Jun 05, 2019 2:32 pm
Forum: Common Problems
Topic: Schematron rules for moving the position of an element
Replies: 2
Views: 66

Re: Schematron rules for moving the position of an element

Hi,

An example of an XML refactoring action which moves an element as a child of its preceding sibling can be found here:

viewtopic.php?p=54141#p54126

Regards,
Radu
by Radu
Wed Jun 05, 2019 12:17 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: DITA Publishing - Glossary & References
Replies: 6
Views: 184

Re: DITA Publishing - Glossary & References

Hi David, is it possible to filter a DITA file directly from a DITAMap or BookMap (meaning for example calling the same DITA file several times in a single Map, with different filters, resulting in different sections in the final output)? The profinling is made on the whole Map at the processing sta...
by Radu
Wed Jun 05, 2019 9:10 am
Forum: General XML Questions
Topic: Can OxygenXML batch relocate XML Blocks?
Replies: 8
Views: 203

Re: Can OxygenXML batch relocate XML Blocks?

Hi, Please find some answers below: Upon performing a XML Refactoring PREVIEW a window pops up with the message shown below: "Could not find any resources that would be affected by this operation." Would it be too much trouble for you to post a project XML file you have tested your XML Refactoring X...
by Radu
Wed Jun 05, 2019 9:00 am
Forum: Common Problems
Topic: SVGs sometimes show "www.w3.org:80 failed to respond"
Replies: 4
Views: 92

Re: SVGs sometimes show "www.w3.org:80 failed to respond"

Hi Chris, So: Reenabling all frameworks results in responsive SVG display in the editor when opening topics (hooray!). Great, you do not need to disable frameworks, you will not gain any performance improvement by doing so. However, I still see the following messages in the PDF Chemistry log file, a...
by Radu
Wed Jun 05, 2019 8:10 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: DITA Publishing - Glossary & References
Replies: 6
Views: 184

Re: DITA Publishing - Glossary & References

Hi David, What you did as a customization for DocBook can probably (with some effort) be also done for DITA publishing. At the last DITA North America conference there was this presentation: https://www.slideshare.net/drmacro/definition-of-the-dita-glossary-or-how-to-get-some-cool-glossary-tools-for...
by Radu
Tue Jun 04, 2019 1:56 pm
Forum: General XML Questions
Topic: Global XML Attribute Change Possible?
Replies: 5
Views: 185

Re: Global XML Attribute Change Possible?

Hi,

You can try to find something like (.*)([^*])$ and replace with $1$2*

Regards,
Radu
by Radu
Tue Jun 04, 2019 10:58 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: DITA Publishing - Glossary & References
Replies: 6
Views: 184

Re: DITA Publishing - Glossary & References

Hi David, Here's how people using DITA with abbreviated forms usually work: https://www.oxygenxml.com/dita/1.3/specs/langRef/technicalContent/abbreviated-form.html 1) You define a glossentry DITA topic file containing the abbreviated definition and explanation: <glossentry id="abs-definition"> <glos...
by Radu
Tue Jun 04, 2019 10:18 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: XHTML Transformation CSS Path Issues
Replies: 3
Views: 185

Re: XHTML Transformation CSS Path Issues

Hi Adam, In my previous reply I was (probably falsely) assuming you were running the transformation from inside Oxygen. And when running transformations from inside Oxygen indeed you can use Oxygen-specific editor variables like ${pd} as values for transformation parameters. If you are instead runni...