Search found 193 matches

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

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

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 questions on St...
by tavy
Thu Mar 15, 2018 3:10 pm
Forum: XML Schemas
Topic: Schematron Validation with Saxon HE
Replies: 1
Views: 1883

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 an option ...
by tavy
Wed Mar 14, 2018 3:39 pm
Forum: XML Schemas
Topic: Check Overlapping Time Periods with Schematron
Replies: 2
Views: 1669

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

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://www.w3.org/1999/XSL/Transform" xmlns:sqf="h...
by tavy
Fri Feb 23, 2018 5:30 pm
Forum: Common Problems
Topic: How to manage favorites in XPath Builder?
Replies: 1
Views: 801

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

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 compile the cla...
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: 991

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

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

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" that is added in the ma...
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: 6
Views: 2676

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

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 presented w...
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: 849

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: 6
Views: 2676

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

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

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

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 document other th...
by tavy
Tue Aug 29, 2017 4:42 pm
Forum: XSLT and FOP
Topic: Diff files and namespaces
Replies: 11
Views: 3070

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

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

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-self::title) and not(ancest...
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: 1738

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-or-s...
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: 1392

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="@language"/> <sch:let ...
by tavy
Thu Aug 03, 2017 4:33 pm
Forum: XML Schemas
Topic: Schematron - Counting number of elements+attributes
Replies: 2
Views: 2595

Re: Schematron - Counting number of elements+attributes

Hello, You can create a rule for the description element that checks the number of functionalName elements that have the @languageCode equal with 'en', something like this: <sch:pattern> <sch:rule context="description"> <sch:assert test="count(functionalName[@languageCode= 'en']) = 1">The value of T...
by tavy
Wed Aug 02, 2017 8:53 am
Forum: Common Problems
Topic: "Ignore nodes by Xpath" in Compare Directories
Replies: 4
Views: 1564

Re: "Ignore nodes by Xpath" in Compare Directories

Hello Paul, The "Ignore nodes by Xpath" option is available only for Diff Files. We do not have support in Diff Directories to merge the contents of the files and ignore some nodes. The only way to merge the contents of the files and ignore nodes is by using the Diff Files. I will add an issue on ou...
by tavy
Tue Jul 25, 2017 11:06 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Wrapping text() with a Quick Fix not working as expected. Why?
Replies: 2
Views: 911

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

Hello, Thank you for the feedback. It seems that we do not compute the context node correctly in this case. The context node for the insert element operation should be the text node and the quick fix must insert the element after the text node, not after the section. I added an issue on out issue tr...
by tavy
Mon Jul 10, 2017 3:24 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Starting with Schematron
Replies: 13
Views: 5041

Re: Starting with Schematron

Hi Ann, This happens because the elements that you are inserting using the quick fix are from the Schematron namespace. The Schematron namespace is defined on the schema root as the default namespace for your document (xmlns="http://purl.oclc.org/dsdl/schematron"), and because you did not specify a ...
by tavy
Fri Jul 07, 2017 11:50 am
Forum: General XML Questions
Topic: @rowspan not found by Schematron rule in oXygen
Replies: 3
Views: 1229

Re: @rowspan not found by Schematron rule in oXygen

Hello, Yes, you can use th[@rowspan='2']. For me it works fine. You can also report a problem only when the value of the rowspan is different from the default one. Something like this: <sch:rule context="th[@rowspan!='1']"> <sch:report test="true()">Don't use the rowspan attribute</sch:report> </sch...
by tavy
Tue Jun 20, 2017 3:24 pm
Forum: Common Problems
Topic: Validating dates in schematron
Replies: 1
Views: 1250

Re: Validating dates in schematron

Hello, You can convert to 'xs:date' and compare the dates. To obtain the dateA you need to get the previous sibling using the following XPath 'preceding-sibling::dateA[1]', and then decrease one day to obtain the expected date. You can provide also a fix that will correct the current date. The Schem...
by tavy
Wed May 10, 2017 8:43 am
Forum: Common Problems
Topic: Schermatron: matching element element content with other element name
Replies: 1
Views: 846

Re: Schermatron: matching element element content with other element name

Hello, For the example that you provided You need to create a Schematron something like this: <sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2"> <sch:pattern> <sch:rule context="element1"> <sch:let name="matchElemName" value="following-sibling::*[1]/child::*[2]/local-...
by tavy
Tue May 09, 2017 4:18 pm
Forum: Other Issues
Topic: Formatting results in the "Results pane"
Replies: 4
Views: 1493

Re: Formatting results in the "Results pane"

Hello Grethel, The solution that I can think of is to use abstract patterns. You can create an abstract pattern with the report, and instantiate this pattern for each forbidden word with some specific parameters (the forbidden word, the replace word, maybe a different message). In the abstract patte...