Search found 96 matches

by Martin Honnen
Tue Feb 25, 2020 3:43 pm
Forum: Common Problems
Topic: XProc error err:XC0050 access denied
Replies: 7
Views: 2584

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-resul...
by Martin Honnen
Tue Feb 25, 2020 3:25 pm
Forum: Common Problems
Topic: XProc error err:XC0050 access denied
Replies: 7
Views: 2584

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(.)" ...
by Martin Honnen
Tue Feb 25, 2020 1:17 pm
Forum: Common Problems
Topic: XProc error err:XC0050 access denied
Replies: 7
Views: 2584

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: 2223

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: 2223

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: 2223

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: 5
Views: 1901

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</tit...
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: 4197

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&qu...
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: 4197

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: 1563

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: 5248

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 muc...
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: 1533

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:s...
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: 2763

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-200...
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: 2763

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...
by Martin Honnen
Fri Jun 14, 2019 11:35 am
Forum: XSLT and FOP
Topic: Strugling with variable occurrence
Replies: 1
Views: 1468

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/...
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: 6362

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: 1980

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 b...
by Martin Honnen
Sat Apr 20, 2019 10:25 am
Forum: Feature Request
Topic: Querying JSON the XPath 3.1 way
Replies: 1
Views: 2613

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 d...
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: 2106

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: 4625

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"; declar...
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: 4625

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 ou...
by Martin Honnen
Sat Feb 23, 2019 6:33 pm
Forum: Feature Request
Topic: XPath 3.1 support
Replies: 2
Views: 2209

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: 1755

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="h...
by Martin Honnen
Wed Oct 10, 2018 12:16 pm
Forum: XSLT and FOP
Topic: XSLT to select nodes dynamically
Replies: 1
Views: 3221

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=&quo...
by Martin Honnen
Fri Oct 05, 2018 9:45 pm
Forum: Feature Request
Topic: Provide Saxon 9.9 as a plugin
Replies: 2
Views: 2596

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?
by Martin Honnen
Thu Oct 04, 2018 6:42 pm
Forum: XSLT and FOP
Topic: Count and Sum based on condition - Trailer record
Replies: 1
Views: 6540

Re: Count and Sum based on condition - Trailer record

Is that the same condition you have in <xsl:if test="wd:Deduction/wd:ID[@wd:type='Deduction_Code'] != '401K-T'"> ? Seem you simply want to create a global variable <xsl:variable name="records" select="wd:Report_Data/wd:Report_Entry/wd:Payroll_Result_Lines[wd:Deduction/wd:ID[...
by Martin Honnen
Wed Sep 26, 2018 4:10 pm
Forum: General XML Questions
Topic: How do I format xslt address for xml
Replies: 2
Views: 2469

Re: How do I format xslt address for xml

Assuming you use XSLT 2 or 3 (e.g. with Saxon 9) you can use

Code: Select all


<AddressFullText>
<xsl:value-of select="AddressLine1, AddressLine2, AddressLine3, AddressLine4" separator="&#10;"/>
</AddressFullText>
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: 3
Views: 3030

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: 3736

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: 3736

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...