Search found 89 matches

by whyme
Mon Nov 01, 2021 12:08 pm
Forum: Common Problems
Topic: Is there a way to replace everything but keep data that was found by wild card
Replies: 3
Views: 1047

Re: Is there a way to replace everything but keep data that was found by wild card

Yes, use parentheses in the find field and back references in the replace field. Where you have .*? use (.*?) in your first block of code and \1 in your second. (Note that if you're doing this in XPath, you need to use $1, but not in Oxygen's search/replace dialogue.) Background reading: https://www...
by whyme
Thu Oct 28, 2021 4:45 pm
Forum: Common Problems
Topic: Author action, XSLTOperation, (insert) action: "replace": efficiency et al.
Replies: 2
Views: 806

Author action, XSLTOperation, (insert) action: "replace": efficiency et al.

This might fall in the category of "sorry, but find another way." And I realize this falls across both "Common Problems" and "Feature Requests." I have a relatively straightforward Author action based upon XSLTOperation. The (insert) action argument is "Replace&quo...
by whyme
Thu Oct 28, 2021 2:32 pm
Forum: Common Problems
Topic: Comments with comments in Author toggle to text
Replies: 2
Views: 861

Comments with comments in Author toggle to text

Given the following XML file in Author mode... <?xml version="1.0" encoding="UTF-8"?> <root> <!--<remark1>hello</remark1>--> <!--<remark2><!-\- there -\-></remark2>--> </root> ...applying Toggle Comment to the first comment results correctly in an element, but when applied to the...
by whyme
Wed Oct 27, 2021 10:30 pm
Forum: Common Problems
Topic: Author actions when cursor is in a comment
Replies: 6
Views: 1469

Re: Author actions when cursor is in a comment

So given the following author action, "move_to_parent"... <?xml version="1.0" encoding="UTF-8"?> <a:authorAction xmlns:a="http://www.oxygenxml.com/ns/author/external-action" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=&qu...
by whyme
Tue Oct 19, 2021 3:44 pm
Forum: Common Problems
Topic: Select action now alt-side-sensitive
Replies: 4
Views: 1082

Re: Select action now alt-side-sensitive

1. Windows
2. US-Dvorak (but I get the same behavior with US standard and Greek polytonic)
3. yes: 17+35-2724

Running on a Dell Inspiron15 5000 series, laptop's native keyboard.
by whyme
Mon Oct 18, 2021 11:38 pm
Forum: Common Problems
Topic: Select action now alt-side-sensitive
Replies: 4
Views: 1082

Select action now alt-side-sensitive

Congratulations on shipping Oxygen v. 24! In the new version, selection of a parent appears to be sensitive to which Alt I am using, the one on the left or the right. That makes it inconvenient when choosing an element, because it now requires use of the left-side Alt key plus E. When I try to bind ...
by whyme
Tue Sep 28, 2021 7:51 pm
Forum: Common Problems
Topic: Author actions when cursor is in a comment
Replies: 6
Views: 1469

Re: Author actions when cursor is in a comment

Hm, this is strange. In a dummy project file, I have my cursor in a comment, XPath /root/a/b/comment(). I have a simple author action, to move to the current parent. I've adopted your suggested ancestor-or-self::node()[1] (though I'm not sure why I need to make this change -- ancestor-or-self::*[1] ...
by whyme
Mon Sep 20, 2021 7:50 pm
Forum: Common Problems
Topic: Author actions when cursor is in a comment
Replies: 6
Views: 1469

Author actions when cursor is in a comment

Hi, I've tried a simple Author MoveCaretOperation to move the cursor to ancestor-or-self::*[1]. It works fine, except when the cursor is currently in a comment or processing instruction. In those cases the action does not start. I've found some other author actions that seem not to respond when the ...
by whyme
Thu Sep 16, 2021 12:46 pm
Forum: Common Problems
Topic: oxy:current-element()
Replies: 12
Views: 2190

Re: oxy:current-element()

Hi Alex, I figured it out. An XML file with comments, process instructions, or CData appears to trip up the evalutaion of oxy:current-element(). Suppose a root element that wraps one comment followed by two elements. The cursor is in the first child element. When the action is applied, the second ch...
by whyme
Wed Sep 15, 2021 9:14 pm
Forum: Common Problems
Topic: oxy:current-element()
Replies: 12
Views: 2190

