Search found 202 matches

by tavy
Tue Jul 19, 2016 4:51 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: characters between two characters
Replies: 1
Views: 1143

Re: characters between two characters

Hello, You can use the "substring-before()" and "substring-after()" functions to get the characters that you want, as in the following example: <xsl:variable name="var" select="'1313-231-546'"/> <xsl:variable name="value" select="substring-after($var, '-')"/> <xsl:variable name="no1" select="substri...
by tavy
Thu Jul 14, 2016 2:21 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Representing all alphabets in a string
Replies: 1
Views: 441

Re: Representing all alphabets in a string

Hello, Because you are using Schematron with XSLT 1.0, you cannot apply a regular expressions to match a string. A solution for XSLT 1.0 to check is if lower case alphabets and digits are used in a text is to use the translate(). Something like in the following example: <sch:let name="vLower" value=...
by tavy
Mon Jul 11, 2016 3:25 pm
Forum: XSLT and FOP
Topic: Schematron sqf:stringReplace case-insensitive
Replies: 5
Views: 2640

Re: Schematron sqf:stringReplace case-insensitive

Hello, You cannot pass the ignore case flag in the stringReplace operation. I will add an issue on the SQF specification to add this support. As an workaround you can use the "sqf:replace" operation instead and the "xsl:analyze-string" instruction. Something like this: <sqf:replace> <xsl:analyze-str...
by tavy
Mon May 16, 2016 3:55 pm
Forum: XML Schemas
Topic: Unable to use variable in href for sch:include
Replies: 1
Views: 1823

Re: Unable to use variable in href for sch:include

Hello, Yes, it is not possible to use a variable in the value of the href attribute of an include element. The value of the href attribute must be an URI reference. More information about Schematron you can find on http://www.schematron.com/ website. ISO Schematron specification: http://www.schematr...
by tavy
Tue May 10, 2016 12:39 pm
Forum: XML Schemas
Topic: Looping in schematron
Replies: 1
Views: 2409

Re: Looping in schematron

Hi Shabeer, You need to determine each line of text from your "pre" element and check its length. I have created a sample for you using XSLT to determine the lines of text. You can find the sample below: <sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2" xmlns:xsl="htt...
by tavy
Thu May 05, 2016 9:44 am
Forum: Common Problems
Topic: Exclude specific tag with Diff Directories
Replies: 2
Views: 1484

Re: Exclude specific tag with Diff Directories

Hello, In oXygen XML Editor 18 we added support in Diff Files tool to ignore nodes using an XPath expression. An XPath panel was added on the toolbar of the File Comparison tool and in the Compare view in the Syncro SVN Client. You can enter an XPath 2.0 expression to ignore certain nodes when compa...
by tavy
Thu May 05, 2016 9:30 am
Forum: Feature Request
Topic: Diff Files and Dirs: Add Ignore set of nodes defined by the XPath for XML documents
Replies: 11
Views: 3890

Re: Diff Files and Dirs: Add Ignore set of nodes defined by the XPath for XML documents

Hello, In oXygen XML Editor 18 we added support in Diff Files tool to ignore nodes using an XPath expression. An XPath panel was added on the toolbar of the File Comparison tool and in the Compare view in the Syncro SVN Client. You can enter an XPath 2.0 expression to ignore certain nodes when compa...
by tavy
Wed May 04, 2016 4:47 pm
Forum: Feature Request
Topic: Pluggable diff/file comparison algorithms
Replies: 6
Views: 2600

Re: Pluggable diff/file comparison algorithms

Hello, In oXygen XML Editor 18 we added support to ignore nodes using an XPath expression. An XPath panel was added on the toolbar of the File Comparison tool and in the Compare view in the Syncro SVN Client. You can enter an XPath 2.0 expression to ignore certain nodes when comparing using the XML ...
by tavy
Tue Apr 26, 2016 2:53 pm
Forum: General XML Questions
Topic: RELAX NG with Embedded Schematron
Replies: 9
Views: 3409

Re: RELAX NG with Embedded Schematron

Hello, If you want the error to be displayed on the "floatfig" element when the @float attribute is not "none" and you do not have the "floatfig-group" as child then you need to change the assert. Instead of <sch:assert test="(string(@float) ne 'none') and exists(child::floatfig-group)"> You should ...
by tavy
Tue Apr 26, 2016 9:56 am
Forum: XML Schemas
Topic: SQF for keydef + topicref attributes
Replies: 3
Views: 2922

Re: SQF for keydef + topicref attributes

