Search found 123 matches

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: 4
Views: 429

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

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

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: 4
Views: 429

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

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

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

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

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

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

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

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

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...
by tavy
Thu Aug 03, 2017 4:33 pm
Forum: XML Schemas
Topic: Schematron - Counting number of elements+attributes
Replies: 2
Views: 608

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&...
by tavy
Wed Aug 02, 2017 8:53 am
Forum: Common Problems
Topic: "Ignore nodes by Xpath" in Compare Directories
Replies: 1
Views: 135

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 i...
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: 1
Views: 132

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 code 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: 563

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 ...
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: 270

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 attribut...
by tavy
Tue Jun 20, 2017 3:24 pm
Forum: Common Problems
Topic: Validating dates in schematron
Replies: 1
Views: 244

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

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=&qu...
by tavy
Tue May 09, 2017 4:18 pm
Forum: Other Issues
Topic: Formatting results in the "Results pane"
Replies: 4
Views: 425

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...
by tavy
Tue May 02, 2017 4:50 pm
Forum: Other Issues
Topic: Formatting results in the "Results pane"
Replies: 4
Views: 425

Re: Formatting results in the "Results pane"

Hello Grethel, A solution is to change the message and add the text "This word should not be used:" only once. Something like this: <xsl:variable name="list-words"> <xsl:for-each select="document('list_of_words.dita')//tbody/row/entry[1]"> <xsl:variable name="word&...
by tavy
Thu Apr 20, 2017 3:13 pm
Forum: XSLT and FOP
Topic: Schematron sqf:stringReplace case-insensitive
Replies: 5
Views: 1018

Re: Schematron sqf:stringReplace case-insensitive

Hi Wojtek, Stating with oXygen v18.1 we changed the "sqf:stringReplace" operation to allow using java regular expressions in the value of the @regex attribute. Therefore, the case-insensitive matching can be enabled via the embedded expression (?i). In your case you can create a quick fix ...
by tavy
Thu Apr 13, 2017 2:49 pm
Forum: Common Problems
Topic: Quick fix collides with xslt schematron validation (Oxygen 19)
Replies: 2
Views: 341

Re: Quick fix collides with xslt schematron validation (Oxygen 19)

Hello, Thank you for the feedback. I will add an issue on our issue tracker to find a solution for this problem. As an workaround you can deactivate the Schematron checks for XSLT. For this you need to go to Option-Preferences->Document Type Association options page, then edit the XSLT document type...
by tavy
Mon Apr 10, 2017 5:30 pm
Forum: XML Schemas
Topic: E [ISO Schematron] no error discription
Replies: 3
Views: 424

Re: E [ISO Schematron] no error discription

Hello,

I don't understand the exact problem. Can you send me some sample files to reproduce it? If the samples are too big you can send them to our support email address (support at oxygenxml dot com).
What oXygen version do you use?

Best Regards,
Octavian
by tavy
Tue Apr 04, 2017 9:33 am
Forum: XML Schemas
Topic: assert test can't find node
Replies: 3
Views: 439

Re: assert test can't find node

Hello, The namespace scope of the path elements in the assertion expression is determined by the value of the xpathDefaultNamespace attribute. If the attribute is absent, its value is assumed to be ##local - which translates into null namespace. This attribute can also be declared to hold any URI, o...
by tavy
Mon Apr 03, 2017 3:07 pm
Forum: XML Schemas
Topic: assert test can't find node
Replies: 3
Views: 439

Re: assert test can't find node

Hello,

You need to add a namespace declaration on you schema root, something like this: xmlns:b="http://magazine.babson.edu"
Then change the assert to use the declared prefix, something like this: <xs:assert test="b:type='Undergraduate'"/>

Best Regards,
Octavian
by tavy
Tue Mar 28, 2017 4:00 pm
Forum: XML Schemas
Topic: Validate multiple root elements with Schematron
Replies: 4
Views: 538

Re: Validate multiple root elements with Schematron

Hello, Unfortunately I cannot reproduce the problem. For me it works fine. If I validate the following XML with the Schematron that you provided I get both errors, on "office:Date" and "staff:Available". The only thing that I can think of is to have a different namespace URI for ...
by tavy
Tue Mar 28, 2017 9:00 am
Forum: XML Schemas
Topic: Validate multiple root elements with Schematron
Replies: 4
Views: 538

Re: Validate multiple root elements with Schematron

Hello, You need to send me also a sample Schematron file in order to find the problem. Is the Schematron embedded in XSD or is in a separate file? Are the rules in different patterns, and you use phases? Make sure that the namepaces for the "office" and "staff" are declared corre...
by tavy
Thu Mar 23, 2017 12:20 pm
Forum: Other Issues
Topic: Grouping Schematron Messages
Replies: 1
Views: 323

Re: Grouping Schematron Messages

Hi Patrick, Thank you for the feedback . We have not received such requirements until now. In the Problems view you get errors from different schemas, and such a filter will apply only for Schematron errors. Therefore, we need to present this group only if there are Schematron errors in the view. We...
by tavy
Mon Mar 20, 2017 6:55 pm
Forum: General XML Questions
Topic: Unwanted namespace declarations in sqf/xsl output
Replies: 2
Views: 458

Re: Unwanted namespace declarations in sqf/xsl output

Hello, Unfortunately I didn't found a solution for this problem. It seems that the serializer that we use in oXygen when we create the fragment to be inserted, generates also the XML namespace declaration. I added an issue on our issue tracker. We will notify you when it will be fixed. Best Regards,...

Go to advanced search