Search found 284 matches

by tavy
Wed Mar 03, 2021 1:49 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Hot links in schematron error messages
Replies: 20
Views: 3531

Re: Hot links in schematron error messages

Hello, Thanks for your feedback. Unfortunately, you cannot add the text link in the message. We have an issue on our issue tracker to add this support in a future version. I added your comment on the issue and increased its priority. When the issue will be implemented we will update this thread. Bes...
by tavy
Wed Feb 17, 2021 10:28 am
Forum: Common Problems
Topic: Possible Bug with Saxon Schema Validation
Replies: 2
Views: 374

Re: Possible Bug with Saxon Schema Validation

Hello Frank, Thanks for your feedback. Yes, it seems to be a problem with the Saxon validation in an assert. If the type "ns1:Token3" is set as an element type, no problem is reported. Therefore, it seems that the problem occurs when referring the type in an assert element. I reported the problem at...
by tavy
Mon Feb 15, 2021 8:15 pm
Forum: Common Problems
Topic: Possible Bug with XML Schema 1.1 override
Replies: 1
Views: 273

Re: Possible Bug with XML Schema 1.1 override

Hello, Thanks for your feedback. There is a problem with the Saxon validation, I already reported this problem at Saxon, and they fixed it. Here is the Saxon issue: https://saxonica.plan.io/issues/4518 We need to update the default Saxon library in Oxygen, probably in the next Oxygen major release. ...
by tavy
Fri Feb 05, 2021 10:04 am
Forum: XML Schemas
Topic: generate-id function and preceding axis in Schematron
Replies: 2
Views: 450

Re: generate-id function and preceding axis in Schematron

Hello David,

I will try to analyze this situation and give you some hints, but it will be more easy for me if you can send me some sample files. You can send them on our "support at oxygenxml dot com" email address.

Best Regards,
Octavian
by tavy
Fri Feb 05, 2021 9:36 am
Forum: Feature Request
Topic: Modern Javascript support
Replies: 1
Views: 308

Re: Modern Javascript support

Hello Martin,

Thanks for your feedback.
There is already an issue on our issue tracker to improve the JavaScript editing support. I added your comment on the issue and I increased its priority. Maybe in the next Oxygen major release we can try to improve this support.

Best Regards,
Octavian
by tavy
Thu Jan 14, 2021 3:04 pm
Forum: Common Problems
Topic: XSLT Debugger Messages View
Replies: 10
Views: 970

Re: XSLT Debugger Messages View

Hello, Thanks for your feedback. Yes, it seems that when Saxon is in streaming mode the xsl:message is not presented in the Messages view. The message is presented in the console view, if open you have opened Oxygen from a console you will see the message there. I added an issue on our issue tracker...
by tavy
Fri Jan 08, 2021 1:35 pm
Forum: Common Problems
Topic: XSLT Debugger Messages View
Replies: 10
Views: 970

Re: XSLT Debugger Messages View

Hello, From what I tested the message is presented also when the ${currentFileURL} is used as XML URL. If you create a transformation scenario for an XSL and you use the ${currentFileURL} for both XML URL and XSL URL, the ${currentFileURL} editor variable will be expended to the location of the XSL....
by tavy
Wed Jan 06, 2021 4:21 pm
Forum: Common Problems
Topic: XSLT Debugger Messages View
Replies: 10
Views: 970

Re: XSLT Debugger Messages View

Hello, Unfortunately I cannot reproduce the problem. I tested with the same version that you used <oXygen/> XML Editor 23.0, build 2020121712. I used Saxon HE 9.9.1.7 for debugging with the default options, and I get the test message in the Messages view. What engine do you use for debugging? Maybe ...
by tavy
Mon Jan 04, 2021 2:55 pm
Forum: Common Problems
Topic: XSLT Debugger Messages View
Replies: 10
Views: 970

Re: XSLT Debugger Messages View

Hello, From what I tested, with <oXygen/> XML Editor 23.0, build 2020111805, the debugging works fine for me. What version of Oxygen XML do you use? Can you send me also the XML document used in the debugging process, or a sample on which you reproduce the problem? What engine do you use for debuggi...
by tavy
Tue Dec 22, 2020 1:40 pm
Forum: XSLT and FOP
Topic: How to export a stylesheet for Saxon-JS
Replies: 6
Views: 2690

Re: How to export a stylesheet for Saxon-JS

Hello,

New versions for "Saxon XSLT and XQuery Transformer" add-on are now available to install for Oxygen 23.0.

They integrate the latest available engine versions for Saxon 9.9 and 10 (9.9.1.8 and 10.3 respectively).