Re: oxy:current-element()

The problematic frameworks file does not include any entries under classpath or extensions, so there shouldn't be any conflicts from external Java resources.
by whyme
Wed Sep 15, 2021 9:09 pm
Forum: Common Problems
Topic: oxy:current-element()
Replies: 12
Views: 2190

Re: oxy:current-element()

I have been able to replicate the oxy:current-element() example by creating a fresh project, a fresh external frameworks file, and a fresh author action. A second new author action based upon the XSLT that was giving my other external frameworks file problems also works fine. Now, staying within the...
by whyme
Wed Sep 15, 2021 1:29 pm
Forum: Common Problems
Topic: oxy:current-element()
Replies: 12
Views: 2190

Re: oxy:current-element()

I'm working through an externally saved framework, so no jar files are involved AFAIK. Let me try a couple of things on my end.
by whyme
Wed Sep 15, 2021 12:23 pm
Forum: Common Problems
Topic: oxy:current-element()
Replies: 12
Views: 2190

Re: oxy:current-element()

Build 2020111805
by whyme
Wed Sep 15, 2021 12:18 pm
Forum: Common Problems
Topic: oxy:current-element()
Replies: 12
Views: 2190

Re: oxy:current-element()

V. 23
by whyme
Wed Sep 15, 2021 1:55 am
Forum: Common Problems
Topic: oxy:current-element()
Replies: 12
Views: 2190

oxy:current-element()

The very helpful instructions at Built-in Author Mode Operations > XSLTOperation and XQueryOperation advises the use of oxy:current-element(), but I can't replicate the code example there without an error both in the XSLT (Cannot find a 0-argument function named Q{http://www.oxygenxml.com/ns/author/...
by whyme
Sun Feb 14, 2021 2:00 pm
Forum: Feature Request
Topic: xsl:package editing support
Replies: 2
Views: 1224

xsl:package editing support

Hi, When I start a new XSLT file I don't have the option to make it an xsl:package. I can do this manually, but I see that autofill is not supported for the root element's attributes, at least not at the beginning of the process (it kicks in later, after @version='3.0' is manually added). Further, w...
by whyme
Wed Nov 25, 2020 9:48 am
Forum: Common Problems
Topic: Configure transformation scenarios boolean
Replies: 3
Views: 1428

Re: Configure transformation scenarios boolean

After some diagnostics it seems that the error occurs specifically with static params. Your example code works, but not if you add static="yes" to <xsl:param>. If you haven't reconfigured the transformation scenario, the warning/error will read Parameter $isParam cannot be supplied dynamic...
by whyme
Tue Nov 17, 2020 1:34 pm
Forum: Common Problems
Topic: Configure transformation scenarios boolean
Replies: 3
Views: 1428

Configure transformation scenarios boolean

I think I've followed the instructions for Configure Transformation Scenarios > Edit scenario > Parameters > Configure Parameters > Edit correctly. I am trying to pass a value to a parameter that takes a boolean. But no matter what I type, true(), true, 1, ${xpath_eval(true())}, exists(/*) I get an ...
by whyme
Fri Sep 04, 2020 1:10 pm
Forum: Feature Request
Topic: Add import button in DTA Author Actions menu
Replies: 5
Views: 1465

Add import button in DTA Author Actions menu

Under Document Type Association > Author > Actions there is a button that allows you to export actions, but not a comparable button to allow you to import them. The current documentation is unclear on how to import actions that have been saved elsewhere.
by whyme
Thu Jul 23, 2020 12:38 pm
Forum: Common Problems
Topic: Configure Validation Scenarios does not detect phases in Schematron with includes
Replies: 3
Views: 1517

Re: Configure Validation Scenarios does not detect phases in Schematron with includes

Thanks Octavian. I don't know if the following would be persuasive in the decision whether to implement this feature, but Schematron includes, unlike XSLT includes, have a small iteration limit. To fetch a Schematron phase that has been included, you need (I think) go no deeper than one round of inc...
by whyme
Thu Jul 23, 2020 7:17 am
Forum: Common Problems
Topic: Configure Validation Scenarios does not detect phases in Schematron with includes
Replies: 3
Views: 1517

Configure Validation Scenarios does not detect phases in Schematron with includes

