Search found 364 matches

by tavy
Wed Nov 21, 2018 11:16 am
Forum: Common Problems
Topic: What's wrong with my quickfix?
Replies: 3
Views: 2177

Re: What's wrong with my quickfix?

Hello Martin, The quick fix does not work because the regular expression from the "xsl:analyze-string" element has quotes before and after the expression. You should remove the quotes, something like this: <xsl:analyze-string select="." regex="([\r\n]\s*)([^\r\n]+)"> Be...
by tavy
Fri Nov 09, 2018 9:51 am
Forum: Feature Request
Topic: Validate XPATH expressions of errourneous XML
Replies: 1
Views: 2567

Re: Validate XPATH expressions of errourneous XML

Hello Mario, If the XML document is well-formed you should be able to execute an XPath expression. The schema validation errors should not affect the XPath execution. Can you tell me what is the XPath expression that you want to execute and what is the error that you obtain when you execute it? Also...
by tavy
Mon Oct 22, 2018 4:09 pm
Forum: XML Schemas
Topic: dependent child elements with xsd:assert
Replies: 1
Views: 4419

Re: dependent child elements with xsd:assert

Hello Franze,
I think that you need to change the assert and use a string value for true and false , something like this:

Code: Select all


<xsd:assert test="(available[string(.) eq 'true'] and aa and bb and cc) or available[string(.) eq 'false']"/>
Best Regards,
Octavian
by tavy
Tue Sep 25, 2018 2:00 pm
Forum: Common Problems
Topic: tokenize sentences in a paragraph in Schematron
Replies: 3
Views: 2963

Re: tokenize sentences in a paragraph in Schematron

Hi Scott, It is a little bit more complicated If you want to preserve the markup in the paragraph, and you need to use XSLT code to process the content. I am not an XSLT expert but I can give you some hints. From the quick fix you need to apply a template that will process the paragraph content. <sq...
by tavy
Mon Sep 24, 2018 11:11 am
Forum: Common Problems
Topic: tokenize sentences in a paragraph in Schematron
Replies: 3
Views: 2963

Re: tokenize sentences in a paragraph in Schematron

Hi Scott, You can use a regular expression that matches all the text until one of ".", "!", or "?" characters are found. I've created an example of a Schematron quick fix that replaces the paragraph content with a new content where the sentences are wrapped in ph. <sch:...
by tavy
Wed Sep 12, 2018 2:02 pm
Forum: Other Issues
Topic: Content Compare in Eclipse Plugin
Replies: 14
Views: 6166

Re: Content Compare in Eclipse Plugin

Hi Stefan, The issues are added on our internal issue tracker. But I added your comments and I increased the priority of the issue you reported. The issue will be analyzed and depending on complexity it will be scheduled to be implemented. We will notify you when it will be available Best Regards, O...
by tavy
Wed Sep 05, 2018 11:21 am
Forum: Other Issues
Topic: Content Compare in Eclipse Plugin
Replies: 14
Views: 6166

Re: Content Compare in Eclipse Plugin

Hi Stefan, Right now this feature cannot be included in the Oxygen Eclipse plugin. It si a different implementation for Eclipse. I will add an issue on our issue tracker to add this support in a future version, and we will notify you when it will be available. What is you use case, do you want to co...
by tavy
Tue Sep 04, 2018 3:15 pm
Forum: Other Issues
Topic: Content Compare in Eclipse Plugin
Replies: 14
Views: 6166

Re: Content Compare in Eclipse Plugin

Hello Stefan, In the Oxygen Eclipse Plugin we do not include the "Content Compare Feature with the Author View" or any other Diff support, this features are available only in the Oxygen Standalone distribution only. You can find more details in our feature matrix: https://www.oxygenxml.com...
by tavy
Tue Sep 04, 2018 2:50 pm
Forum: Feature Request
Topic: XSD 1.1: elements view works poorly with xs:alternative
Replies: 1
Views: 2228

Re: XSD 1.1: elements view works poorly with xs:alternative

Hello Daniel, Thanks for your feedback. Yes, it seems that in the Elements view does not present correctly the current elements from the context, if a type alternative is used. Normally the content completion and the Elements view should use the same information, but it seems that in this case it do...
by tavy
Fri Jul 27, 2018 12:18 pm
Forum: XML Schemas
Topic: Schematron validation of an XSD file
Replies: 1
Views: 3112

Re: Schematron validation of an XSD file

