Search found 236 matches

by Patrik
Tue Jul 14, 2015 10:25 am
Forum: Other Issues
Topic: overriding display of certain elements in Author View
Replies: 9
Views: 2988

Re: overriding display of certain elements in Author View

Hi Toma, I once did something similar for DITA (didn't discard the approach - just postponed it): xml sample code <xml-codeblock> <Root> <Element>Text</Element> <Element>More Text</Element> <Element/> </Root> </xml-codeblock> css xml-codeblock { display: block; font-family: "Courier New", monospace;...
by Patrik
Fri Jul 03, 2015 8:07 am
Forum: XML Schemas
Topic: Default attribute manifestation in Schematron Quick Fixes
Replies: 7
Views: 3631

Re: Default attribute manifestation in Schematron Quick Fixe

There's yet another approach that I used successfully and to keep default attributes from the output and that works with any schema (dtd, xsd or rng): Load the input document without expanding default attributes into a seperate variable. Create an xpath expression to the node you want to process. Ap...
by Patrik
Tue Jun 30, 2015 10:14 am
Forum: XML Schemas
Topic: Default attribute manifestation in Schematron Quick Fixes
Replies: 7
Views: 3631

Re: Default attribute manifestation in Schematron Quick Fixe

Hi, an alternative might be not to expand the default attributes but access them from the schema. I implement a function for that: <xsl:function name="my:GetAttributeDefaultValue" as="xs:string?"> <xsl:param name="Element" as="element()"/> <xsl:param name="AttributeName" as="xs:string"/> <xsl:variab...
by Patrik
Fri Jun 26, 2015 12:16 pm
Forum: XML Schemas
Topic: Providing the same sqf:fix for multiple reports
Replies: 2
Views: 2211

Providing the same sqf:fix for multiple reports

Hi, I have following schematron rule with quick-fixes: <sch:rule context="Element[text()]"> <sch:report test="matches(text(), '^\s')" sqf:fix="remove-leading-spaces normalize-spaces"> Leading spaces! </sch:report> <sch:report test="matches(text(), '\s+')" sqf:fix="remove-multiple-spaces normalize-sp...
by Patrik
Thu Jun 18, 2015 11:24 am
Forum: Feature Request
Topic: CSS Pseudo-Element "inner(n)"
Replies: 8
Views: 3257

Re: CSS Pseudo-Element "inner(n)"

Hi Radu, I already have proper workaround for both cases: For the first one I just added the header-elements to xsd as mandatory elements so they are added automatically as guess elements. For the second one I use :before with oxy_label() as content using fixed width. Just was thinking on a way to m...
by Patrik
Thu Jun 18, 2015 10:09 am
Forum: Feature Request
Topic: CSS Pseudo-Element "inner(n)"
Replies: 8
Views: 3257

CSS Pseudo-Element "inner(n)"

Hi, on the users meetup George said you will (probably) add the pseudo-element "outer" in the next release. Now I'd like to get apseudo-element "inner" as well. Use-case 1 Consider this xml <List> <Entry> <Name>1st Parameter</Name> <Value>1111</Value> </Entry> <Entry> <Name>2nd Parameter</Name> <Val...
by Patrik
Wed Jun 17, 2015 9:06 am
Forum: Feature Request
Topic: Improve xslt-refactoring: exclude template
Replies: 3
Views: 2220

Improve xslt-refactoring: exclude template

Hi, I have suggestions for improving the xslt refactoring feature "exclude template" (or however the original name is): Don't add global variables/parameter to the parameter list of the template - they are available within the template anyway. For variables/parameters with a type (= @as-attribute) a...
by Patrik
Mon Jun 15, 2015 9:43 am
Forum: Feature Request
Topic: AuthorActionGroup-Button
Replies: 2
Views: 1657

Re: AuthorActionGroup-Button

Great, Thanks.
Patrik
by Patrik
Sat Jun 13, 2015 3:42 pm
Forum: Feature Request
Topic: AuthorActionGroup-Button
Replies: 2
Views: 1657

AuthorActionGroup-Button

Hi, when placing too many action-buttons (using css) in a document then the clarity might drop. So it might be an idea to group similar actions within one popup-button that will list the containing actions when you click on it - similar to a sub-menu. This could also help for the guided authoring of...
by Patrik
Fri Jun 12, 2015 4:29 pm
Forum: Common Problems
Topic: Error message: Cannot insert text inside read-only context
Replies: 6
Views: 2265

Re: Error message: Cannot insert text inside read-only conte

Sorry, I can't help you there, so you'll have to wait for the support...

Patrik
by Patrik
Fri Jun 12, 2015 8:27 am
Forum: Common Problems
Topic: Error message: Cannot insert text inside read-only context
Replies: 6
Views: 2265

Re: Error message: Cannot insert text inside read-only conte

Hi Carole, keeping the author from editing read-only conent is a pure author-mode-feature that can be set within the css. So it's not surprising that you can still edit this in text-mode. To understand the problem you need to provide more information where exactly you're trying to edit text content....
by Patrik
Tue Jun 02, 2015 3:18 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Extended frameworks buggy after modifications to base
Replies: 1
Views: 1141

Extended frameworks buggy after modifications to base

Hi, I have a custom base-framework and three additional ones that are extensions of my base-framework. Now it apperars from time to time that an AuthorOperation in an extended framework no more works because some parameters are wrong - either because a parameter from the base-frameworks has NOT been...
by Patrik
Tue Jun 02, 2015 9:19 am
Forum: XML Schemas
Topic: SQF XInclude problem
Replies: 2
Views: 2185

SQF XInclude problem

Hi, I just made the following experiment with sqf in combination with xinclude: main.xml: <Root xmlns:xi="http://www.w3.org/2001/XInclude"> <xi:include href="included.xml"/> <Element>2</Element> </Root> included.xml: <Element>3</Element> schematron with sqf: <sch:pattern> <sch:rule context="Element[...
by Patrik
Thu May 28, 2015 8:38 pm
Forum: XML Schemas
Topic: QuickFix doesn't resolve substitution groups for missing ele
Replies: 4
Views: 3071

Re: QuickFix doesn't resolve substitution groups for missing

Hi Octavian, thanks for adding the issue. About the sqf: You don't have to specify a target for adding a new element. You can simply call an xslt function in the select attribute - I just tested it: <xsl:function name="my:newElement" as="element()"> <xsl:param name="Name" as="xs:string"/> <xsl:eleme...
by Patrik
Thu May 28, 2015 10:53 am
Forum: XML Schemas
Topic: QuickFix doesn't resolve substitution groups for missing ele
Replies: 4
Views: 3071

QuickFix doesn't resolve substitution groups for missing ele

Hi, in my xml schema I'm using substitution groups, for instance "StandardSectionElement" which itself is an abstract element but p, ul, sl, ...are added to it as substitution elements. A section should contain at least a single StandardSectionElement after the title. Now for a section with only a t...
by Patrik
Tue May 26, 2015 12:13 pm
Forum: SDK-API, Frameworks - Document Types
Topic: createXSLTTransformer with custom configuration
Replies: 5
Views: 2197

Re: createXSLTTransformer with custom configuration

Hi Radu, that's what I already did. Furthermore I store the baseCondifuration in a static variable to get it only once: if (baseConfiguration == null) { final String dummyXsl = "<xsl:transform xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" version=\"1.0\"/>"; TransformerImpl temp = (TransformerI...
by Patrik
Tue May 26, 2015 11:51 am
Forum: SDK-API, Frameworks - Document Types
Topic: createXSLTTransformer with custom configuration
Replies: 5
Views: 2197

Re: createXSLTTransformer with custom configuration

Hi Radu,

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

Re: createXSLTTransformer with custom configuration

Hi Radu,

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

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

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="xs:integer"> <gui:optio...
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: 2964

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

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 extensionE...
by Patrik
Fri May 08, 2015 10:43 am
Forum: Common Problems
Topic: Schematron issue validating conrefs
Replies: 3
Views: 1075

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 as well. R...
by Patrik
Fri May 08, 2015 8:33 am
Forum: Common Problems
Topic: Schematron issue validating conrefs
Replies: 3
Views: 1075

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

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
by Patrik
Tue May 05, 2015 8:39 am
Forum: Common Problems
Topic: Editing file will change location in Find results
Replies: 5
Views: 1643

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

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

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
by Patrik
Mon May 04, 2015 1:02 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Automatically add specific optional elements
Replies: 17
Views: 7633

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

Re: Automatically add specific optional elements

Hi Radu,

your suggested solution with the classpath works fine and feels good. Thanks again.

Patrik