Search found 71 matches

by Martin Honnen
Fri Aug 21, 2020 6:12 pm
Forum: Feature Request
Topic: XPath 3.1 map and array support in Schematron with queryBinding="xslt3"
Replies: 2
Views: 271

Re: XPath 3.1 map and array support in Schematron with queryBinding="xslt3"

Ah, I first had them declared on the root element but then found that Schematron needs the `ns` element, then I thought the namespace declaration would no longer be needed. So I need both to have the Schematron compiler happy and my failing memory happy to work with content completion.

Thanks.
by Martin Honnen
Wed Aug 19, 2020 2:20 am
Forum: Feature Request
Topic: XPath 3.1 map and array support in Schematron with queryBinding="xslt3"
Replies: 2
Views: 271

XPath 3.1 map and array support in Schematron with queryBinding="xslt3"

When using Schematron with `queryBinding="xslt3"` and namespace declarations like `<sch:ns prefix="map" uri="http://www.w3.org/2005/xpath-functions/map"/>` I would like to see content completion for functions from that namespace like `map:merge`, `map:keys`. The same for the XPath 3.1 array functions.
by Martin Honnen
Sat May 23, 2020 1:09 pm
Forum: XSLT and FOP
Topic: Combine 2 nodes into one in XML using XSLT
Replies: 1
Views: 353

Re: Combine 2 nodes into one in XML using XSLT

Consider to indent your XML samples so that we can identify the structure. And even if don't know how to write the necessary XSLT you will need to explain in plain English which transformation you want to achieve. Just dumping two samples doesn't allow us to see which transformation you want to impl...
by Martin Honnen
Sun Mar 22, 2020 2:09 pm
Forum: Feature Request
Topic: Saxon 10 plugin?
Replies: 1
Views: 287

Saxon 10 plugin?

Hi,

are you planning to offer a Saxon 10 plugin for oXygen 22?
by Martin Honnen
Tue Feb 25, 2020 5:12 pm
Forum: Common Problems
Topic: XProc error err:XC0050 access denied
Replies: 7
Views: 617

Re: XProc error err:XC0050 access denied

Instead of using p:store inside of the p:for-each I have simply tried to output the document-uri(.) of each document processed there and outside of oXygen, with Calabash from the command line, the URIs point to the current working directory where I have the XML document and the XProc file and where ...
by Martin Honnen
Tue Feb 25, 2020 3:43 pm
Forum: Common Problems
Topic: XProc error err:XC0050 access denied
Replies: 7
Views: 617

Re: XProc error err:XC0050 access denied

Sorry, my bad, I thought I had inserted all files in the original post, somehow I forgot the XSLT: <?xml version="1.0" encoding="UTF-8"?> <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:outp...
by Martin Honnen
Tue Feb 25, 2020 3:25 pm
Forum: Common Problems
Topic: XProc error err:XC0050 access denied
Replies: 7
Views: 617

Re: XProc error err:XC0050 access denied

But why would Calabash in oXygen be able to write out the "toc-list.html" (that file is written/updated) while not being able to write out the "section-X.X.html" files that are supposed to be written to the same directory? I don't understand where the "document-uri(.)" leads to with Calabash in oXyg...
by Martin Honnen
Tue Feb 25, 2020 1:17 pm
Forum: Common Problems
Topic: XProc error err:XC0050 access denied
Replies: 7
Views: 617

XProc error err:XC0050 access denied

Using oXygen 22 and the built-in Calabash XProc processor to run an XProc example that tries to use p:store I get err:XC0050 : XProc error err:XC0050 It is a dynamic error if the URI scheme is not supported or the step cannot store to the specified location. Zugriff verweigert When I run Calabash fr...
by Martin Honnen
Mon Feb 24, 2020 11:43 am
Forum: SDK-API, Frameworks - Document Types
Topic: XProc 3 as a copy of XProc framework but with RNC file from XProc 3 spec
Replies: 4
Views: 788

Re: XProc 3 as a copy of XProc framework but with RNC file from XProc 3 spec

Thanks, Mircea , after disabling the ID/IDREF check I can use the schema with the <?xml-model?> directive.
by Martin Honnen
Mon Feb 24, 2020 10:40 am
Forum: SDK-API, Frameworks - Document Types
Topic: XProc 3 as a copy of XProc framework but with RNC file from XProc 3 spec
Replies: 4
Views: 788

Re: XProc 3 as a copy of XProc framework but with RNC file from XProc 3 spec

Yes, I understand there is no XProc 3 engine yet, but as a beta version III of MorgaxXProc has been announced for the end of this month I wanted to see whether I can learn to at least write and edit some XProc 3 code with the help of oXygen and the schema I linked to. If the schema for XProc 1 is ha...
by Martin Honnen
Sat Feb 22, 2020 3:21 pm
Forum: SDK-API, Frameworks - Document Types
Topic: XProc 3 as a copy of XProc framework but with RNC file from XProc 3 spec
Replies: 4
Views: 788