Hello Nick, The assert for the "keydef/@processing-role" attribute does not work because the default value for the "processing-role" attribute is "resource-only". When the XML is validated against Schematron you cannot determine if the attribute is set in document or is just the default value from t...
by tavy
Mon Apr 18, 2016 2:20 pm
Forum: Common Problems
Topic: Exclude specific tag with Diff Directories
Replies: 2
Views: 1484

Re: Exclude specific tag with Diff Directories

Hello, In oXygen XML Editor 18.0 (that will be released probably at the end of this moth) we added support to ignore nodes by XPath but only for the file comparison ("Diff Files"). We have an issue on our issue tracker to implement this also for "Diff Directories". But this is scheduled for a future...
by tavy
Fri Apr 15, 2016 10:42 am
Forum: XML Schemas
Topic: Schematron - using variables in XPATH
Replies: 2
Views: 3826

Re: Schematron - using variables in XPATH

Hello, I corrected your Schematron schema, you can find it below. You made some small mistakes: - in the 'qualifierValue' variable the $refValue should not be in apostrophes, instead of @value='$refValue' use @value=$refValue. - in the assert you need to use apostrophes for documentType, instead of ...
by tavy
Mon Mar 14, 2016 1:41 pm
Forum: Feature Request
Topic: Support for ISO Schematron subject attribute
Replies: 3
Views: 3366

Re: Support for ISO Schematron subject attribute

Hello,

Yes, we do not support variables in the value of the @subject attribute. You can use an XPath expression that does not contain variables.
I added an issue on our issue tracker regarding this problem. We will notify you when it will be solved.

Best Regards,
Octavian
by tavy
Mon Mar 07, 2016 6:09 pm
Forum: XML Schemas
Topic: QuickFix: use-for-each not supported yet?
Replies: 1
Views: 1787

Re: QuickFix: use-for-each not supported yet?

Hello Gerrit, In oXygen XML Editor 17.1 we support the "Schematron Quick Fixes Specification - Draft April 2015" . This does not include the "@use-for-each" attribute. We want to add support to generate dynamic fixes, but first we need to have this in the specification. There is an opened issue on t...
by tavy
Mon Feb 29, 2016 11:38 am
Forum: Common Problems
Topic: SQF adds invalid xmlns value in keyword
Replies: 3
Views: 1048

Re: SQF adds invalid xmlns value in keyword

Hello, Patrik response is correct, you need to set a namespace for the inserted element or use a prefix for the Schematron elements. I always recommend to use a prefix for the Schematron elements. In this way you can insert elements from no namespace without caring about the namespace declaration. T...
by tavy
Thu Feb 18, 2016 10:19 am
Forum: XML Schemas
Topic: Schematron: Replace on root element not working
Replies: 1
Views: 1752

Re: Schematron: Replace on root element not working

Hi Patrik,

I added an issue on our issue tracker regarding this problem. It is a particular case and the replace operation needs to be implemented differently.

Best Regards,
Octavian
by tavy
Tue Feb 16, 2016 1:34 pm
Forum: Feature Request
Topic: XSD editor: Enable to choose the root element of the XML Schema and to save the tree representation to the XML file
Replies: 3
Views: 1865

Re: XSD editor: Enable to choose the root element of the XML Schema and to save the tree representation to the XML file

Hi Stepan,

I already added an issue with your feature request.
A solution can be to change the flattenSchema and allow to specify also the root element to start from.

Best Regards,
Octavian
by tavy
Tue Feb 16, 2016 12:35 pm
Forum: Feature Request
Topic: Diff Files and Dirs: Add Ignore set of nodes defined by the XPath for XML documents
Replies: 11
Views: 3890

Re: Diff Files and Dirs: Add Ignore set of nodes defined by the XPath for XML documents

Hi Stepan,

By an XPath subset I mean that you will not be able to use a full XPath 2.0 for example, maybe some of the functions will not be supported. But we will see this when will be implemented and we can discuss about it. The feedback is always welcome.

Best Regards,
Octavian
by tavy
Mon Feb 15, 2016 5:43 pm
Forum: Feature Request
Topic: Diff Files and Dirs: Add Ignore set of nodes defined by the XPath for XML documents
Replies: 11
Views: 3890

Re: Diff Files and Dirs: Add Ignore set of nodes defined by the XPath for XML documents

Hi,

Thanks for feedback.
Yes, the possibility to ignore the nodes using XPath expressions when comparing documents it is useful in many cases.
I think it will be an XPath subset not the full XPath, but will solve most of the use cases.