I have a Schematron file that is for the most part empty, except for the <sch:include> elements that point to included Schematron files that have the intended <sch:phase> and <sch:active> elements that define the phases. When I go to Configure Validation Scenario(s) > Edit Scenario, and then specify...
by whyme
Thu Jul 16, 2020 6:12 am
Forum: Common Problems
Topic: Newly installed fonts not populating
Replies: 2
Views: 1172

Re: Newly installed fonts not populating

Thanks! That worked, and I didn't have to reboot. As a note to those coming across this post: if when you right-click on a font you do not see the option "Install for all users" here are two possible reasons + fixes: The font file you've chosen is already installed in C:\Windows\Fonts. Mov...
by whyme
Wed Jul 15, 2020 5:03 pm
Forum: Common Problems
Topic: Newly installed fonts not populating
Replies: 2
Views: 1172

Newly installed fonts not populating

On a Windows 10 machine I've installed three different fonts (GFS Didot, Minion Pro, Iosevka) of different types (ttf, ttc, otf), and none of these appear as font preference options in oXygen vv. 20-22, after multiple opens and closes. But the fonts do in other software. Any suggestions?
by whyme
Fri Jun 05, 2020 2:42 pm
Forum: Common Problems
Topic: Run XSpec Test configuration for XML 1.1
Replies: 2
Views: 1234

Re: Run XSpec Test configuration for XML 1.1

Thanks, Alex. It's my question, so I'm happy to put in the ticket and follow through. When there's resolution I'll try to remember to post back here.
by whyme
Fri Jun 05, 2020 7:12 am
Forum: Common Problems
Topic: Run XSpec Test configuration for XML 1.1
Replies: 2
Views: 1234

Run XSpec Test configuration for XML 1.1

I'm trying to do the Run XSpec Test on an xspec file that uses control characters (i.e., XML 1.0 doesn't like them). The system bombs despite the file saying that it is XML 1.1. In the Parameters tab of the Run XSpec Test is an entry for saxon.custom.options. I've guessed that it is looking for a co...
by whyme
Mon Jan 06, 2020 5:58 am
Forum: Common Problems
Topic: fn:doc-available() and fatal error premature end of file
Replies: 2
Views: 1521

Re: fn:doc-available() and fatal error premature end of file

I've new tried the same tests on a third internet connection (one I use more frequently), and the error doesn't happen. Strange.
by whyme
Wed Jan 01, 2020 4:52 pm
Forum: Common Problems
Topic: fn:doc-available() and fatal error premature end of file
Replies: 2
Views: 1521

fn:doc-available() and fatal error premature end of file

When I run doc-available('http://badurl.com/bad.xml'), either as part of a stylesheet or in the XPath/XQuery Builder, on one of the Saxon products (9.8.0.8 or .12) I get a fatal error: Premature end of file. However, the error is not thrown by the following url alternatives: 'http://badurl.com/bad.h...
by whyme
Thu Nov 07, 2019 11:18 am
Forum: Common Problems
Topic: Transformation Scenario ${xpath_eval} and regex
Replies: 2
Views: 1298

Transformation Scenario ${xpath_eval} and regex

I am using editor variable ${xpath_eval} within a transformation output scenario Save As box, because I want to tweak the base uri of the input before sending it to output. But when I do something like this... ${pd}/${xpath_eval(replace(base-uri(),'.+/(\w+).+','$1'))}.html ...I get an error. The lin...
by whyme
Fri Oct 25, 2019 8:17 am
Forum: Common Problems
Topic: arch:extract-map multiple methods
Replies: 1
Views: 1095

arch:extract-map multiple methods

I am experimenting with the expath-archive function library. So far, arch:*-map() functions in general seem to work fine, but whenever I invoke arch:extract-map($i, $j), I get this validation error: [Saxon-EE 9.8.0.12] There is more than one method matching the function call arch:extract-map, and th...
by whyme
Thu Jul 18, 2019 8:41 am
Forum: Common Problems
Topic: saxon:validate()
Replies: 2
Views: 1444

Re: saxon:validate()

I just found the problem: in my Preferences > XML > XSLT-XQuery > XSLT > Saxon > Saxon-HE/PE/EE I had been pointing to a configuration file, which was overriding the options I had set up to handle saxon:validate(). Hope this helps someone else who stubs their toe on the same issue.