Best Regards,
Octavian
by tavy
Wed Dec 16, 2020 5:29 pm
Forum: Other Issues
Topic: Can the validation error message codes be viewed?
Replies: 3
Views: 447

Re: Can the validation error message codes be viewed?

Hello Leo, Thanks for your feedback. Unfortunately, the error codes where removed from the validation error message and you cannot view them. In Oxygen version 23.0 we added back the links to the W3C specification. You can find more details in our documentation: https://www.oxygenxml.com/doc/version...
by tavy
Thu Dec 03, 2020 6:10 pm
Forum: General XML Questions
Topic: Comparing multiple strings in Schematron
Replies: 5
Views: 1323

Re: Comparing multiple strings in Schematron

Hello, I don't know exactly what rule you want to add, and what is the structure you want to impose. Probably this error occurs because you have two xref elements with the same value in the @product attribute. I think first you need to check if all the xref elements are correct. You can check if you...
by tavy
Wed Nov 25, 2020 5:28 pm
Forum: Common Problems
Topic: Configure transformation scenarios boolean
Replies: 3
Views: 493

Re: Configure transformation scenarios boolean

Hello, Thanks for the feedback. Yes, it seems to be a problem when you set a static parameter from the transformation scenario. We already have an issue on our internal issue tracker for this problem. I will add your comment on the issue and increase its priority. When it will be fixed we will updat...
by tavy
Wed Nov 25, 2020 11:09 am
Forum: General XML Questions
Topic: Comparing multiple strings in Schematron
Replies: 5
Views: 1323

Re: Comparing multiple strings in Schematron

Hello, The context must be "*[count(xref) = 3]", and the variables must be without quotes. I think the pattern should be something like this: <sch:pattern> <sch:rule context="*[count(xref) = 3]"> <sch:let name="stag" value="normalize-space(xs:string(xref[@product='staging']))"/> <sch:let name="prod"...
by tavy
Fri Nov 20, 2020 1:09 pm
Forum: Common Problems
Topic: Error with fn:collection() returning xs:base64Binary instead of nodes after updating Oxygen
Replies: 2
Views: 572

Re: Error with fn:collection() returning xs:base64Binary instead of nodes after updating Oxygen

Hello, We just released yesterday Oxygen XML Editor version 23.0, this contains the fix for the problem you reported. You can download the latest build from here: https://www.oxygenxml.com/xml_editor/download_oxygenxml_editor.html The fix is available also in Oxygen XML Editor version 22.1. You can ...
by tavy
Wed Nov 18, 2020 9:49 am
Forum: Common Problems
Topic: Configure transformation scenarios boolean
Replies: 3
Views: 493

Re: Configure transformation scenarios boolean

Hello, Thanks for your feedback. In order to be interpreted as a boolean you can set the value of the parameter as true() , and check the Evaluate as XPath box. Even if the value is presented with quotes in the parameters dialog, it will be interpreted as a boolean value. For example, If I run the f...
by tavy
Mon Nov 09, 2020 10:16 am
Forum: General XML Questions
Topic: Test to see if text contains a string from a list of values
Replies: 3
Views: 718

Re: Test to see if text contains a string from a list of values

Hello Scott,

Yes, in case there are multiple text nodes in a paragraph the "text()" function will return a sequence of text nodes. You can replace the "$text" variable with the following one:

Code: Select all

<sch:let name="text" value="."/>
Best Regards,
Octavian
by tavy
Fri Nov 06, 2020 10:21 am
Forum: General XML Questions
Topic: Test to see if text contains a string from a list of values
Replies: 3
Views: 718

Re: Test to see if text contains a string from a list of values

Hello Scott , I think that a solution can be to count the number of matched keys, then you can write also the matched keys in the assertion message. The pattern must look something like this: <sch:pattern> <sch:let name="keys" value="document('keys-common.ditamap')//keyword"/> <sch:rule context="p">...
by tavy
Tue Nov 03, 2020 10:18 am
Forum: Common Problems
Topic: javascript wrapping after value-of on format
Replies: 1
Views: 365

Re: javascript wrapping after value-of on format

Hello, Thanks for your feedback. I think your document is an XHTML (has the namespace "http://www.w3.org/1999/xhtml" set on root ), or it is an HTML document opened in the XHTML editor. You can verify the content type of the opened document in the Properties view (Help menu->Show View->Properties). ...
by tavy
Fri Oct 23, 2020 9:45 am
Forum: Other Issues
Topic: schematron phases: automated selection
Replies: 4
Views: 506

Re: schematron phases: automated selection