Best Regards,
Octavian
by tavy
Mon Feb 15, 2016 4:47 pm
Forum: Feature Request
Topic: Explicit Schematron Saxon Settings
Replies: 1
Views: 1159

Re: Explicit Schematron Saxon Settings

Hi Patrik,

Thanks for the feedback.
Yes, for the validation of XML documents against Schematron it will be better to have the Saxon setting configurable in the validation scenario.
We have an issue on our issue tracker regarding this problem and I will add you comment there.

Best Regads,
Octavian
by tavy
Wed Jan 13, 2016 6:00 pm
Forum: XML Schemas
Topic: Oxygen / Schematron using wrong schema
Replies: 2
Views: 2113

Re: Oxygen / Schematron using wrong schema

Hello, The errors appears because you use Saxon EE (schema-aware) for the Schematron validation. It seems to be a problem with the Saxon transformation. This is because both XML documents have the same namespace and Saxon uses the same XSD file to validate both instances. I will add an issue with th...
by tavy
Wed Jan 13, 2016 11:28 am
Forum: Common Problems
Topic: XSLT content complete seemingly not aware of related XML
Replies: 3
Views: 938

Re: XSLT content complete seemingly not aware of related XML

Hi Kelly,

If you associate multiple transformation scenarios with an XSL file, in the content completion window you will get only the elements/attributes from the first associated XML file.

Best Regards,
Octavian
by tavy
Tue Jan 12, 2016 11:12 am
Forum: Common Problems
Topic: XSLT content complete seemingly not aware of related XML
Replies: 3
Views: 938

Re: XSLT content complete seemingly not aware of related XML

Hello, When you are editing you XSLT file, in order to get in the content completion window the element from the XML document, you need to associate the XSLT file with the XML file using a transformation scenario. You ca read more about the content completion support in XSLT in our user manual or wa...
by tavy
Thu Jan 07, 2016 12:16 pm
Forum: Common Problems
Topic: Multiple sqf:call-fix siblings
Replies: 2
Views: 1026

Re: Multiple sqf:call-fix siblings

Hello, The issue from SQF github is not solved yet. In the current SQF specification , that is supported in oXygen 17.x, it is not allowed to have multiple call-fix elements in a fix element. Yes, it is a discussion to allow multiple call-fix elements, but this called fixes should contain only activ...
by tavy
Mon Jan 04, 2016 6:32 pm
Forum: XML Schemas
Topic: QuickFix doesn't resolve substitution groups for missing ele
Replies: 4
Views: 2991

Re: QuickFix doesn't resolve substitution groups for missing ele

Hello,

Please note the in oXygen 17.1 we added support for XPath/XSLT 3.0 in Schematron Schemas. You can define the version directly in the Schematron document using the queryBinding attribute or by using an option in the Schematron preferences page.

Best Regards,
Octavian
by tavy
Mon Jan 04, 2016 6:16 pm
Forum: XML Schemas
Topic: SQF XInclude problem
Replies: 2
Views: 2124

Re: SQF XInclude problem

Hello, Please note that the issue that you reported was fixed in oXygen 17.1. We added support to execute Schematron Quick Fixes on documents other than the current one. You can apply Schematron Quick Fixes over the nodes from referred documents (referred using XInclude or external entities), and yo...
by tavy
Mon Jan 04, 2016 5:53 pm
Forum: XML Schemas
Topic: Providing the same sqf:fix for multiple reports
Replies: 2
Views: 2149

Re: Providing the same sqf:fix for multiple reports

Hello,

Please note that the issue that you reported was fixed in oXygen 17.1.

Best Regards,
Octavian
by tavy
Thu Dec 24, 2015 10:13 am
Forum: Other Issues
Topic: Help me to trasform xml in another xml
Replies: 1
Views: 798

Re: Help me to trasform xml in another xml

Hello, Below you can find a stylesheet to transform your source XML. You just need to create a transformation scenario and apply it over the source file. Please note that tour source an destination files that you posted are not well formed. The end tag of the object element is written with uppercase...
by tavy
Fri Oct 23, 2015 3:51 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Apply all Schematron Quick Fixes
Replies: 3
Views: 1387

Re: Apply all Schematron Quick Fixes

Hello Stefan, You cannot execute all the fixes define in a document. This is because you can have multiple fixes for the same problem and you need to decide which fix should be executed. This feature should be implemented using the @default-fix attribute which is not supported yet in <oXygen/>. See ...