Search found 249 matches
- Thu Jan 14, 2021 3:04 pm
- Forum: Common Problems
- Topic: XSLT Debugger Messages View
- Replies: 10
- Views: 282
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: 282
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: 282
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: 282
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: 2135
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: 2
- Views: 111
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: 800
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: 151
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: 800
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: 336
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: 151
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: 285
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: 285
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: 199
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: 211
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: 211
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: 172
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
- Fri Oct 16, 2020 4:05 pm
- Forum: XML Schemas
- Topic: Multiple values in target
- Replies: 7
- Views: 943
Re: Multiple values in target
I think you just need to copy the following fragment and paste it after a pattern from your current Schematron file. <sch:let name="personIds" value="document('../personography/HAMpersons.xml')/tei:TEI//tei:person/@xml:id"/> <sch:pattern> <sch:rule context="tei:rs"> <sch:let name="refIds" value="for...
- Fri Oct 16, 2020 11:49 am
- Forum: XML Schemas
- Topic: Multiple values in target
- Replies: 7
- Views: 943
Re: Multiple values in target
Hi David, I changed the Schematron to check all references. I also collect all teh IDs that are missing and I print them in the assert message. <sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2"> <sch:ns uri="http://www.tei-c.org/ns/1.0" prefix="tei"/> <sch:let name="p...
- Thu Oct 15, 2020 2:47 pm
- Forum: XML Schemas
- Topic: Multiple values in target
- Replies: 7
- Views: 943
Re: Multiple values in target
Hello David, A solution can be to tokenize the value of the @ref attribute, and then use a "for" to iterate the values and extract the IDs. Something like this: <sch:let name="refIds" value="for $id in tokenize(@ref, ' ') return substring-after($id, '#')"></sch:let> <sch:assert test="document('../pe...
- Fri Sep 25, 2020 3:17 pm
- Forum: XML Schemas
- Topic: Differences between XSD-Validation of Oxygen and Ant
- Replies: 1
- Views: 263
Re: Differences between XSD-Validation of Oxygen and Ant
Hello Nico, I think you need to set the "schemaLanguage" property. Something like this: <project basedir="." name="schema-validation-test" default="test"> <target name="test"> <schemavalidate file="src.xml" noNamespaceFile="schema.xsd" failonerror="true"> <property name="http://java.sun.com/xml/jaxp...
- Wed Sep 02, 2020 4:44 pm
- Forum: General XML Questions
- Topic: schematron replace-curly-doublequotes
- Replies: 1
- Views: 324
Re: schematron replace-curly-doublequotes
Hello, In Author mode we automatically render "<" with "<", and ">" with ">". But if you switch to Text page you will notice that is correct, based on your replace. How do you want the result to bein text, like this " <q>test1 test2 - Success</q>" or like this " <q>test1 test2 - Success</q>"? Best R...
- Tue Aug 25, 2020 12:50 pm
- Forum: DITA (Editing and Publishing DITA Content)
- Topic: Schematron quick fix to set parent element
- Replies: 2
- Views: 236
Re: Schematron quick fix to set parent element
Hello Ann, I created a Schematron rule that checks if the short description element is in an abstract element. If is not, provides also a quick fix that moves the short description element in an abstract element. In case an abstract element already exists, will move the short description in that ele...
- Tue Aug 25, 2020 11:06 am
- Forum: XML Schemas
- Topic: Validate XML against XSD generated by Oxygen
- Replies: 1
- Views: 412
Re: Validate XML against XSD generated by Oxygen
Hello, We are using Trang to generate an XSD schema from XML files. It seems that Trang generates an xsi.xsd schema when you use attributes from "http://www.w3.org/2001/XMLSchema-instance" namespace. There is already an issue for this on the Trang project: https://github.com/relaxng/jing-trang/issue...
- Wed Aug 19, 2020 3:05 pm
- Forum: Feature Request
- Topic: XPath 3.1 map and array support in Schematron with queryBinding="xslt3"
- Replies: 2
- Views: 327
Re: XPath 3.1 map and array support in Schematron with queryBinding="xslt3"
Hello Martin, In to see the functions in the content completion list you need to declare the namespace also on the Schematron root element. Something like this: <sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt3" xmlns:array="http://www.w3.org/2005/xpath-functions/array...
- Thu Aug 06, 2020 2:25 pm
- Forum: XSLT and FOP
- Topic: Using Saxon CollectionFinder from Oxygen XML
- Replies: 3
- Views: 964
Re: Using Saxon CollectionFinder from Oxygen XML
Hello, You can also set in Oxygen the "saxon.custom.options" property. For this you need to edit the "Run XSpec Test" transformation scenario, select the "Parameters" tab, then edit the "saxon.custom.options" property and set the value to "-init:no.uib.saxon.ef.SimmetricsInitializer --collection-fin...
- Thu Aug 06, 2020 9:02 am
- Forum: Common Problems
- Topic: Weird autocomplete bug in v 22.0
- Replies: 9
- Views: 935
Re: Weird autocomplete bug in v 22.0
Hi,
Yes, the issue was fixed in the latest maintenance build of Oxygen XML Editor 22.1.
https://www.oxygenxml.com/build_history.html#2020072902
Thanks again for your feedback.
Best Regards,
Octavian
Yes, the issue was fixed in the latest maintenance build of Oxygen XML Editor 22.1.
https://www.oxygenxml.com/build_history.html#2020072902
Thanks again for your feedback.
Best Regards,
Octavian
- Tue Jul 28, 2020 1:17 pm
- Forum: XSLT and FOP
- Topic: Version Validation
- Replies: 1
- Views: 401
Re: Version Validation
Hello, For this type of questions probably is better to use the "schematron at schematronist dot org" mailing list. There are more people that can respond to them, and maybe better answers. I think that a solution for your Schematron rule can be something like this: <?xml version="1.0" encoding="UTF...
- Mon Jul 27, 2020 8:20 am
- Forum: Common Problems
- Topic: Schematron and external functions
- Replies: 6
- Views: 1421
Re: Schematron and external functions
Hello,
Thanks for your feedback.
I added your vote on the issue. We will update this thread when the issue will be solved.
Best Regards,
Octavian
Thanks for your feedback.
I added your vote on the issue. We will update this thread when the issue will be solved.
Best Regards,
Octavian
- Thu Jul 23, 2020 11:55 am
- Forum: Common Problems
- Topic: Configure Validation Scenarios does not detect phases in Schematron with includes
- Replies: 3
- Views: 350
Re: Configure Validation Scenarios does not detect phases in Schematron with includes
Hello, Thanks for your feedback. Yes, the phases from the included files are not collected when you associate a Schemaron in the validation scenario. We collect the phases from the included files only when the validation scenario is applied, and we display them in a dialog. This is because we do not...