Hello, If you associate a validation scenario on a folder from Project view, the scenario will be automatically associated with all the files from that folder and subfolders. Then when you open a file from the folder the file will be validated with the associated scenario. You can use the Validate a...
by tavy
Thu Oct 22, 2020 3:34 pm
Forum: Other Issues
Topic: schematron phases: automated selection
Replies: 4
Views: 506

Re: schematron phases: automated selection

Hello, I think a solution for this is to create a validation scenario for each phase from Schematron.Then you can associate each scenario on the folder where the XML files are located, depending on the phase that you want to use for that folder. For this you need to use the Configure Validation Scen...
by tavy
Tue Oct 20, 2020 12:29 pm
Forum: Feature Request
Topic: Generate XSLT for XML-to-JSON based on schema.json
Replies: 2
Views: 517

Re: Generate XSLT for XML-to-JSON based on schema.json

Hello,

For the XML-to-JSON conversion we do not use XSLT. We use the json.org library. Therefore, we cannot generate an XSLT for this conversion.

Best Regards,
Octavian
by tavy
Fri Oct 16, 2020 4:05 pm
Forum: XML Schemas
Topic: Multiple values in target
Replies: 7
Views: 1480

Re: Multiple values in target

I think you just need to copy the following fragment and paste it after a pattern from your current Schematron file. <sch:let name="personIds" value="document('../personography/HAMpersons.xml')/tei:TEI//tei:person/@xml:id"/> <sch:pattern> <sch:rule context="tei:rs"> <sch:let name="refIds" value="for...
by tavy
Fri Oct 16, 2020 11:49 am
Forum: XML Schemas
Topic: Multiple values in target
Replies: 7
Views: 1480

Re: Multiple values in target

Hi David, I changed the Schematron to check all references. I also collect all teh IDs that are missing and I print them in the assert message. <sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2"> <sch:ns uri="http://www.tei-c.org/ns/1.0" prefix="tei"/> <sch:let name="p...
by tavy
Thu Oct 15, 2020 2:47 pm
Forum: XML Schemas
Topic: Multiple values in target
Replies: 7
Views: 1480

Re: Multiple values in target

Hello David, A solution can be to tokenize the value of the @ref attribute, and then use a "for" to iterate the values and extract the IDs. Something like this: <sch:let name="refIds" value="for $id in tokenize(@ref, ' ') return substring-after($id, '#')"></sch:let> <sch:assert test="document('../pe...
by tavy
Fri Sep 25, 2020 3:17 pm
Forum: XML Schemas
Topic: Differences between XSD-Validation of Oxygen and Ant
Replies: 1
Views: 510

Re: Differences between XSD-Validation of Oxygen and Ant

Hello Nico, I think you need to set the "schemaLanguage" property. Something like this: <project basedir="." name="schema-validation-test" default="test"> <target name="test"> <schemavalidate file="src.xml" noNamespaceFile="schema.xsd" failonerror="true"> <property name="http://java.sun.com/xml/jaxp...
by tavy
Wed Sep 02, 2020 4:44 pm
Forum: General XML Questions
Topic: schematron replace-curly-doublequotes
Replies: 1
Views: 559

Re: schematron replace-curly-doublequotes

Hello, In Author mode we automatically render "<" with "<", and ">" with ">". But if you switch to Text page you will notice that is correct, based on your replace. How do you want the result to bein text, like this " <q>test1 test2 - Success</q>" or like this " <q>test1 test2 - Success</q>"? Best R...
by tavy
Tue Aug 25, 2020 12:50 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Schematron quick fix to set parent element
Replies: 2
Views: 394

Re: Schematron quick fix to set parent element

Hello Ann, I created a Schematron rule that checks if the short description element is in an abstract element. If is not, provides also a quick fix that moves the short description element in an abstract element. In case an abstract element already exists, will move the short description in that ele...
by tavy
Tue Aug 25, 2020 11:06 am
Forum: XML Schemas
Topic: Validate XML against XSD generated by Oxygen
Replies: 1
Views: 677

Re: Validate XML against XSD generated by Oxygen

Hello, We are using Trang to generate an XSD schema from XML files. It seems that Trang generates an xsi.xsd schema when you use attributes from "http://www.w3.org/2001/XMLSchema-instance" namespace. There is already an issue for this on the Trang project: https://github.com/relaxng/jing-trang/issue...
by tavy
Wed Aug 19, 2020 3:05 pm
Forum: Feature Request
Topic: XPath 3.1 map and array support in Schematron with queryBinding="xslt3"
Replies: 2
Views: 636

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

Hello Martin, In to see the functions in the content completion list you need to declare the namespace also on the Schematron root element. Something like this: <sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt3" xmlns:array="http://www.w3.org/2005/xpath-functions/array...