Hello, For XSD documents you can impose Schematron rules only through a validation scenario. We do not have support to associate a Schematron directly in the XSD file. More information about how to associate a schema through a validation scenario you can find in our user manual: https://www.oxygenxm...
by tavy
Wed Jun 20, 2018 2:46 pm
Forum: XML Schemas
Topic: Schematron:issue with @subject
Replies: 2
Views: 3914

Re: Schematron:issue with @subject

Hi Patrik,

Yes, this seems to be a problem. The location of the context item should be used if the xpath value from the subject attribute won't find anything. I added an issue on out issue tracker for this.
Thanks for your feedback.

Best Regards,
Octavian
by tavy
Mon Jun 18, 2018 4:27 pm
Forum: Feature Request
Topic: JSON Schema and JSON/XML conversion?
Replies: 10
Views: 11694

Re: JSON Schema and JSON/XML conversion?

Hello, We just released version 20.1 of oXygen XML Editor that includes new editing features and validation support for JSON documents: - Validate JSON documents against JSON Schema - Validate JSON Schema according to the specification - Batch validate JSON documents - New document templates to crea...
by tavy
Mon Jun 18, 2018 4:20 pm
Forum: Feature Request
Topic: JSON related
Replies: 21
Views: 14511

Re: JSON related

Hello, We just released version 20.1 of oXygen XML Editor that includes new editing features and validation support for JSON documents: - Validate JSON documents against JSON Schema - Validate JSON Schema according to the specification - Batch validate JSON documents - New document templates to crea...
by tavy
Thu May 17, 2018 4:27 pm
Forum: Common Problems
Topic: Diff: How to collapse or fold the editor
Replies: 1
Views: 1255

Re: Diff: How to collapse or fold the editor

Hello, Thank you for the feedback. The folding is not supported in the Diff Editor. We have an issue on our issue tracker to add this support in a future version. We will notify you when this will be implemented. That grayed out button is a dropdown button available only for the Author comparison mo...
by tavy
Fri May 04, 2018 12:13 pm
Forum: XML Schemas
Topic: Limit the value of an element based on existing XML data
Replies: 5
Views: 4786

Re: Limit the value of an element based on existing XML data

Hello, If you want to restrict the values from an attribute based on some exiting values from the XML, you can use Schematron rules inside XSD or as a separate Schematron schema file. The Schematron rule in your case can be something like this: <sch:rule context="foobar/@name"> <sch:let na...
by tavy
Wed May 02, 2018 11:42 am
Forum: XML Schemas
Topic: xsl:include/@href sometimes incorrect in output of schematronDispatcher.xsl
Replies: 1
Views: 2697

Re: xsl:include/@href sometimes incorrect in output of schematronDispatcher.xsl

Hello, Thanks for the feedback. The "schematronDispatcher.xsl" is used resolve the Schematron "sch:include" and "sch:extends". The "xsl:include" it is copied in the complied file verbatim with the rest of the XSLT code from Schematron. Adding "xsl:include...
by tavy
Thu Apr 26, 2018 3:42 pm
Forum: Other Issues
Topic: JSON: why does oXygen say this is valid JSON?
Replies: 3
Views: 2814

Re: JSON: why does oXygen say this is valid JSON?

Hello, Thank you for your feedback. In a JSON file you can have an object, an array, or a simple value, see http://json.org/ . The example that you added should be reported as invalid because there are multiple arrays. It seems that oXygen validates only the first array in this case. I will add an i...
by tavy
Fri Apr 13, 2018 3:27 pm
Forum: Common Problems
Topic: xml:id type error with schema-aware Schematron
Replies: 1
Views: 1545

Re: xml:id type error with schema-aware Schematron

Hello Frank, When an XSL is validated against a Schematron schema it is considered to be an XML. From the XML point of view this is not a correct ID: xml:id="{ns:gen-id(.)}" . This is because the value {ns:gen-id(.)} will not be evaluated at validation. Therefore, the error reported by Sax...
by tavy
Thu Apr 12, 2018 12:49 pm
Forum: XML Schemas
Topic: Is there a way to specify a range as a data type
Replies: 2
Views: 2955

Re: Is there a way to specify a range as a data type

Hello,

As far as I know the only way to impose this restriction in XSD is to use a "pattern" facet.

Best Regards,
Octavian
by tavy
Mon Mar 19, 2018 12:56 pm
Forum: Other Issues
Topic: Debugging & Profiling with Saxon 9.8
Replies: 2
Views: 2003

Re: Debugging & Profiling with Saxon 9.8

Hi, We just released <oXygen/> XML editor version 20. Please note that we updated the built-in Saxon engine to version 9.8.0.8. See full release notes here: https://www.oxygenxml.com/xml_editor/whatisnew20.0.html You can download the build from here: https://www.oxygenxml.com/xml_editor/do ... ditor...
by tavy
Mon Mar 19, 2018 12:51 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Wrapping text() with a Quick Fix not working as expected. Why?
Replies: 2
Views: 1698