XProc 3 as a copy of XProc framework but with RNC file from XProc 3 spec

Using oXygen 22, I would like to find a way to write/edit XProc 3.0 scripts, using the schema provided at https://spec.xproc.org/master/head/xproc/xproc30.rnc. I tried to make a copy of the exisiting XProc document type association, named it XProc 3 and in the schema section linked to a local copy o...
by Martin Honnen
Thu Feb 13, 2020 4:59 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: codeblock outputclass="language-c" syntax highlighting oddity
Replies: 3
Views: 477

codeblock outputclass="language-c" syntax highlighting oddity

When I use oXygen 22 and the built-in DITA to PDF (based on XSL-FO) publishing for a sample like <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd"> <topic id="topic_d3q_35y_rkb"> <title>Test</title> <body> <p>Test</p> <codeblock outputclass="lan...
by Martin Honnen
Fri Feb 07, 2020 10:22 am
Forum: General XML Questions
Topic: Creating Child-Nodes only if they do not already exist
Replies: 3
Views: 620

Re: Creating Child-Nodes only if they do not already exist

It kind of matters which other columns can exist or do always exist as we some way to identify the place where to add the topic columns; assuming for instance you want them inserted at the end of all child elements you could use <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:...
by Martin Honnen
Wed Feb 05, 2020 9:53 pm
Forum: General XML Questions
Topic: Creating Child-Nodes only if they do not already exist
Replies: 3
Views: 620

Re: Creating Child-Nodes only if they do not already exist

Within XSLT or XQuery you can certainly check e.g. whether the table element has certain column child elements with a particular name attribute. And you can create a new result document where you add elements that don't exist in the input. For XQuery there is also XQuery update that can manipulate e...
by Martin Honnen
Tue Dec 10, 2019 4:03 pm
Forum: XSLT and FOP
Topic: Content completion for map argument of fn:transform cuts off the stylesheet-location hint to stylesheet-
Replies: 2
Views: 480

Content completion for map argument of fn:transform cuts off the stylesheet-location hint to stylesheet-

In https://www.oxygenxml.com/forum/topic17340.html I asked for content completion/suggestions on using the XPath 3.1 map option on the transform function. Using oXygen XML Editor 21.1, build 2019120214, I get those suggestions but somehow `stylesheet-location` doesn't show up, only `stylesheet-`. Ot...
by Martin Honnen
Mon Sep 23, 2019 10:22 am
Forum: General XML Questions
Topic: Extracting all values, all text and all nodes with only wildcards
Replies: 2
Views: 1165

Re: Extracting all values, all text and all nodes with only wildcards

