Search found 280 matches
- by Patrik
- Tue May 26, 2015 11:51 am
- Forum: SDK-API, Frameworks - Document Types
- Topic: createXSLTTransformer with custom configuration
- Replies: 5
- Views: 3269
Re: createXSLTTransformer with custom configuration
Hi Radu,
I implemented it now the way you suggested and it works fine. :)
Thanks again,
Patrik
I implemented it now the way you suggested and it works fine. :)
Thanks again,
Patrik
- by Patrik
- Thu May 21, 2015 6:22 pm
- Forum: SDK-API, Frameworks - Document Types
- Topic: createXSLTTransformer with custom configuration
- Replies: 5
- Views: 3269
Re: createXSLTTransformer with custom configuration
Hi Radu,
sounds like a great workaround. Will try that...
Thanks,
Patrik
sounds like a great workaround. Will try that...
Thanks,
Patrik
- by Patrik
- Thu May 21, 2015 1:57 pm
- Forum: SDK-API, Frameworks - Document Types
- Topic: createXSLTTransformer with custom configuration
- Replies: 5
- Views: 3269
createXSLTTransformer with custom configuration
Hi, I would like to change some transformer configurations for XsltOperations. I already implemented my own AuthorOperation-class for it and replaced the XMLUtilAccess.createXSLTTransformer() with the constrution of a saxon transformer. However, when running it, the messages and errors are not displ...
- by Patrik
- Wed May 20, 2015 12:07 pm
- Forum: SDK-API, Frameworks - Document Types
- Topic: Opening dialog boxes from xslt - It works!
- Replies: 4
- Views: 4193
Re: Opening dialog boxes from xslt - It works!
Just for completeness: One use-cases would be a transformation that potentially overwrites an existing file and asks the user before doing so (if the file already exists). The code looks like this: <xsl:if test="java:fileExists($myFile)"> <xsl:variable name="userDecision" as=&quo...
- by Patrik
- Tue May 19, 2015 2:43 pm
- Forum: SDK-API, Frameworks - Document Types
- Topic: Opening dialog boxes from xslt - It works!
- Replies: 4
- Views: 4193
Opening dialog boxes from xslt - It works!
Hi, I lately implmeented a custom saxon instruction that allows to create a a message box or option dialog from within an XSLT. Since it turned out to be pretty easy to implement and very useful within my framework, I just wanted to share this idea - and the joy over oxygen, that even this is possib...
- by Patrik
- Mon May 11, 2015 9:07 am
- Forum: SDK-API, Frameworks - Document Types
- Topic: saxon/annotatedConfig.xsd: multiple extensionElement element
- Replies: 1
- Views: 1741
saxon/annotatedConfig.xsd: multiple extensionElement element
Hi, I think there's a bug in saxon/annotatedConfig.xsd: Within xslt element it expects exactly one occurance of extensionElement while the saxon documentation says: "The xslt element may contain one or more extensionElement children defining namespaces used for extension instructions. The exten...
- by Patrik
- Fri May 08, 2015 10:43 am
- Forum: Common Problems
- Topic: Schematron issue validating conrefs
- Replies: 3
- Views: 1789
Re: Schematron issue validating conrefs
I checked again and can confirm that for me the schematron validation doesn't apply to (standard-)conrefs as well. We just have a special use-case for a "copy-conref" where the referenced content is (automatically) copied into the document. And there - of course - the content is validated ...
- by Patrik
- Fri May 08, 2015 8:33 am
- Forum: Common Problems
- Topic: Schematron issue validating conrefs
- Replies: 3
- Views: 1789
Re: Schematron issue validating conrefs
Hi Bryan not sure about your problem with conref (from my experience, schematron validation applies to conrefs as well). But assuming you simply want to check that the attribute of a note element contains one of the valid values, your code is wrong: It checks for the existence of an additional note ...
- by Patrik
- Tue May 05, 2015 11:26 am
- Forum: SDK-API, Frameworks - Document Types
- Topic: findNodesByXPath within resolveReference unreliable
- Replies: 3
- Views: 2864
Re: findNodesByXPath within resolveReference unreliable
Hi Alex,
this was just a minimized sample to demonstrate the problem. In my actual use-case I need to execute more complex xpath expressions (specified as default attributes of the element).
Patrik
this was just a minimized sample to demonstrate the problem. In my actual use-case I need to execute more complex xpath expressions (specified as default attributes of the element).
Patrik
- by Patrik
- Tue May 05, 2015 8:39 am
- Forum: Common Problems
- Topic: Editing file will change location in Find results
- Replies: 5
- Views: 2548
Re: Editing file will change location in Find results
Hi Ajuan, I think the problem is that each entry listed in the Results tabs holds its own position (line and column). Now when adding or removing lines, the content below it shifted and the stored positions differ from the actual positions... A simple workaround would be to process the results list ...
- by Patrik
- Tue May 05, 2015 8:30 am
- Forum: SDK-API, Frameworks - Document Types
- Topic: findNodesByXPath within resolveReference unreliable
- Replies: 3
- Views: 2864
findNodesByXPath within resolveReference unreliable
Hi, I implemented my own ValidatingAuthorReferenceResolver class (derived from DITAConRefResolver) and need to use findNodesByXPath inside resolveReference. In priciple this works fine but when the reference is resolved for the first time (after adding the element to be resolved or modifying in in t...
- by Patrik
- Tue May 05, 2015 7:39 am
- Forum: SDK-API, Frameworks - Document Types
- Topic: Automatically add specific optional elements
- Replies: 17
- Views: 11876
Re: Automatically add specific optional elements
Hi Radu,
overriding the set/getAttributes methods in my already existing class BasicCIElement indeed solved that problem.
Thanks
Patrik
overriding the set/getAttributes methods in my already existing class BasicCIElement indeed solved that problem.
Thanks
Patrik
- by Patrik
- Mon May 04, 2015 1:02 pm
- Forum: SDK-API, Frameworks - Document Types
- Topic: Automatically add specific optional elements
- Replies: 17
- Views: 11876
Re: Automatically add specific optional elements
Hi again, I just noticed that there is another problem when using this in author mode: the additional guess element is not rendered correctly until a refresh. In your original example with the title element in section this means that the text you enter is not being bold (In my use-cases the differen...
- by Patrik
- Mon May 04, 2015 11:24 am
- Forum: SDK-API, Frameworks - Document Types
- Topic: Automatically add specific optional elements
- Replies: 17
- Views: 11876
Re: Automatically add specific optional elements
Hi Radu,
your suggested solution with the classpath works fine and feels good. Thanks again.
Patrik
your suggested solution with the classpath works fine and feels good. Thanks again.
Patrik
- by Patrik
- Mon May 04, 2015 9:27 am
- Forum: SDK-API, Frameworks - Document Types
- Topic: Automatically add specific optional elements
- Replies: 17
- Views: 11876
Re: Automatically add specific optional elements
Hi Radu, Thanks for your thoughts. I'm using an xml file as configuration now and it works fine. If it turns out to be usefull I will follow your suggestion and replace this xml file by the result of an xsl transformation from the xml schema. So for me there's no need for any improvement from your s...
- by Patrik
- Thu Apr 30, 2015 3:48 pm
- Forum: SDK-API, Frameworks - Document Types
- Topic: Automatically add specific optional elements
- Replies: 17
- Views: 11876
Re: Automatically add specific optional elements
Hi Radu, I had no previous discussions about this yet. But I already had a customized SchemaManagerFilter - not for adding guessElement, though. With your code I could make it work adding a specific optional element. Thanks for that. :) However, I'm still looking for a comfortable way to mark the &q...
- by Patrik
- Thu Apr 30, 2015 9:24 am
- Forum: SDK-API, Frameworks - Document Types
- Topic: Automatically add specific optional elements
- Replies: 17
- Views: 11876
Automatically add specific optional elements
Hi, When I insert a new element oXygen will add all mandatory child elements as well, which is very nice. Now It occurs increasingly often that I add new elements to the xsd. To be downward compatible (i.e. not having to adapt all older documents), I don't want these new elements to be mandatory. Bu...
- by Patrik
- Tue Apr 28, 2015 4:16 pm
- Forum: SDK-API, Frameworks - Document Types
- Topic: Load xml file "weak"-schema-aware
- Replies: 4
- Views: 2522
Re: Load xml file "weak"-schema-aware
Thanks for the documentation. It worked but I realized that I need the to resolve the xincludes. However, adding an empty fallback in all xincludes is a sufficient alternative.
Regards,
Patrik
Regards,
Patrik
- by Patrik
- Tue Apr 28, 2015 2:27 pm
- Forum: SDK-API, Frameworks - Document Types
- Topic: Load xml file "weak"-schema-aware
- Replies: 4
- Views: 2522
Re: Load xml file "weak"-schema-aware
Hi Alex, thanks for the code. It works nicely for the common validation errors (missing elements, dublicate ids). But a failed xinclude still aborts loading the file. Is there maybe a way to keep the xincludes from being resolved at all? I could easily do this in my own java code. BTW: The class Par...
- by Patrik
- Sat Apr 25, 2015 4:44 pm
- Forum: SDK-API, Frameworks - Document Types
- Topic: Load xml file "weak"-schema-aware
- Replies: 4
- Views: 2522
Load xml file "weak"-schema-aware
Hi, I'm using ParserCreator.newSchemaAwareDocumentBuilder() to load the complete book in my custom framework from java. Now it occurs quite often, that a small (and easily recoverable) bug in the xml code (non-unique id, missing included file, missing mandatory element, ...) keeps the file from bein...
- by Patrik
- Tue Apr 14, 2015 7:37 am
- Forum: General XML Questions
- Topic: check schema for fixed attribute
- Replies: 7
- Views: 5016
Re: check schema for fixed attribute
Hi Lionel, you could load the file schema-aware. This way all the default and fixed attributes are expanded. But you won't be able to identify if an attribute was already set in the xml or has been added as default attribute. Here's my (simplified) code to do this: import javax.xml.parsers.DocumentB...
- by Patrik
- Fri Apr 10, 2015 9:31 am
- Forum: Common Problems
- Topic: NPE when validating during automatic validation
- Replies: 2
- Views: 1474
Re: NPE when validating during automatic validation
Hi Ionela,
I created a simplified sample that produces this behavior reliably on 16.0. However, with Oxygen 16.1 (which I installed parallel for tests) the error no more occurs. So I hope the problem will be solved when we all move on to Oxygen 17.0.
Thanks and regards,
Patrik
I created a simplified sample that produces this behavior reliably on 16.0. However, with Oxygen 16.1 (which I installed parallel for tests) the error no more occurs. So I hope the problem will be solved when we all move on to Oxygen 17.0.
Thanks and regards,
Patrik
- by Patrik
- Fri Apr 10, 2015 9:15 am
- Forum: Common Problems
- Topic: Unspecific schematron message with inconsistent schemaLocati
- Replies: 4
- Views: 2172
- by Patrik
- Fri Apr 10, 2015 8:04 am
- Forum: Common Problems
- Topic: Unspecific schematron message with inconsistent schemaLocati
- Replies: 4
- Views: 2172
Re: Unspecific schematron message with inconsistent schemaLo
Hi Octavian, the behavior occurs on both my installation: 16.0 (build 2014070913) and 16.1 (build 2014112517), but only with "Use Saxon EE (schema aware) for xslt2 query binding" enabled. Unchecking this setting the schematron validation is being executed successfully. Thanks and regards, ...
- by Patrik
- Thu Apr 09, 2015 9:47 am
- Forum: Common Problems
- Topic: NPE when doing document type validation with invalid xsd
- Replies: 3
- Views: 1562
Re: NPE when doing document type validation with invalid xsd
Just for the record: It turned out that quite some additional conditions had to be metto produce this error. I sent a sample by email.
Regards,
Patrik
Regards,
Patrik
- by Patrik
- Thu Apr 09, 2015 8:27 am
- Forum: XML Schemas
- Topic: Add exception handling to schematron
- Replies: 3
- Views: 3995
Re: Add exception handling to schematron
Hi Tavy, keeping queryBinding on xslt2 and adding an additional parameter "exception-handling" instead indeed solved this problem. Thanks for that. Unfortunately, now the next problem arised: When executing the generated script during validation, document('') does not return the xslt code ...
- by Patrik
- Wed Apr 08, 2015 11:30 am
- Forum: Common Problems
- Topic: Unspecific schematron message with inconsistent schemaLocati
- Replies: 4
- Views: 2172
Unspecific schematron message with inconsistent schemaLocati
Following (invalid but still occuring) scenario: Root.xml: <Root xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns:xi = "http://www.w3.org/2001/XInclude" xsi:noNamespaceSchemaLocation="Root.xsd"> <xi:include href="Child.xml"/> </Root> Child.xml: <C...
- by Patrik
- Wed Apr 08, 2015 10:50 am
- Forum: Common Problems
- Topic: NPE when doing document type validation with invalid xsd
- Replies: 3
- Views: 1562
NPE when doing document type validation with invalid xsd
Hi, when I validate an xml document against an invalid schema (xsd) I usually get error messages about the error in the schema, which is what I'd expect. However, when I'm validating an xml document using a validation scenario configured in a framework that uses an invalid schema, I get a message bo...
- by Patrik
- Wed Apr 08, 2015 10:13 am
- Forum: Common Problems
- Topic: NPE when validating during automatic validation
- Replies: 2
- Views: 1474
NPE when validating during automatic validation
Hi, Since we have quite large files and complex validation scenarios (including several schematron rules) the validation can take some seconds. Now when opening a document the automatic validation starts. When starting a validation manually before the automatic one has completed I get a message box ...
- by Patrik
- Wed Apr 08, 2015 9:58 am
- Forum: XML Schemas
- Topic: Add exception handling to schematron
- Replies: 3
- Views: 3995
Add exception handling to schematron
Hi, currently it can be quite difficult to find the responsible code when an exception occurs during schematron validation. Thus, I modified the skeleton script to support queryBinding "xslt3". In this mode the execution of each pattern is surrounded by an xsl:try. In the xsl:catch it repo...
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service