Re: Wrapping text() with a Quick Fix not working as expected. Why?

Hello Raymond, We just released <oXygen/> XML Editor version 20. Please note that the issue that you reported regarding the sqf:replace operation was solved. You can download the build from here: https://www.oxygenxml.com/xml_editor/do ... ditor.html Thanks again for your feedback. Best Regards, Oct...
by tavy
Mon Mar 19, 2018 12:34 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: 5023

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

Hello, We just released <oXygen/> XML editor version 20. Please note that we added full content completion support for text value templates. XPath functions, axes, and parameters/variables from the context are now proposed in the content completion list. See full release notes: https://www.oxygenxml...
by tavy
Thu Mar 15, 2018 4:44 pm
Forum: XML Schemas
Topic: XSD1.1 validation
Replies: 1
Views: 3590

Re: XSD1.1 validation

Hello Gunjan, A solution can be to make the AppControlNumber, SourceCode, FormCode elements optional (minOccurs="0") in a sequence, as in the example below. I don't know all the invalid/valid cases for you XML instance, so it is hard to create a schema. Also I suggest you to ask this quest...
by tavy
Thu Mar 15, 2018 3:10 pm
Forum: XML Schemas
Topic: Schematron Validation with Saxon HE
Replies: 1
Views: 3951

Re: Schematron Validation with Saxon HE

Hello, By default we are using Saxon PE for the validation of an XML document with a Schematron. You can chose only to use Saxon EE, for this you need to change the "Use Saxon EE (schema aware) for xslt2/xslt3 query language binding" option from the Schematron Preferences . We do not have ...
by tavy
Wed Mar 14, 2018 3:39 pm
Forum: XML Schemas
Topic: Check Overlapping Time Periods with Schematron
Replies: 2
Views: 3145

Re: Check Overlapping Time Periods with Schematron

Hello, To avoid the Stack-Overflow Exception you need to collect the start and end date from the 'start' and 'end' element instead of the attributes. Something like in the example below. For the other changes that you want to make in the function, unfortunately I cannot help you. I suggest you to wr...
by tavy
Mon Mar 05, 2018 4:35 pm
Forum: XML Schemas
Topic: Sorting and Looping within Schematron-Rule
Replies: 2
Views: 3578

Re: Sorting and Looping within Schematron-Rule

Hello Thomas, A solution for this is to use XSLT functions in the Schematron file. Something like the function below: <?xml version="1.0" encoding="UTF-8"?> <sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2" xmlns:xsl="http:...
by tavy
Fri Feb 23, 2018 5:30 pm
Forum: Common Problems
Topic: How to manage favorites in XPath Builder?
Replies: 1
Views: 1490

Re: How to manage favorites in XPath Builder?

Hello, We do not have support to export the favorites from the XPath Builder. As an workaround maybe you can save the the expressions in some XQuery files in your project, and when someone wants to use them they can copy the content form the XQuery file in the XPath Builder and run the expressions. ...
by tavy
Fri Feb 23, 2018 5:26 pm
Forum: Common Problems
Topic: Can I define custom function in XSLT for XPath Builder?
Replies: 12
Views: 5024

Re: Can I define custom function in XSLT for XPath Builder?

Hello, We do not have support to use an XSLT library for the XPath execution. If you want you can create a Java extension function and then used it from the XPath Builder . For this you need to do something like this: create a class like the "ProjectRelativeResolver" added below then compi...
by tavy
Thu Feb 22, 2018 9:57 am
Forum: Common Problems
Topic: oxygen.exe or diffFiles.exe parameters for file comparison
Replies: 1
Views: 2005

Re: oxygen.exe or diffFiles.exe parameters for file comparison

Hello,

It is not possible to have a single instance for Diff Files or Diff Directories. We have an issue on our issue tracker regarding this. I will add your comment on the issue and I will increase its priority. We will notify you when this will be implemented.

Best Regards,
Octavian
by tavy
Tue Feb 20, 2018 12:00 pm
Forum: XML Schemas
Topic: Please explain XPATH "Require XML element in XSD when another element has certain value?"
Replies: 2
Views: 2838

Re: Please explain XPATH "Require XML element in XSD when another element has certain value?"

Hello,

Yes, the assert condition is satisfied even if the type is not 'INTERNATIONAL', or if the type is 'INTERNATIONAL' and you have an 'IBAN' element.

Best Regards,
Octavian