Search found 141 matches

by tavy
Thu May 17, 2018 4:27 pm
Forum: Common Problems
Topic: Diff: How to collapse or fold the editor
Replies: 1
Views: 59

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

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

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: 2
Views: 88

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

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

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

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

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

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

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

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

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

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

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

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 bel...
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: 169

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

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
by tavy
Tue Feb 20, 2018 11:46 am
Forum: Common Problems
Topic: Content-Completion can't work in some situation, when using master file.
Replies: 1
Views: 213

Re: Content-Completion can't work in some situation, when using master file.

Hello, For the first example the content completion does not work for your modules because the schema does not define a global "Table" element. For the second example you define a global "Table" element in your schema, but its type is based on an inheritable attribute "@kind...
by tavy
Wed Jan 10, 2018 12:15 pm
Forum: XSLT and FOP
Topic: Is there a way to enable XPath content completion in text templates in XSLT 3.0?
Replies: 5
Views: 718

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

Hello, Thank you for your feedback. The content completion in text value templates works only for variables and parameters. We have an issue on our issue tracker to implement also XPath content completion in text value templates. This is scheduled for the next oXygen version. We will update this thr...
by tavy
Fri Oct 20, 2017 10:28 am
Forum: SDK-API, Frameworks - Document Types
Topic: Hot links in schematron error messages
Replies: 4
Views: 487

Re: Hot links in schematron error messages

Hello David, If you want to add link to the Schematrom message you must specify the link in the value of the @see attribute. The attribute can be added on the report/assert element or on the rule (as "xephon" said). The links are presented as a clickable icon, both on the tooltip that is p...
by tavy
Mon Oct 09, 2017 9:39 am
Forum: Common Problems
Topic: Search within added/deleted lines in diff/compare tool
Replies: 1
Views: 238

Re: Search within added/deleted lines in diff/compare tool

Hello David,

Thank you for your feedback.
We do not have support to set the search scope to the current diff intervals from the editor. The only way to limit the search scope to multiple intervals is by using an XPath expression in the Find/Replace dialog.

Best Regards,
Octavian
by tavy
Tue Oct 03, 2017 10:21 am
Forum: XSLT and FOP
Topic: Is there a way to enable XPath content completion in text templates in XSLT 3.0?
Replies: 5
Views: 718

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

Hello.

We released Oxygen XML Editor 19.1 a couple of days ago and we added support for XSLT 3.0 text value templates.

Best Regards,
Octavian
by tavy
Mon Oct 02, 2017 2:18 pm
Forum: General XML Questions
Topic: Unwanted namespace declarations in sqf/xsl output
Replies: 2
Views: 663

Re: Unwanted namespace declarations in sqf/xsl output

Hello,

We released Oxygen XML Editor 19.1 a couple of days ago and the problem you reported should be fixed.

Best Regards,
Octavian
by tavy
Fri Sep 29, 2017 2:19 pm
Forum: General XML Questions
Topic: Compare/Diff the nodes between 2 XML Files
Replies: 3
Views: 634

Re: Compare/Diff the nodes between 2 XML Files

Hello,

There is no action to do this automatically. You can create a stylesheet that copies the nodes that you need and apply it on the XML files.

Best Regards,
Octavian
by tavy
Fri Sep 29, 2017 11:49 am
Forum: General XML Questions
Topic: Compare/Diff the nodes between 2 XML Files
Replies: 3
Views: 634

Re: Compare/Diff the nodes between 2 XML Files

Hello, We do not have such a feature. You need to compare the entire documents. You can use the "Ignore nodes by XPath" feature, to ignore the changes from the document that are made in other nodes. For this you need to create an XPath expression that matches all the nodes from the documen...
by tavy
Tue Aug 29, 2017 4:42 pm
Forum: XSLT and FOP
Topic: Diff files and namespaces
Replies: 11
Views: 829

Re: Diff files and namespaces

Hello, For me it works fine. For example if I compare the two documents below using an XML comparison algorithm (XML Fast or XML Accurate), and I have the option Ignore Namespace Declaration set on true, no difference is presented. I tested using oXygen XML Editor 19.0. Maybe you are using a non-XML...
by tavy
Wed Aug 23, 2017 4:10 pm
Forum: Feature Request
Topic: Schematron validation restricted to cursor context
Replies: 1
Views: 574

Re: Schematron validation restricted to cursor context

Hello, It is an interesting idea, but you cannot run the Schematron or SQF just on a fragment because the you need entire context from the XML (namespace declarations, ancestors). A Schematron rule can also collect information from different parts of the document in order to be applied. And you need...
by tavy
Tue Aug 15, 2017 5:00 pm
Forum: General XML Questions
Topic: Schematron assertions for specific words/phrases and quickfix help
Replies: 4
Views: 468

Re: Schematron assertions for specific words/phrases and quickfix help

Hello, You can create an abstract pattern and then for each word you need to instantiate the pattern and pass the word as parameter. Something like this: <sch:pattern id="warap" abstract="true"> <sch:title>Italic suggestion</sch:title> <sch:rule context="*[not(ancestor-or-se...
by tavy
Tue Aug 15, 2017 9:08 am
Forum: General XML Questions
Topic: Schematron assertions for specific words/phrases and quickfix help
Replies: 4
Views: 468

Re: Schematron assertions for specific words/phrases and quickfix help

Hello, If you want to wrap an word in an element I recommend you to use the sqf:stringReplace operation. You can match the word that you want to wrap and replace it with a fragment. The quick fix should look something like this: <sch:rule context="*[not(ancestor-or-self::title) and not(ancestor...
by tavy
Tue Aug 08, 2017 10:52 am
Forum: General XML Questions
Topic: Unique combination of element / attribute value in schematron
Replies: 1
Views: 505

Re: Unique combination of element / attribute value in schematron

Hello, You can create a rule that for each languageSpecificBrandName element verifies that there is no previous sibling with the same name and language code. The rule must be something like this: <sch:rule context="languageSpecificBrandName"> <sch:let name="currentLang" value=&qu...

Go to advanced search