Search found 262 matches
- Tue Apr 13, 2021 5:19 pm
- Forum: General XML Questions
- Topic: Schematron xpath fail only once
- Replies: 3
- Views: 147
Re: Schematron xpath fail only once
Hello, I think the schema should be something like this: <?xml version="1.0" encoding="UTF-8"?> <schema xmlns="http://purl.oclc.org/dsdl/schematron"> <pattern> <rule context="xml"> <let name="test" value="topic/test[number(text()) > 5]"/> <report test="$test" subject="$test[1]"> Value greater than 5...
- Mon Apr 12, 2021 3:22 pm
- Forum: General XML Questions
- Topic: Schematron xpath fail only once
- Replies: 3
- Views: 147
Re: Schematron xpath fail only once
Hello,
I don't know exactly your use case, maybe you can give me an example of an XML document and a Schematron rule, to understand better the situation.
I think you can add the rule on a parent context, and then change the assert to fail if one of the rules is not true.
Best Regards,
Octavian
I don't know exactly your use case, maybe you can give me an example of an XML document and a Schematron rule, to understand better the situation.
I think you can add the rule on a parent context, and then change the assert to fail if one of the rules is not true.
Best Regards,
Octavian
- Wed Apr 07, 2021 9:45 am
- Forum: XSLT and FOP
- Topic: XSLT using lookup table
- Replies: 4
- Views: 219
Re: XSLT using lookup table
Hello Cathy, For me it works if I have the stylesheet something like this: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs" version="2.0"> <xsl:output method="xml" indent="...
- Mon Apr 05, 2021 11:44 am
- Forum: XSLT and FOP
- Topic: XSLT using lookup table
- Replies: 4
- Views: 219
Re: XSLT using lookup table
Hello Cathy, I think a possible solution is to have a stylesheet something like this: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"> <xsl:output method="xml" encoding="UTF-8" indent="yes"/> <xsl:variable name="MRPITEMS" select="...
- Fri Mar 19, 2021 12:00 pm
- Forum: Other Issues
- Topic: Content Compare in Eclipse Plugin
- Replies: 14
- Views: 3210
Re: Content Compare in Eclipse Plugin
Hi Stefan, We integrated our diff in the Eclipse comparison support. You need to trigger the eclipse comparison support. I think a solution is something like this: https://wiki.eclipse.org/FAQ_How_do_I_create_a_compare_editor%3F But you need to make sure that you set the "xml" type in the CompareIte...
- Thu Mar 18, 2021 2:56 pm
- Forum: Other Issues
- Topic: Content Compare in Eclipse Plugin
- Replies: 14
- Views: 3210
Re: Content Compare in Eclipse Plugin
Hello Stefan, The comparison in Eclipse should start automatically in Author mode for any XML document that has a CSS associated. You need to make sure that the "Enable file comparison in Author mode" option from the Preferences > Oxygen XML Editor Eclipse plugin > DIFF option page is set. https://w...
- Wed Mar 10, 2021 6:10 pm
- Forum: DITA (Editing and Publishing DITA Content)
- Topic: SQF preferences
- Replies: 4
- Views: 1198
Re: SQF preferences
Hello, We just released Oxygen XML Editor version 23.1 and we implemented the support to ignore validation problems. The validation problems that have an ID can now be ignored using quick fix actions. You can find more details on our website: https://www.oxygenxml.com/xml_developer/whats_new.html#23...
- Mon Mar 08, 2021 11:39 am
- Forum: SDK-API, Frameworks - Document Types
- Topic: Hot links in schematron error messages
- Replies: 9
- Views: 2641
Re: Hot links in schematron error messages
Thanks for you feedback.
We have a sample implementation of an intelligent integrated style guide, that works both in Oxygen XML Editor and Oxygen XML Web Author.
https://github.com/oxygenxml/integrated-styleguide
Best Regards,
Octavian
We have a sample implementation of an intelligent integrated style guide, that works both in Oxygen XML Editor and Oxygen XML Web Author.
https://github.com/oxygenxml/integrated-styleguide
Best Regards,
Octavian
- Wed Mar 03, 2021 1:49 pm
- Forum: SDK-API, Frameworks - Document Types
- Topic: Hot links in schematron error messages
- Replies: 9
- Views: 2641
Re: Hot links in schematron error messages
Hello, Thanks for your feedback. Unfortunately, you cannot add the text link in the message. We have an issue on our issue tracker to add this support in a future version. I added your comment on the issue and increased its priority. When the issue will be implemented we will update this thread. Bes...
- Wed Feb 17, 2021 10:28 am
- Forum: Common Problems
- Topic: Possible Bug with Saxon Schema Validation
- Replies: 2
- Views: 211
Re: Possible Bug with Saxon Schema Validation
Hello Frank, Thanks for your feedback. Yes, it seems to be a problem with the Saxon validation in an assert. If the type "ns1:Token3" is set as an element type, no problem is reported. Therefore, it seems that the problem occurs when referring the type in an assert element. I reported the problem at...
- Mon Feb 15, 2021 8:15 pm
- Forum: Common Problems
- Topic: Possible Bug with XML Schema 1.1 override
- Replies: 1
- Views: 165
Re: Possible Bug with XML Schema 1.1 override
Hello, Thanks for your feedback. There is a problem with the Saxon validation, I already reported this problem at Saxon, and they fixed it. Here is the Saxon issue: https://saxonica.plan.io/issues/4518 We need to update the default Saxon library in Oxygen, probably in the next Oxygen major release. ...
- Fri Feb 05, 2021 10:04 am
- Forum: XML Schemas
- Topic: generate-id function and preceding axis in Schematron
- Replies: 2
- Views: 283
Re: generate-id function and preceding axis in Schematron
Hello David,
I will try to analyze this situation and give you some hints, but it will be more easy for me if you can send me some sample files. You can send them on our "support at oxygenxml dot com" email address.
Best Regards,
Octavian
I will try to analyze this situation and give you some hints, but it will be more easy for me if you can send me some sample files. You can send them on our "support at oxygenxml dot com" email address.
Best Regards,
Octavian
- Fri Feb 05, 2021 9:36 am
- Forum: Feature Request
- Topic: Modern Javascript support
- Replies: 1
- Views: 175
Re: Modern Javascript support
Hello Martin,
Thanks for your feedback.
There is already an issue on our issue tracker to improve the JavaScript editing support. I added your comment on the issue and I increased its priority. Maybe in the next Oxygen major release we can try to improve this support.
Best Regards,
Octavian
Thanks for your feedback.
There is already an issue on our issue tracker to improve the JavaScript editing support. I added your comment on the issue and I increased its priority. Maybe in the next Oxygen major release we can try to improve this support.
Best Regards,
Octavian
- Thu Jan 14, 2021 3:04 pm
- Forum: Common Problems
- Topic: XSLT Debugger Messages View
- Replies: 10
- Views: 682
Re: XSLT Debugger Messages View
Hello, Thanks for your feedback. Yes, it seems that when Saxon is in streaming mode the xsl:message is not presented in the Messages view. The message is presented in the console view, if open you have opened Oxygen from a console you will see the message there. I added an issue on our issue tracker...
- Fri Jan 08, 2021 1:35 pm
- Forum: Common Problems
- Topic: XSLT Debugger Messages View
- Replies: 10
- Views: 682
Re: XSLT Debugger Messages View
Hello, From what I tested the message is presented also when the ${currentFileURL} is used as XML URL. If you create a transformation scenario for an XSL and you use the ${currentFileURL} for both XML URL and XSL URL, the ${currentFileURL} editor variable will be expended to the location of the XSL....
- Wed Jan 06, 2021 4:21 pm
- Forum: Common Problems
- Topic: XSLT Debugger Messages View
- Replies: 10
- Views: 682
Re: XSLT Debugger Messages View
Hello, Unfortunately I cannot reproduce the problem. I tested with the same version that you used <oXygen/> XML Editor 23.0, build 2020121712. I used Saxon HE 9.9.1.7 for debugging with the default options, and I get the test message in the Messages view. What engine do you use for debugging? Maybe ...
- Mon Jan 04, 2021 2:55 pm
- Forum: Common Problems
- Topic: XSLT Debugger Messages View
- Replies: 10
- Views: 682
Re: XSLT Debugger Messages View
Hello, From what I tested, with <oXygen/> XML Editor 23.0, build 2020111805, the debugging works fine for me. What version of Oxygen XML do you use? Can you send me also the XML document used in the debugging process, or a sample on which you reproduce the problem? What engine do you use for debuggi...
- Tue Dec 22, 2020 1:40 pm
- Forum: XSLT and FOP
- Topic: How to export a stylesheet for Saxon-JS
- Replies: 6
- Views: 2420
Re: How to export a stylesheet for Saxon-JS
Hello,
New versions for "Saxon XSLT and XQuery Transformer" add-on are now available to install for Oxygen 23.0.
They integrate the latest available engine versions for Saxon 9.9 and 10 (9.9.1.8 and 10.3 respectively).
Best Regards,
Octavian
New versions for "Saxon XSLT and XQuery Transformer" add-on are now available to install for Oxygen 23.0.
They integrate the latest available engine versions for Saxon 9.9 and 10 (9.9.1.8 and 10.3 respectively).
Best Regards,
Octavian
- Wed Dec 16, 2020 5:29 pm
- Forum: Other Issues
- Topic: Can the validation error message codes be viewed?
- Replies: 3
- Views: 285
Re: Can the validation error message codes be viewed?
Hello Leo, Thanks for your feedback. Unfortunately, the error codes where removed from the validation error message and you cannot view them. In Oxygen version 23.0 we added back the links to the W3C specification. You can find more details in our documentation: https://www.oxygenxml.com/doc/version...
- Thu Dec 03, 2020 6:10 pm
- Forum: General XML Questions
- Topic: Comparing multiple strings in Schematron
- Replies: 5
- Views: 1073
Re: Comparing multiple strings in Schematron
Hello, I don't know exactly what rule you want to add, and what is the structure you want to impose. Probably this error occurs because you have two xref elements with the same value in the @product attribute. I think first you need to check if all the xref elements are correct. You can check if you...
- Wed Nov 25, 2020 5:28 pm
- Forum: Common Problems
- Topic: Configure transformation scenarios boolean
- Replies: 3
- Views: 331
Re: Configure transformation scenarios boolean
Hello, Thanks for the feedback. Yes, it seems to be a problem when you set a static parameter from the transformation scenario. We already have an issue on our internal issue tracker for this problem. I will add your comment on the issue and increase its priority. When it will be fixed we will updat...
- Wed Nov 25, 2020 11:09 am
- Forum: General XML Questions
- Topic: Comparing multiple strings in Schematron
- Replies: 5
- Views: 1073
Re: Comparing multiple strings in Schematron
Hello, The context must be "*[count(xref) = 3]", and the variables must be without quotes. I think the pattern should be something like this: <sch:pattern> <sch:rule context="*[count(xref) = 3]"> <sch:let name="stag" value="normalize-space(xs:string(xref[@product='staging']))"/> <sch:let name="prod"...
- Fri Nov 20, 2020 1:09 pm
- Forum: Common Problems
- Topic: Error with fn:collection() returning xs:base64Binary instead of nodes after updating Oxygen
- Replies: 2
- Views: 477
Re: Error with fn:collection() returning xs:base64Binary instead of nodes after updating Oxygen
Hello, We just released yesterday Oxygen XML Editor version 23.0, this contains the fix for the problem you reported. You can download the latest build from here: https://www.oxygenxml.com/xml_editor/download_oxygenxml_editor.html The fix is available also in Oxygen XML Editor version 22.1. You can ...
- Wed Nov 18, 2020 9:49 am
- Forum: Common Problems
- Topic: Configure transformation scenarios boolean
- Replies: 3
- Views: 331
Re: Configure transformation scenarios boolean
Hello, Thanks for your feedback. In order to be interpreted as a boolean you can set the value of the parameter as true() , and check the Evaluate as XPath box. Even if the value is presented with quotes in the parameters dialog, it will be interpreted as a boolean value. For example, If I run the f...
- Mon Nov 09, 2020 10:16 am
- Forum: General XML Questions
- Topic: Test to see if text contains a string from a list of values
- Replies: 3
- Views: 479
Re: Test to see if text contains a string from a list of values
Hello Scott,
Yes, in case there are multiple text nodes in a paragraph the "text()" function will return a sequence of text nodes. You can replace the "$text" variable with the following one:
Best Regards,
Octavian
Yes, in case there are multiple text nodes in a paragraph the "text()" function will return a sequence of text nodes. You can replace the "$text" variable with the following one:
Code: Select all
<sch:let name="text" value="."/>
Octavian
- Fri Nov 06, 2020 10:21 am
- Forum: General XML Questions
- Topic: Test to see if text contains a string from a list of values
- Replies: 3
- Views: 479
Re: Test to see if text contains a string from a list of values
Hello Scott , I think that a solution can be to count the number of matched keys, then you can write also the matched keys in the assertion message. The pattern must look something like this: <sch:pattern> <sch:let name="keys" value="document('keys-common.ditamap')//keyword"/> <sch:rule context="p">...
- Tue Nov 03, 2020 10:18 am
- Forum: Common Problems
- Topic: javascript wrapping after value-of on format
- Replies: 1
- Views: 291
Re: javascript wrapping after value-of on format
Hello, Thanks for your feedback. I think your document is an XHTML (has the namespace "http://www.w3.org/1999/xhtml" set on root ), or it is an HTML document opened in the XHTML editor. You can verify the content type of the opened document in the Properties view (Help menu->Show View->Properties). ...
- Fri Oct 23, 2020 9:45 am
- Forum: Other Issues
- Topic: schematron phases: automated selection
- Replies: 4
- Views: 373
Re: schematron phases: automated selection
Hello, If you associate a validation scenario on a folder from Project view, the scenario will be automatically associated with all the files from that folder and subfolders. Then when you open a file from the folder the file will be validated with the associated scenario. You can use the Validate a...
- Thu Oct 22, 2020 3:34 pm
- Forum: Other Issues
- Topic: schematron phases: automated selection
- Replies: 4
- Views: 373
Re: schematron phases: automated selection
Hello, I think a solution for this is to create a validation scenario for each phase from Schematron.Then you can associate each scenario on the folder where the XML files are located, depending on the phase that you want to use for that folder. For this you need to use the Configure Validation Scen...
- Tue Oct 20, 2020 12:29 pm
- Forum: Feature Request
- Topic: Generate XSLT for XML-to-JSON based on schema.json
- Replies: 2
- Views: 318
Re: Generate XSLT for XML-to-JSON based on schema.json
Hello,
For the XML-to-JSON conversion we do not use XSLT. We use the json.org library. Therefore, we cannot generate an XSLT for this conversion.
Best Regards,
Octavian
For the XML-to-JSON conversion we do not use XSLT. We use the json.org library. Therefore, we cannot generate an XSLT for this conversion.
Best Regards,
Octavian