Search found 68 matches
- by mboudreau
- Wed Feb 22, 2023 11:36 pm
- Forum: XSLT and FOP
- Topic: How to replace entire document, including prolog
- Replies: 8
- Views: 1512
Re: How to replace entire document, including prolog
Thanks, Cosmin. I set up the custom refactoring operation, and it's working as intended. At the moment, I can invoke it by clicking the XML Refactoring icon in the Toolbar, or by right-clicking inside the document in Author View and selecting 'Refactoring' and then the name of the custom operation. ...
- by mboudreau
- Tue Feb 21, 2023 7:45 pm
- Forum: XSLT and FOP
- Topic: How to replace entire document, including prolog
- Replies: 8
- Views: 1512
Re: How to replace entire document, including prolog
Just to be clear about what I'm trying to accomplish--I begin with a document like this: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "journalpublishing3.dtd"> <article article-type=&quo...
- by mboudreau
- Tue Feb 21, 2023 12:04 am
- Forum: XSLT and FOP
- Topic: How to replace entire document, including prolog
- Replies: 8
- Views: 1512
How to replace entire document, including prolog
I have an XSLT conversion that takes an instance of one DTD (NLM Journal Publishing 3.0) and converts it to an instance of another DTD (JATS 1.2). When I run this conversion in a transformation scenario, it works as expected. However, I want to build this conversion into an Action to be used in the ...
- by mboudreau
- Tue Oct 18, 2022 9:21 pm
- Forum: SDK-API, Frameworks - Document Types
- Topic: XSLTOperation and sourceLocation
- Replies: 3
- Views: 786
Re: XSLTOperation and sourceLocation
Thanks, Radu. I removed the match="/" template from my transformation, and now I get the result I was hoping for. However, now I'm unclear about the purpose of that template: <xsl:template match="/"> <xsl:apply-templates select="oxy:current-element()"/> </xsl:template> ...
- by mboudreau
- Tue Oct 18, 2022 12:03 am
- Forum: SDK-API, Frameworks - Document Types
- Topic: XSLTOperation and sourceLocation
- Replies: 3
- Views: 786
XSLTOperation and sourceLocation
I have created an XSLTOperation action that wraps the content of a table <entry> in a <styled-content> element, using this XSLT stylesheet: <xsl:stylesheet xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:oxy="http://www.oxygenxml.com/ns/author/xpath-extension-functions" xmln...
- by mboudreau
- Fri Jul 29, 2022 5:24 pm
- Forum: SDK-API, Frameworks - Document Types
- Topic: Framework configuration for doctype SYSTEM identifier
- Replies: 2
- Views: 789
Re: Framework configuration for doctype SYSTEM identifier
Thanks, Radu! That worked.
- by mboudreau
- Fri Jul 29, 2022 12:09 am
- Forum: SDK-API, Frameworks - Document Types
- Topic: Framework configuration for doctype SYSTEM identifier
- Replies: 2
- Views: 789
Framework configuration for doctype SYSTEM identifier
Hi, I'm setting up a framework to view ONIX files, which one of our vendors requires with a doctype declaration that has a system ID instead of a public ID: <!DOCTYPE ONIXMessage SYSTEM "http://www.editeur.org/onix/2.1/reference/onix-international.dtd"> For all my previous frameworks, I've...
- by mboudreau
- Tue Dec 07, 2021 11:22 pm
- Forum: Common Problems
- Topic: Toolbar arrangement is not stable
- Replies: 1
- Views: 578
Toolbar arrangement is not stable
Hello, I have created a couple of frameworks that each include custom toolbars with groups of actions. When I'm viewing documents that use these frameworks in Author mode, I arrange the custom toolbars the way I want, but after closing and reopening the files, or opening new files, the toolbar layou...
- by mboudreau
- Tue Dec 07, 2021 6:17 pm
- Forum: SDK-API, Frameworks - Document Types
- Topic: Syntax for InsertFragmentOperation
- Replies: 2
- Views: 945
Re: Syntax for InsertFragmentOperation
Thanks, Radu. That works for me as well.
- by mboudreau
- Tue Dec 07, 2021 6:45 am
- Forum: SDK-API, Frameworks - Document Types
- Topic: Syntax for InsertFragmentOperation
- Replies: 2
- Views: 945
Syntax for InsertFragmentOperation
Hello! I'm trying to create an action that will insert an XML fragment into a document, and some of the fragment's element content must be selected by the user. This version of my fragment works: <article-categories> <subj-group subj-group-type="badges"> <compound-subject> <compound-subjec...
- by mboudreau
- Fri Apr 16, 2021 6:56 pm
- Forum: SDK-API, Frameworks - Document Types
- Topic: XSLTOperation to edit MathML
- Replies: 4
- Views: 1501
Re: XSLTOperation to edit MathML
Hi Alex, Using a parameter worked. For XSLTOperation: externalParams: label=${ask('Enter label', generic)} And the script: <xsl:stylesheet xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:oxy="http://www.oxygenxml.com/ns/author/xpath-extension-functions" xmlns:xsl="http:...
- by mboudreau
- Fri Apr 16, 2021 4:43 pm
- Forum: SDK-API, Frameworks - Document Types
- Topic: XSLTOperation to edit MathML
- Replies: 4
- Views: 1501
Re: XSLTOperation to edit MathML
Hi Alex, The ${ask} editor variable isn't working as you describe. When my template includes this: <mml:mtext>${ask('Enter label', generic)}</mml:mtext> I get exactly the same content in the output. No dialog box appears asking for the value, and the string "${ask('Enter label', generic)}"...
- by mboudreau
- Fri Apr 16, 2021 4:25 am
- Forum: SDK-API, Frameworks - Document Types
- Topic: XSLTOperation to edit MathML
- Replies: 4
- Views: 1501
XSLTOperation to edit MathML
I'm creating an Author action to add a label to a MathML element. Following the models at https://www.oxygenxml.com/doc/versions/23.0/ug-editor/topics/dg-default-author-operations.html, my transformation script looks like this: <?xml version="1.0" encoding="UTF-8"?> <xsl:styleshe...
- by mboudreau
- Tue Mar 30, 2021 6:32 pm
- Forum: XSLT and FOP
- Topic: Empty xmlns attribute in XSLT output
- Replies: 4
- Views: 6204
Re: Empty xmlns attribute in XSLT output
Thanks, Radu. This clarifies things a lot. I didn't realize that having a default namespace on the stylesheet applied that to the output of the conversion. I'm using Oxygen version 23.0, which I see now requires <html xmlns="http://www.w3.org/1999/xhtml"> for XHTML files but only <html> fo...
- by mboudreau
- Mon Mar 29, 2021 11:59 pm
- Forum: XSLT and FOP
- Topic: Empty xmlns attribute in XSLT output
- Replies: 4
- Views: 6204
Re: Empty xmlns attribute in XSLT output
Hi Radu, Before I dump a lot of files on you, perhaps I can focus my question a little better. When my JATS-to-HTML stylesheet begins like this: <xsl:stylesheet version="2.0" xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" xmlns:mml="...
- by mboudreau
- Mon Mar 29, 2021 1:17 am
- Forum: XSLT and FOP
- Topic: Empty xmlns attribute in XSLT output
- Replies: 4
- Views: 6204
Empty xmlns attribute in XSLT output
I have an XSLT conversion that is resulting in elements with xmlns="" for reasons I don't understand. I don't think this is the result of an Oxygen bug, but more likely I have an incomplete understanding of how Oxygen (or the Saxon processor) handles namespaces. The conversion giving the u...
- by mboudreau
- Fri Mar 05, 2021 12:17 am
- Forum: XSLT and FOP
- Topic: Framework conflict
- Replies: 10
- Views: 4052
Re: Framework conflict
Hi Radu, I think I've finally got it. For the framework (UCP JATS 1.2) associated with the DTD that we customized (JATS Journal Publishing 1.2, "blue"), I changed all the public identifiers in the catalog file and in the DTD component files to include the string "UCP", and I chan...
- by mboudreau
- Thu Mar 04, 2021 5:40 am
- Forum: XSLT and FOP
- Topic: Framework conflict
- Replies: 10
- Views: 4052
Re: Framework conflict
Another thought has occurred to me. Am I right in assuming that if one of the two frameworks used a DTD that was contained in a single file, no catalog file would be necessary and there would be no conflict?
- by mboudreau
- Wed Mar 03, 2021 11:42 pm
- Forum: XSLT and FOP
- Topic: Framework conflict
- Replies: 10
- Views: 4052
Re: Framework conflict
I tried this, but the conflict persists. I then tried changing the names of all the DTD component files (adding an extra filename extension), and still no luck.You can probably change the public IDs just in one of those frameworks.
- by mboudreau
- Tue Mar 02, 2021 7:47 pm
- Forum: XSLT and FOP
- Topic: Framework conflict
- Replies: 10
- Views: 4052
Re: Framework conflict
Hello again! I neglected to pursue this issue before the pandemic, but it's come up again, this time in a more annoying way. I have two new frameworks that are apparently in conflict, for document types that I need to convert from one to the other, so temporarily disabling one or the other of the fr...
- by mboudreau
- Wed May 27, 2020 12:11 am
- Forum: Common Problems
- Topic: "Additional libraries present" error on starting 22.1
- Replies: 7
- Views: 2436
Re: "Additional libraries present" error on starting 22.1
Hi Radu, Yes, if I go back to the configuration that worked with 21.1 and move "libraries.list" from the lib directory, the MySQL connection is made and the transformation works. I do prefer your solution #1 though, since it makes sharing the framework or upgrading to a new version a bit e...
- by mboudreau
- Fri May 22, 2020 5:42 pm
- Forum: Common Problems
- Topic: "Additional libraries present" error on starting 22.1
- Replies: 7
- Views: 2436
Re: "Additional libraries present" error on starting 22.1
Hi Radu, The transformation doesn't work because the script is set up to terminate if the MySQL connection cannot be made. Here is my minimal version of the transformation (I hope it's not too long). This works under Oxygen 21.1 with the JAR file in OxygenHome/lib, and does not work under Oxygen 22....
- by mboudreau
- Thu May 21, 2020 9:29 pm
- Forum: Common Problems
- Topic: "Additional libraries present" error on starting 22.1
- Replies: 7
- Views: 2436
Re: "Additional libraries present" error on starting 22.1
Hi Radu, Thanks for your reply. I tried to set up your option 1, moving the JAR file into the framework folder, but on running the transformation that connects to MySQL, I now get a different error message: The script cannot be executed: Failed to load JDBC driver org.gjt.mm.mysq.Driver In the frame...
- by mboudreau
- Wed May 20, 2020 5:22 pm
- Forum: Common Problems
- Topic: "Additional libraries present" error on starting 22.1
- Replies: 7
- Views: 2436
"Additional libraries present" error on starting 22.1
I downloaded and installed Oxygen 22.1 today. However, after adding the file mysql-connector-java-5.1.42-bin.jar to the libraries folder (we use this for an XSLT transform that consults a MySQL database), I get this error message on startup: There are additional libraries present in the application ...
- by mboudreau
- Tue Feb 18, 2020 6:30 pm
- Forum: SDK-API, Frameworks - Document Types
- Topic: Custom menu of options for InsertFragmentOperation
- Replies: 16
- Views: 5572
- by mboudreau
- Sat Dec 14, 2019 1:51 am
- Forum: SDK-API, Frameworks - Document Types
- Topic: Require user to confirm global changes
- Replies: 1
- Views: 1085
Require user to confirm global changes
I have created a pair of Actions for editing a journal article: Convert CURRENT underline element to italic Convert ALL underline elements to italic If the user chooses the "Convert ALL" action, I'd like to present a confirmation dialog that warns this is a global action that cannot be und...
- by mboudreau
- Sat Dec 14, 2019 1:48 am
- Forum: SDK-API, Frameworks - Document Types
- Topic: Action to search and replace in Author mode
- Replies: 1
- Views: 1131
Action to search and replace in Author mode
Is it possible to create Actions that find and replace text throughout an entire document in Author mode? For example, changing multiple spaces to a single space. I know this is easy to do using the Find dialog, but I'd like to be able to assign frequently used replace-all operations to a toolbar bu...
- by mboudreau
- Wed Dec 11, 2019 12:21 am
- Forum: SDK-API, Frameworks - Document Types
- Topic: Custom menu of options for InsertFragmentOperation
- Replies: 16
- Views: 5572
Re: Custom menu of options for InsertFragmentOperation
Ah, those quotes! I've gotten tripped up on that before. Since I want to choose the <journal> element from subject_headings.xml based on the content of /article/front/journal-meta/journal-id[@journal-id-type="publisher-id"] in the file being edited, I expanded the example to this: <article...
- by mboudreau
- Mon Dec 09, 2019 11:47 pm
- Forum: SDK-API, Frameworks - Document Types
- Topic: Custom menu of options for InsertFragmentOperation
- Replies: 16
- Views: 5572
Re: Custom menu of options for InsertFragmentOperation
Hm. Stumped again. With this file: <?xml version="1.0"?> <subject-headings> <journal id="AJS"> 'AJS Article':'AJS Article'; 'AJS Editorial':'AJS Editorial'; 'AJS Review':'AJS Review' </journal> <journal id="BBL"> 'BBL Article':'BBL Article'; 'BBL Editorial':'BBL Editori...
- by mboudreau
- Fri Dec 06, 2019 11:07 pm
- Forum: SDK-API, Frameworks - Document Types
- Topic: Custom menu of options for InsertFragmentOperation
- Replies: 16
- Views: 5572
Re: Custom menu of options for InsertFragmentOperation
Thanks, Sorin! This is what finally works: ${ask('Choose or type a subject heading:', editable_combobox, (${xpath_eval( if ( doc-available(concat('${framework}/resources/subjects_', /article/front/journal-meta/journal-id[@journal-id-type="publisher-id"], '.xml')) ) then string(doc(concat('...
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