Search found 39 matches

by Martin Honnen
Tue Sep 18, 2018 7:27 pm
Forum: Feature Request
Topic: Supporting content completion/tooltip helper for XPath 3.1 functions that take JSON map, like the transform function
Replies: 2
Views: 135

Re: Supporting content completion/tooltip helper for XPath 3.1 functions that take JSON map, like the transform function

In what context are you using XPath 3.1? Is it while editing XQuery (3.1) or is this in another context (e.g. XPath/XQuery Builder)? I use it inside XSLT 3 stylesheets as well as in XQuery 3.1 files, but often I try to experiment or prototype stuff in the XPath/XQuery builder (where I then select o...
by Martin Honnen
Mon Sep 17, 2018 11:08 pm
Forum: XSLT and FOP
Topic: XSLT: Generate ID
Replies: 5
Views: 159

Re: XSLT: Generate ID

I have another question regarding parent-child relationships. How can I achieve the injection of <ParenId> in <Parent> and <Child> sections in the example below? <Root> <Parent> <ParentId>1</ParentId> <ParentName>P1</ParentName> <Child> <ChildId>1</ChildId> <ParentId>1</ParentId> <ChildName>C1</Chi...
by Martin Honnen
Fri Sep 14, 2018 4:53 pm
Forum: XSLT and FOP
Topic: XSLT: Generate ID
Replies: 5
Views: 159

Re: XSLT: Generate ID

So what kind of ID are you looking for? In general assuming you have a version of oXygen that supports XSLT 3 all such stylesheet that need to perform a transformation of some nodes but keep the rest of the document unchanged would start with <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XS...
by Martin Honnen
Fri Sep 14, 2018 1:32 pm
Forum: XSLT and FOP
Topic: adding and remove element in text node
Replies: 1
Views: 65

Re: adding and remove element in text node

So what are the exact rules for the transformation, even if you can't express them as XSLT? For the first sample you simply want to map the "s" element to a "p" and then wrap all the contents of the "s" element additionally into a "t" element which can be easi...
by Martin Honnen
Thu Sep 13, 2018 11:15 pm
Forum: Feature Request
Topic: Supporting content completion/tooltip helper for XPath 3.1 functions that take JSON map, like the transform function
Replies: 2
Views: 135

Supporting content completion/tooltip helper for XPath 3.1 functions that take JSON map, like the transform function

With previous versions of XPath, oXygen has nice support for displaying argument types of a function call in XPath expressions in a tooltip (https://www.oxygenxml.com/doc/versions/20.1/ug-editor/topics/xpath-tooltip-helper.html) but with the arrival of maps https://www.w3.org/TR/xpath-31/#id-maps in...
by Martin Honnen
Tue Aug 21, 2018 12:55 pm
Forum: XQuery
Topic: Exact license/version of Saxon 9.8 EE for XQuery in oXygen 20.1, general EE or only EE-Q
Replies: 1
Views: 224

Exact license/version of Saxon 9.8 EE for XQuery in oXygen 20.1, general EE or only EE-Q

Based on https://saxonica.plan.io/boards/3/topics/7281 I am wondering what kind of licence the Saxon EE 9.8.0.12 XQuery processor used in oXygen 20.1 has, it is the general EE license that according to http://www.saxonica.com/products/feature-matrix-9-8.xml supports schema-aware XSLT as well XQuery ...
by Martin Honnen
Mon Aug 20, 2018 11:24 am
Forum: XQuery
Topic: Support for data URIs in XQuery with Saxon in oXygen
Replies: 3
Views: 217

Re: Support for data URIs in XQuery with Saxon in oXygen

Thanks for your answer and the explanations so far. The XQuery code let $query as xs:string := 'xquery version "3.1"; module namespace foo = "http://example.com/foo"; declare function foo:f1() as xs:string { "test" };', $module as map(*) := load-xquery-module('http://ex...
by Martin Honnen
Sun Aug 19, 2018 9:37 pm
Forum: XQuery
Topic: Support for data URIs in XQuery with Saxon in oXygen
Replies: 3
Views: 217

Support for data URIs in XQuery with Saxon in oXygen

To find out whether I can use XQuery that generates XQuery code and load/run it with the W3C standard function https://www.w3.org/TR/xpath-functions/#func-load-xquery-module I tested whether I can use data URIs https://en.wikipedia.org/wiki/Data_URI_scheme inside of XQuery or XSLT. To my surprise th...
by Martin Honnen
Mon Mar 26, 2018 3:53 pm
Forum: Feature Request
Topic: xsl:template name="xsl:initial-template" completion/suggestion
Replies: 2
Views: 589

xsl:template name="xsl:initial-template" completion/suggestion

Now that oXygen 20 uses Saxon 9.8 with XSLT 3 support as the default XSLT engine it might be nice to have any <xsl:template name="xsl: or maybe only <xsl:template name="xsl:i autocompleted/suggested as <xsl:template name="xsl:initial-template" as that is now the default name for ...
by Martin Honnen
Fri Mar 16, 2018 6:21 pm
Forum: XSLT and FOP
Topic: Running Saxon 9.8 EE in oXygen 20 with streaming disabled
Replies: 1
Views: 500

Running Saxon 9.8 EE in oXygen 20 with streaming disabled

I am exploring how to use Saxon 9.8 EE in oXygen 20 with stylesheets that use streaming. As using streaming is a new feature that is difficult to understand and requires redeveloping your XSLT skill set and as furthermore sometimes Saxon gives different results when using streaming compared when not...
by Martin Honnen
Tue Jan 09, 2018 10:58 pm
Forum: XSLT and FOP
Topic: Is there a way to enable XPath content completion in text templates in XSLT 3.0?
Replies: 6
Views: 1257

Re: Is there a way to enable XPath content completion in text templates in XSLT 3.0?

Should I now get variable/function name completion in text value templates? I have tried with oXygen XML Editor 19.1, build 2017121318, but it doesn't seem to be implemented, for instance when I use an XSLT 3 stylesheet with expand-text="yes" on the root element and create a literal result...
by Martin Honnen
Thu Dec 21, 2017 3:59 pm
Forum: XQuery
Topic: Uncommenting code when writing XQuery
Replies: 2
Views: 780

Re: Uncommenting code when writing XQuery

I agree that using an XML comment with <root> <!--<foo>a</foo>--> <bar>1</bar> </root> is also an option a user editing XQuery might want or expect with the "Toggle comment" feature. On the other hand, I for sure was looking for a way for the editor to assist me in commenting out that elem...
by Martin Honnen
Thu Dec 21, 2017 11:42 am
Forum: XQuery
Topic: Uncommenting code when writing XQuery
Replies: 2
Views: 780

Uncommenting code when writing XQuery

Suppose I write an XQuery where I first have e.g. > <root> <foo>a</foo> <bar>1</bar> </root> and then decide to comment out the "foo" element node by selecting it with the mouse and using the context menu in XML Editor 19.1, build 2017121318, "toggle comment", then oXygen gives m...
by Martin Honnen
Mon Oct 16, 2017 2:32 pm
Forum: XQuery
Topic: Can't format XQuery with group by clause using ":="
Replies: 2
Views: 960

Can't format XQuery with group by clause using ":="

I have the following as an ".xq" file in oXygen XML Editor 19.1, build 2017092911 for $item in Base/Item group by $id := $item/Id order by $id return <Item> <Id>{$id}</Id> {for $marked in $item[Mark] group by $mark := $marked/Mark return <Marked name="{$mark}"> {sum($marked/Qty)}...
by Martin Honnen
Tue Oct 03, 2017 3:59 pm
Forum: XSLT and FOP
Topic: Using XSLT 3.0 and streamable default mode with Saxon 9.7 EE as external plugin
Replies: 10
Views: 2339

Re: Using XSLT 3.0 and streamable default mode with Saxon 9.7 EE as external plugin

Updating didn't seem to find a new version but I uninstalled the existing version and then looked for available plugins which offered me that 19.1 version and now with that installed and another restart the streamed processing with a streamable mode finally works without any warning. That's great, n...
by Martin Honnen
Sun Oct 01, 2017 12:57 pm
Forum: XSLT and FOP
Topic: Using XSLT 3.0 and streamable default mode with Saxon 9.7 EE as external plugin
Replies: 10
Views: 2339

Re: Using XSLT 3.0 and streamable default mode with Saxon 9.7 EE as external plugin

I have installed oXygen 19.1 and tried again whether streaming works, I continue to get the warning Engine name: Saxon-EE 9.8.0.4 (External) Severity: warning Description: The unnamed mode is streamable, but the input is not supplied as a stream with an XSLT 3.0 stylesheet and a streamable default m...
by Martin Honnen
Sun Jul 30, 2017 11:15 am
Forum: XSLT and FOP
Topic: Using XSLT 3.0 and streamable default mode with Saxon 9.7 EE as external plugin
Replies: 10
Views: 2339

Re: Using XSLT 3.0 and streamable default mode with Saxon 9.7 EE as external plugin

I have just tried to use an XSLT 3.0 stylesheet with streaming in oXygen 19 (2017062918) with the latest version of the Saxon 9.8 plugin (9.8.0.3), however, I still get a warning Engine name: Saxon-EE 9.8.0.3 (External) Severity: warning Description: is streamable, but the input is not supplied as a...
by Martin Honnen
Tue Jun 13, 2017 5:04 pm
Forum: Common Problems
Topic: Not able to start multiple instances of oXygen
Replies: 3
Views: 730

Re: Not able to start multiple instances of oXygen

Thanks, editing and using the .bat works fine to open multiple instances. Is there a way to call the .bat passing in a project file to open that particular project?
by Martin Honnen
Tue Jun 13, 2017 1:24 pm
Forum: XSLT and FOP
Topic: Is there a way to edit/change the built-in schema for XSLT 3.0 content completion?
Replies: 2
Views: 770

Is there a way to edit/change the built-in schema for XSLT 3.0 content completion?

I have run into problems using the XSLT 3.0 content completion in oXygen 19, when inserting an xsl:merge-source element it offers me attributes for-each-stream and for-each-item, it seems that for-each-stream was defined in earlier versions of the XSLT 3.0 draft but has been renamed since the latest...
by Martin Honnen
Mon Jun 12, 2017 8:33 pm
Forum: Common Problems
Topic: Not able to start multiple instances of oXygen
Replies: 3
Views: 730

Not able to start multiple instances of oXygen

I would like to start multiple instances of oXygen (version XML Editor 19.0, build 2017042020) on Windows 10, I have read https://www.oxygenxml.com/doc/versions/19.0/ug-editor/topics/custom-system-properties.html and https://www.oxygenxml.com/doc/versions/19.0/ug-editor/topics/set-parameters-for-app...
by Martin Honnen
Sun Apr 09, 2017 12:11 pm
Forum: XSLT and FOP
Topic: Using XSLT 3.0 and streamable default mode with Saxon 9.7 EE as external plugin
Replies: 10
Views: 2339

Re: Using XSLT 3.0 and streamable default mode with Saxon 9.7 EE as external plugin

Sorin, thanks for the pointer, however neither in my oXygen 19 installation nor in the documentation https://www.oxygenxml.com/doc/versions/19.0/ug-editor/topics/preferences-xslt-saxon8.html have I been able to find the "enable streaming mode" option in the preferences settings. I do find ...
by Martin Honnen
Fri Apr 07, 2017 3:10 pm
Forum: XSLT and FOP
Topic: How to use a template named xsl:initial-template with XSLT 3.0 and oXygen 19
Replies: 3
Views: 1070

Re: How to use a template named xsl:initial-template with XSLT 3.0 and oXygen 19

I managed to get it to work with oXygen by specifying the template name in the form

Code: Select all

{http://www.w3.org/1999/XSL/Transform}initial-template
instead of

Code: Select all

xsl:initial-template
.
by Martin Honnen
Thu Apr 06, 2017 1:00 pm
Forum: XSLT and FOP
Topic: Is there a way to enable XPath content completion in text templates in XSLT 3.0?
Replies: 6
Views: 1257

Is there a way to enable XPath content completion in text templates in XSLT 3.0?

One of the new features in XSLT 3.0 is text value templates https://www.w3.org/TR/xslt-30/#text-value-templates, I had hoped to be able to use them in oXygen 19 with Saxon EE/PE and XSLT 3.0 support, I don't get any syntax errors using them but it seems there is no XPath variable/function content co...
by Martin Honnen
Thu Apr 06, 2017 12:49 pm
Forum: XSLT and FOP
Topic: How to use a template named xsl:initial-template with XSLT 3.0 and oXygen 19
Replies: 3
Views: 1070

How to use a template named xsl:initial-template with XSLT 3.0 and oXygen 19

oXygen 19 now supports Saxon 9.7 EE or PE to run XSLT 3.0 transformations, a new feature in XSLT 3.0 is the predefined template name xsl:initial-template for a named template e.g. <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Tr...
by Martin Honnen
Thu Mar 16, 2017 12:28 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Problem trying to use HTML2 (DITA 4 Publishers) with oXygen 18.1
Replies: 3
Views: 532

Re: Problem trying to use HTML2 (DITA 4 Publishers) with oXygen 18.1

I have now tried to switch to the DITA 1.8 version, as suggested, but I then get different errors System ID: C:\Users\UserName\Documents\OxygenXMLEditor\samples\dita\MobilePhone\mobilePhone.ditamap Scenario: mobilePhone (HTML2 (DITA 4 Publishers)) Input file: C:\Users\UserName\Documents\OxygenXMLEdi...
by Martin Honnen
Wed Mar 15, 2017 8:06 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Problem trying to use HTML2 (DITA 4 Publishers) with oXygen 18.1
Replies: 3
Views: 532

Problem trying to use HTML2 (DITA 4 Publishers) with oXygen 18.1

I am completely new to DITA so I maybe doing something wrong but I am having trouble using a transformation HTML2 (DITA 4 Publishers) on a DITA map/project, both with a simple project I created on my own as well as with the MobilePhone samples project. The build fails with an error saying BUILD FAIL...
by Martin Honnen
Fri Jan 27, 2017 3:30 pm
Forum: XSLT and FOP
Topic: Using XSLT 3.0 and streamable default mode with Saxon 9.7 EE as external plugin
Replies: 10
Views: 2339

Using XSLT 3.0 and streamable default mode with Saxon 9.7 EE as external plugin

I am using XML Editor 18.1, build 2016112217 with the up to date Saxon 9.7 EE plugin (which is currently 9.7.0.14) to run an XSLT 3.0 stylesheet where the default mode is defined as streamable: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.or...
by Martin Honnen
Mon Oct 24, 2016 1:39 pm
Forum: XSLT and FOP
Topic: How to export a stylesheet for Saxon-JS
Replies: 3
Views: 979

Re: How to export a stylesheet for Saxon-JS

Thanks for your reply. I understand that Saxon 9.7 is only available as a plugin and I have that installed. What my question is about is how I then use that plugin inside of oXygen to export a stylesheet for Saxon-JS? Is there any menu or setting that is geared towards that export? Or do I have to t...
by Martin Honnen
Sat Oct 22, 2016 10:58 pm
Forum: XSLT and FOP
Topic: How to export a stylesheet for Saxon-JS
Replies: 3
Views: 979

How to export a stylesheet for Saxon-JS

According to the "what's new" section in oXygen 18.1 : The add-on for working with Saxon 9.7 was updated to provide an action to obtain a compiled stylesheet that can be used with the new Saxon-JS I have tried to search the documentation for Saxon-JS but I am not even sure it recognizes th...
by Martin Honnen
Wed Sep 21, 2016 12:22 pm
Forum: Common Problems
Topic: Using an XQuery //foo/@bar gives "Your query returned an empty sequence."
Replies: 6
Views: 1271

Re: Using an XQuery //foo/@bar gives "Your query returned an empty sequence."

In general XQuery is more powerful and expressive than pure XPath so when I query a document I prefer directly doing that with XQuery. For the simple path //foo/@bar obviously it does not matter. As for implementing that, I can't judge that in terms of practicality other than that http://saxonica.co...

Go to advanced search