Search found 364 matches

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

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

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

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

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='...
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: 1293

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

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

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

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"/> <s...
by tavy
Tue Nov 03, 2020 10:18 am
Forum: Common Problems
Topic: javascript wrapping after value-of on format
Replies: 1
Views: 849

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->Pro...
by tavy
Fri Oct 23, 2020 9:45 am
Forum: Other Issues
Topic: schematron phases: automated selection
Replies: 4
Views: 1361

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

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

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

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"> <sc...
by tavy
Fri Oct 16, 2020 11:49 am
Forum: XML Schemas
Topic: Multiple values in target
Replies: 7
Views: 3825

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" p...
by tavy
Thu Oct 15, 2020 2:47 pm
Forum: XML Schemas
Topic: Multiple values in target
Replies: 7
Views: 3825

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> <sc...
by tavy
Fri Sep 25, 2020 3:17 pm
Forum: XML Schemas
Topic: Differences between XSD-Validation of Oxygen and Ant
Replies: 1
Views: 1717

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&...
by tavy
Wed Sep 02, 2020 4:44 pm
Forum: General XML Questions
Topic: schematron replace-curly-doublequotes
Replies: 1
Views: 1135

Re: schematron replace-curly-doublequotes

Hello, In Author mode we automatically render "&lt;" with "<", and "&gt;" 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 " &lt;q&gt;test1 ...
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: 1080

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

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-t...
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: 1584

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/2...
by tavy
Thu Aug 06, 2020 2:25 pm
Forum: XSLT and FOP
Topic: Using Saxon CollectionFinder from Oxygen XML
Replies: 3
Views: 2367

Re: Using Saxon CollectionFinder from Oxygen XML

Hello, You can also set in Oxygen the "saxon.custom.options" property. For this you need to edit the "Run XSpec Test" transformation scenario, select the "Parameters" tab, then edit the "saxon.custom.options" property and set the value to "-init:no.uib.sa...
by tavy
Thu Aug 06, 2020 9:02 am
Forum: Common Problems
Topic: Weird autocomplete bug in v 22.0
Replies: 9
Views: 3125

Re: Weird autocomplete bug in v 22.0

Hi,

Yes, the issue was fixed in the latest maintenance build of Oxygen XML Editor 22.1.
https://www.oxygenxml.com/build_history.html#2020072902

Thanks again for your feedback.

Best Regards,
Octavian
by tavy
Tue Jul 28, 2020 1:17 pm
Forum: XSLT and FOP
Topic: Version Validation
Replies: 1
Views: 1308

Re: Version Validation

Hello, For this type of questions probably is better to use the "schematron at schematronist dot org" mailing list. There are more people that can respond to them, and maybe better answers. I think that a solution for your Schematron rule can be something like this: <?xml version="1.0...
by tavy
Mon Jul 27, 2020 8:20 am
Forum: Common Problems
Topic: Schematron and external functions
Replies: 6
Views: 3389

Re: Schematron and external functions

Hello,

Thanks for your feedback.
I added your vote on the issue. We will update this thread when the issue will be solved.

Best Regards,
Octavian
by tavy
Thu Jul 23, 2020 11:55 am
Forum: Common Problems
Topic: Configure Validation Scenarios does not detect phases in Schematron with includes
Replies: 3
Views: 1521

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

Hello, Thanks for your feedback. Yes, the phases from the included files are not collected when you associate a Schemaron in the validation scenario. We collect the phases from the included files only when the validation scenario is applied, and we display them in a dialog. This is because we do not...
by tavy
Wed Jun 17, 2020 9:54 am
Forum: Common Problems
Topic: Schematron schema-aware attribute expansion
Replies: 2
Views: 1118

Re: Schematron schema-aware attribute expansion

Hello Daniel , If you define an xs:attribute with default="false" , it means that the attribute will have a default value equal to false . Because you are using schema aware validation even if the attribute is not present in XML it is present in the model with the default value set to fals...
by tavy
Tue Jun 16, 2020 8:25 am
Forum: Common Problems
Topic: Weird autocomplete bug in v 22.0
Replies: 9
Views: 3125

Re: Weird autocomplete bug in v 22.0

Hello,

No, it it not fixed in the current maintenance release of Oxygen 22.1 (Build ID: 2020061102). It will be fixed in the next maintenance release. The issue is already fixed on the current development stream and it will be integrated also in the next maintenance release.

Best Regards,
Octavian
by tavy
Mon Jun 15, 2020 9:53 am
Forum: General XML Questions
Topic: Is XML is Bette Then JSON
Replies: 2
Views: 1691

Re: Is XML is Bette Then JSON

Hello,

Unfortunately I cannot help you with this. It depends a lot on what tools you use and what data you transfer. Both languages have advantages and disadvantages.

Best Regards,
Octavian
by tavy
Mon May 25, 2020 4:11 pm
Forum: Common Problems
Topic: Error with fn:collection() returning xs:base64Binary instead of nodes after updating Oxygen
Replies: 2
Views: 1293

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

Hello, Thanks for your feedback. We have an issue on our issue tracker regarding this problem. We already reported the problem at Saxonica and they fixed it (https://saxonica.plan.io/issues/4476), we need to integrate the fix. We will update this thread when the issue will be solved. Best Regards, O...
by tavy
Fri May 22, 2020 11:30 am
Forum: Common Problems
Topic: Weird autocomplete bug in v 22.0
Replies: 9
Views: 3125

Re: Weird autocomplete bug in v 22.0

Hello,

Unfortunately this issue was not solved in Oxygen 22.1. It is scheduled to be solved with priority on the current version. Depending on the complexity we will add it also in an Oxygen 22.1 maintenance build. We will update this thread when will be fixed.

Best Regards,
Octavian