Search found 370 matches

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

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

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

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

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

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

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

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

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

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

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

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 in each re...
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: 8204

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 you know that the latest version (v...
by radu_pisoi
Thu Jun 18, 2015 5:24 pm
Forum: XQuery
Topic: Xpath query fails if "all opened files"
Replies: 2
Views: 3019

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

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

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

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

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

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

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 displa...
by radu_pisoi
Tue May 05, 2015 11:40 am
Forum: SDK-API, Frameworks - Document Types
Topic: XSPEC and XSLT issue
Replies: 33
Views: 10385

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

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

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 specific xml fragment throu...
by radu_pisoi
Fri Apr 24, 2015 11:12 am
Forum: SDK-API, Frameworks - Document Types
Topic: XSPEC and XSLT issue
Replies: 33
Views: 10385

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

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

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 special mechanism designe...
by radu_pisoi
Wed Apr 01, 2015 2:01 pm
Forum: XML Schemas
Topic: Multi-file Schematron architecture
Replies: 7
Views: 6058

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

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...
by radu_pisoi
Tue Jan 13, 2015 5:51 pm
Forum: XML Schemas
Topic: Unique attribute value within grandparent element
Replies: 1
Views: 1857

Re: Unique attribute value within grandparent element

Hi, One of the problems that I have seen is that you use absolute XPath expressions in the assert/@test attribute, for instance '//street//fact'. The previous expression will returns all the 'fact' elements from the entire document not only from the current 'city' element matched by the rule. Anothe...
by radu_pisoi
Mon Jan 05, 2015 6:43 pm
Forum: Common Problems
Topic: Check Relax NG Grammar with Schematron?
Replies: 5
Views: 2083

Re: Check Relax NG Grammar with Schematron?

Hi Frank, However, i was unable to assign the schematron schema to the Relax NG Document. The Menu Item for "Assign Schema" is grayed out. This action was disabled deliberately because there are some situations when it could be used erroneously. For instance, I think there is no reason to associate ...
by radu_pisoi
Tue Dec 23, 2014 1:19 pm
Forum: Feature Request
Topic: Smart edit in xstl stylesheets based on schema components
Replies: 3
Views: 2275

Re: Smart edit in xstl stylesheets based on schema component

Hi Frank, Thank you for your suggestions and sorry for the delay. The content completion driven by the XML Schema when proposing input elements in an XSLT script is indeed a feature that currently is missing in oXygen. Also, the schema-aware editing support is not available. The schema-element(), el...