Search found 403 matches

by radu_pisoi
Fri Oct 09, 2015 12:24 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Xspec - why my test is failed?
Replies: 2
Views: 2107

Re: Xspec - why my test is failed?

Hi, I have investigated a bit the XSpec transformation and it seems that the cause why the test fails is that the type of the compared nodes is different. The result of the transformation is an element while the expected result is a document node. A solution is to specify the select attribute on the...
by radu_pisoi
Wed Oct 07, 2015 4:08 pm
Forum: DocBook
Topic: Docbook 5.1 rng/schmatron validation errors
Replies: 1
Views: 4266

Re: Docbook 5.1 rng/schmatron validation errors

Hi, This is a problem in the Docbook 5.1 schemas because the prefixes used in the Schematron expressions should be declared with the ns{http://purl.oclc.org/dsdl/schematron} directive. Please see the section *5.4.7 ns element* from the ISO Schematron specification: http://www.schematron.com/iso/P8.h...
by radu_pisoi
Wed Sep 23, 2015 4:29 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Master files for PDF plugin customization?
Replies: 2
Views: 1626

Re: Master files for PDF plugin customization?

Hi, Yes, the Master Files support can be used to validate the XSLT document used for DITA PDF customization with 2 observations: 1. Detect the master files only for the XSLT files from the DITA PDF plugin, oxygenInstallDir/frameworks/dita/DITA-OT/plugins/org.dita.pdf2/xsl. To do that, link the above...
by radu_pisoi
Thu Sep 17, 2015 3:02 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Correct Behaviour of @locktitle in Output
Replies: 2
Views: 2074

Re: Correct Behaviour of @locktitle in Output

Hi, The specification for the locktile attribute it's a bit confusing for me. To explain why, I will copy some fragments from DITA 1.2 specification. navtitle element When navtitle is used in a map, it functions in the same way as the navtitle attribute; both are used to specify a navigation title f...
by radu_pisoi
Wed Sep 09, 2015 3:05 pm
Forum: Common Problems
Topic: glossary keyrefs not appearing in ToC
Replies: 5
Views: 2185

Re: glossary keyrefs not appearing in ToC

Hi,

Sorry for the delay. I found a fix for the problem you reported.

This fix will be available in the next oXygen version that will be released in about one month. If you are interested about this fix sooner please contact us on our email support address: support@oxygenxml.com
by radu_pisoi
Fri Sep 04, 2015 4:43 pm
Forum: Common Problems
Topic: glossary keyrefs not appearing in ToC
Replies: 5
Views: 2185

Re: glossary keyrefs not appearing in ToC

Thank you for reporting this issue.

We already reported this issue to the DITA-OT project and it is not solved yet, see
https://github.com/dita-ot/dita-ot/issues/1828.

I have some ideas about how to fix it but I'm not 100% sure. I will come back in a couple of days with a solution.
by radu_pisoi
Mon Aug 31, 2015 10:29 am
Forum: Common Problems
Topic: Runtime Errors from parse-xml not catched
Replies: 5
Views: 3576

Re: Runtime Errors from parse-xml not catched

Hi,

Yes, it seems to be a similar problem. The transformation execution should not be stopped when an dynamic error is caught by try/catch instruction.

I will also register this case in our issue tracking system.
by radu_pisoi
Fri Aug 28, 2015 9:55 am
Forum: XSLT and FOP
Topic: XSpec unit tests failing on unusual differences
Replies: 3
Views: 4052

Re: XSpec unit tests failing on unusual differences

No, there is no particular attribute to signal that whitespaces should be preserved other than 'xml:space="preserve"'.
by radu_pisoi
Wed Aug 19, 2015 10:52 am
Forum: XSLT and FOP
Topic: XSpec unit tests failing on unusual differences
Replies: 3
Views: 4052

Re: XSpec unit tests failing on unusual differences

Hi, The difference between the expected result written in the XSpec file and the XML fragment produced by the XSLT transformation consists of the missing whitespace after the a element in the expected result. So, both templates from the XSLT stylesheet emit a white-space after the a element with the...
by radu_pisoi
Wed Aug 12, 2015 11:37 am
Forum: Common Problems
Topic: Runtime Errors from parse-xml not catched
Replies: 5
Views: 3576

Re: Runtime Errors from parse-xml not catched

Hi, I have tried to reproduce the problem by running the transformation with Saxon EE 9.6.0.5 from the command line. In this case, the transformation behavior is the expected one. If the document to be parsed is not wellformed then the result of the try instruction is given by the evaluation of the ...
by radu_pisoi
Wed Jul 29, 2015 10:08 am
Forum: DocBook
Topic: modifying the OLink dialog
Replies: 6
Views: 7137

Re: modifying the OLink dialog

Is there a way to limit the scope to the newly inserted element? The solution is to add an activation condition (self::*:olink) for the Convert OLink action (convert.olink). To do this you have to edit the Docbook 5 - Extension framework and then find/edit the Convert OLink action (select Author ta...
by radu_pisoi
Mon Jul 27, 2015 4:58 pm
Forum: DocBook
Topic: modifying the OLink dialog
Replies: 6
Views: 7137

Re: modifying the OLink dialog

There is a way to customize/convert the markup added by the Insert OLink action by applying an additional stylesheet over the inserted element. This is possible by creating a compound Author action (based on ExecuteMultipleActionsOperation ) that: * first it executes the old 'Insert OLink' action th...
by radu_pisoi
Mon Jul 27, 2015 2:25 pm
Forum: DocBook
Topic: modifying the OLink dialog
Replies: 6
Views: 7137

Re: modifying the OLink dialog

Hi, You are right. If you are using DocBook version 5 or later, then you can use other inline elements as olinks. DocBook 5 supports universal linking, which means it permits xlink:href attributes on most elements to create a link from the current element to some target. http://www.sagehill.net/docb...
by radu_pisoi
Tue Jun 23, 2015 8:58 am
Forum: General XML Questions
Topic: Inserting a block of text into every record
Replies: 5
Views: 4436

Re: Inserting a block of text into every record

Another entry in the "this may be really obvious" series. I have a block of text for contact information metadata that I'd like to insert in each of several thousand records. I can't use a simple copy and paste, because I want to put the block after an element that appears more than once ...
by radu_pisoi
Mon Jun 22, 2015 4:32 pm
Forum: General XML Questions
Topic: Adding an attribute to every instance of an element
Replies: 9
Views: 10541

Re: Adding an attribute to every instance of an element

That is, I want to add a scale="50" attribute to all image elements. Maybe it could be done with some regex s&r, but that's not really "stable". I would prefer a "real" XML operation. That is, I want xml-based, xpath based search and replace. I just wanted to let y...
by radu_pisoi
Thu Jun 18, 2015 5:24 pm
Forum: XQuery
Topic: Xpath query fails if "all opened files"
Replies: 2
Views: 5260

Re: Xpath query fails if "all opened files"

The composition of the prefix-namespace mappings used when executing an XPath expression is done by following the next rules: * the mappings from the XML/XSLT-FO-XQuery/XPath preferences page are added first - see the Default prefix-namespace mappings and the XPath default namespace sections; * if t...
by radu_pisoi
Wed Jun 03, 2015 2:48 pm
Forum: Common Problems
Topic: XSD doc: issue with local element definitions
Replies: 1
Views: 1065

Re: XSD doc: issue with local element definitions

Hello, I managed to reproduce your problem. Thus, I will add an entry on our issue tracking system to fix it in a future oXygen version. Unfortunately, it seems that the WSDL documentation does not contain entries for local elements or attributes. However, I'm happy to know that you already found an...
by radu_pisoi
Mon May 25, 2015 2:28 pm
Forum: SDK-API, Frameworks - Document Types
Topic: XSPEC and XSLT issue
Replies: 33
Views: 17447

Re: XSPEC and XSLT issue

This can happen when the input XML file is not well-formed. So, I suppose that you have selected the text file ( sample_txtfile.txt ) as input XML file when you have edited the XSLT scenario (see the XML URL field from the XSLT tab when you edit the scenario). However, for your use-case it is not re...
by radu_pisoi
Fri May 22, 2015 4:58 pm
Forum: SDK-API, Frameworks - Document Types
Topic: XSPEC and XSLT issue
Replies: 33
Views: 17447

Re: XSPEC and XSLT issue

Sure. You can read a text document with unparsed-text() function. To process it, one solution is to use the xsl:analyze-string instruction.
by radu_pisoi
Mon May 11, 2015 11:25 am
Forum: SDK-API, Frameworks - Document Types
Topic: saxon/annotatedConfig.xsd: multiple extensionElement element
Replies: 1
Views: 1729

Re: saxon/annotatedConfig.xsd: multiple extensionElement ele

Thank you for reporting this. Yes, the schema used to edit the Saxon configuration file is out of date, it should allows setting one or more extension elements when customizing an XSLT transformation. I will add an issue in our issue tracking system to update our schema. Also, the CSS file should be...
by radu_pisoi
Fri May 08, 2015 4:49 pm
Forum: XML Schemas
Topic: Schematron Validation - Missing local DTD
Replies: 2
Views: 3582

Re: Schematron Validation - Missing local DTD

Hi, Can I neglect Oxygen to validate against a DTD when I just want to test a Schematron rule. The answer is 'no' because the XML file and DTD are tightly connected. An XML document can refer DTD entities which are defined in the DTD document, so it is not a good idea to avoid the DTD file when load...
by radu_pisoi
Tue May 05, 2015 12:28 pm
Forum: SDK-API, Frameworks - Document Types
Topic: XSPEC and XSLT issue
Replies: 33
Views: 17447

Re: XSPEC and XSLT issue

Now when the XSPEC file is executed we get a test coverage report in html file. There we see that the RESULT and EXPECTED RESULT are same but the test case is getting failed. Could you please help me solve this issue? It works after I modify a bit the expected result: <x:expect label="should d...
by radu_pisoi
Tue May 05, 2015 11:40 am
Forum: SDK-API, Frameworks - Document Types
Topic: XSPEC and XSLT issue
Replies: 33
Views: 17447

Re: XSPEC and XSLT issue

Also is it possible to transform a relaxNG(.rng) file(INPUT) into an XML file(OUTPUT) through XSL file? I'm afraid I don't understand your use case. RELAX NG is a schema language for XML similar with XML Schema or DTD. Do you want to generate one or more XML instances based on a RelaxNG schema? If ...
by radu_pisoi
Mon Apr 27, 2015 3:51 pm
Forum: SDK-API, Frameworks - Document Types
Topic: XSPEC and XSLT issue
Replies: 33
Views: 17447

Re: XSPEC and XSLT issue

Hello, As far as I know, the function current-datetime() is evaluated only once per transformation by an XSLT processor. So, a solution can be to refactor your XSLT stylehseet to declare a global parameter that binds the value of the current-datetime() function and refer it instead of the function. ...
by radu_pisoi
Fri Apr 24, 2015 4:10 pm
Forum: SDK-API, Frameworks - Document Types
Topic: XSPEC and XSLT issue
Replies: 33
Views: 17447

Re: XSPEC and XSLT issue

Hello, To use the content of an external file as expected result you can use the attribute: x:expect/@href . <x:expect label="should display differences of two xml files" href="expected.xml"/> Also, you can specify the attribute x:expect/@select that allows you to point a specifi...
by radu_pisoi
Fri Apr 24, 2015 11:12 am
Forum: SDK-API, Frameworks - Document Types
Topic: XSPEC and XSLT issue
Replies: 33
Views: 17447

Re: XSPEC and XSLT issue

Hello, Related to the second problem, when you want to set specific values to the global parameters from different test scenarios. According to the XSpec documentation, https://code.google.com/p/xspec/wiki/WritingScenarios#Global_Parameters , I understand that this is a limitation of the current XSL...
by radu_pisoi
Fri Apr 24, 2015 10:33 am
Forum: SDK-API, Frameworks - Document Types
Topic: XSPEC and XSLT issue
Replies: 33
Views: 17447

Re: XSPEC and XSLT issue

Hello, The first reported problem is related to the different evaluation context used when computing the value of the global variable 's.root' from an XSLT or XSpec transformation. From a regular XSLT transformation , the value of an XSLT global variable is computed by evaluating the XPath expressio...
by radu_pisoi
Thu Apr 02, 2015 11:40 am
Forum: SDK-API, Frameworks - Document Types
Topic: custom functions/instructions in xslt content completion
Replies: 7
Views: 4699

Re: custom functions/instructions in xslt content completion

Both test-functions are only recognized in the saxon-namespace: When typing "saxon:test-" both entries are suggested. After "test:" there is no suggestion by content completion. So the namespace-element in the file appears to be ignored. As Adrian already said, there is no speci...
by radu_pisoi
Wed Apr 01, 2015 2:01 pm
Forum: XML Schemas
Topic: Multi-file Schematron architecture
Replies: 9
Views: 10501

Re: Multi-file Schematron architecture

Thank you for your feedback and your willingness to share your ideas and code with us. In oXygen 16.1 we improved the inclusion mechanism when working with ISO Schematron modules by adding support for iso:extends element. This element allows you to include all the components defined in a Schematron ...
by radu_pisoi
Tue Mar 31, 2015 5:10 pm
Forum: XML Schemas
Topic: Finding the code from schematorn message
Replies: 3
Views: 3174

Re: Finding the code from schematorn message

Adding the possibility to identify the assert or report element that generates a certain Schematron message is a nice feature that will help Schematron developers to easily edit their schemas. As you already noted, this feature can be annoying in some circumstances. So, there should be an option for...