The built-in default processing (see https://www.w3.org/TR/xslt-30/#built-in-templates-text-only-copy for XSLT 3 but the declarative way it is specified with "xsl:mode" in XSLT 3 is backwards compatible with XSLT 1 and 2) copies all attribute values and text node values so there is not much you need...
by Martin Honnen
Fri Sep 06, 2019 5:47 pm
Forum: Common Problems
Topic: Syntax highlighting of XPath 3.1 expression with curly braces array constructor and simple map operator fails
Replies: 2
Views: 467

Syntax highlighting of XPath 3.1 expression with curly braces array constructor and simple map operator fails

Using XML Editor 21.1, build 2019071807, I have an XSLT 3 document with the code <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="3.0" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:saxon="http://saxon.sf.net/" exclude-result-prefixe...
by Martin Honnen
Thu Jul 25, 2019 12:18 pm
Forum: XSLT and FOP
Topic: Add more functions to the XPath builder
Replies: 4
Views: 1166

Re: Add more functions to the XPath builder

If you use Saxon EE for XPath (probably requires 9.8 or later) then you could also try to use the function "load-xquery-module": let $functxNs := 'http://www.functx.com', $functx := load-xquery-module($functxNs, map { 'location-hints' : 'http://www.xqueryfunctions.com/xq/functx-1.0-doc-2007-01.xq' }...
by Martin Honnen
Thu Jul 25, 2019 10:17 am
Forum: XSLT and FOP
Topic: Add more functions to the XPath builder
Replies: 4
Views: 1166

Re: Add more functions to the XPath builder

If you use XQuery instead of XPath in the builder then you can use and import other XQuery modules with functions I think: import module namespace functx = "http://www.functx.com" at "http://www.xqueryfunctions.com/xq/functx-1.0-doc-2007-01.xq"; functx:substring-before-match('abc-def-ghi', '[dg]') A...
by Martin Honnen
Fri Jun 14, 2019 11:35 am
Forum: XSLT and FOP
Topic: Strugling with variable occurrence
Replies: 1
Views: 696

Re: Strugling with variable occurrence

As you are posting in the oXygen forum, you should have access to use Saxon 9 as an XSLT 2 or 3 processor and then it becomes a text book approach for for-each-group group-starting-with <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="...
by Martin Honnen
Mon Jun 10, 2019 1:04 pm
Forum: XSLT and FOP
Topic: How to use a template named xsl:initial-template with XSLT 3.0 and oXygen 19
Replies: 5
Views: 3538

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

The thread so far was about using the oXygen GUI to use a transformation scenario and run Saxon with XSLT 3 without a primary source but to start with that particular named template the XSLT 3.0 spec defines. It is not clear how your post relates to that as you have presented XSLT code using <xsl:ca...
by Martin Honnen
Thu Apr 25, 2019 10:38 am
Forum: Feature Request
Topic: content completion suggestion for possible values of the XSLT 3 accumulator-before/after functions
Replies: 2
Views: 1010

content completion suggestion for possible values of the XSLT 3 accumulator-before/after functions

In XSLT 3 you can use the functions "accumulator-before" and "accumulator-after" to call accumulators declared with xsl:accumulator. For XSLT keys oXygen has a nice feature to give you content suggestion/completion for possible declared key names when using e.g. key(', it would be nice to have a sim...
by Martin Honnen
Sat Apr 20, 2019 10:25 am
Forum: Feature Request
Topic: Querying JSON the XPath 3.1 way
Replies: 1
Views: 1211

Querying JSON the XPath 3.1 way

In https://www.oxygenxml.com/doc/versions/21.0/ug-editor/topics/json-transforming.html, it is explained how to use XSLT or XQuery to transform JSON input and https://www.oxygenxml.com/doc/versions/21.0/ug-editor/topics/json-querying-xpath-xquery.html explains how to use "XPath" to select data from a...
by Martin Honnen
Sat Apr 13, 2019 1:10 pm
Forum: XSLT and FOP
Topic: formatting XPath expressions in XSLT 3 text templates
Replies: 1
Views: 1113

formatting XPath expressions in XSLT 3 text templates

Using XML Editor 21.0, build 2019040204, I am struggling to get some nice formatting of XPath expressions in XSLT 3 text templates. For instance, imagine I have prototyped some XPath code in the XPath builder e.g. serialize(array { let $s := ('a', 'b', 'c', 'd') return for-each-pair($s[position() mo...
by Martin Honnen
Tue Feb 26, 2019 11:33 am
Forum: XQuery
Topic: Using XQuery 3.1 with output methods adpative or json
Replies: 3
Views: 2076

Re: Using XQuery 3.1 with output methods adpative or json

Somehow I don't get it to work, even as you described it. I have created a new project to test it with <oXygen/> XML Editor 21.0, build 2019022207, there I now have an XQuery file simply returning an array literal declare namespace map = "http://www.w3.org/2005/xpath-functions/map"; declare namespac...
by Martin Honnen
Sun Feb 24, 2019 1:42 pm
Forum: XQuery
Topic: Using XQuery 3.1 with output methods adpative or json
Replies: 3
Views: 2076

Using XQuery 3.1 with output methods adpative or json

Using the recent oXygen 21 release, I had hoped there is now a way to use XQuery 3.1 with any of the installed Saxon 9.8.0.12 engines (i.e. HE, PE, EE) to make use of XQuery 3.1 directives like declare namespace output = "http://www.w3.org/2010/xslt-xquery-serialization"; declare option output:metho...
by Martin Honnen
Sat Feb 23, 2019 6:33 pm
Forum: Feature Request
Topic: XPath 3.1 support
Replies: 2
Views: 1131

XPath 3.1 support

Given that the current and latest (and probably last) version of XPath is 3.1 and not 3.0 I wonder why the XPath field and the XPath builder in oXygen 21 continue to only list 3.0 as the possible highest XPath value. It also seems that some XPath 3.1 language features like the string concatenation o...
by Martin Honnen
Fri Dec 14, 2018 4:41 pm
Forum: XSLT and FOP
Topic: XSLT and XPath syntax colouring
Replies: 1
Views: 1026

XSLT and XPath syntax colouring

Is the use of the red color for the dot and comma (after 'source-node' :) in the code snippet <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:math="http://www.w3.org/2005/xpath-functions/math" e...
by Martin Honnen
Wed Oct 10, 2018 12:16 pm
Forum: XSLT and FOP
Topic: XSLT to select nodes dynamically
Replies: 1
Views: 1617

Re: XSLT to select nodes dynamically

For cross-references you can use a key, to output the data you can use value-of and/or the string concatenation operator "||" in XSLT/XPath 3: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" version="...
by Martin Honnen
Fri Oct 05, 2018 9:45 pm
Forum: Feature Request
Topic: Provide Saxon 9.9 as a plugin
Replies: 2
Views: 1625

Provide Saxon 9.9 as a plugin

Are there any plans to provide Saxon 9.9 EE as a plugin for oXygen 20.1 users, like you provided Saxon 9.8 EE as a plugin in earlier versions of oXygen that used 9.7 as its main XSLT/XQuery processor?