Search found 236 matches

by Patrik
Wed May 21, 2014 11:22 am
Forum: SDK-API, Frameworks - Document Types
Topic: Oxygen 16.0: css-link overwrites oxy_button
Replies: 3
Views: 1541

Oxygen 16.0: css-link overwrites oxy_button

Hi, i have added some buttons by css to the header of references: oxy|reference[href]:before { content: url(../img/editContent.gif) oxy_label(...) oxy_button(actionID, "refresh.reference", transparent, true, showIcon, true) oxy_button(actionID, "reference.expand.this", transparent, true, showIcon, t...
by Patrik
Wed May 21, 2014 10:43 am
Forum: XML Schemas
Topic: schematron no more schema aware in Oxygen 16.0
Replies: 4
Views: 4045

schematron no more schema aware in Oxygen 16.0

Hi, I just installed Oxygen 16.0 to test the schematron-quick-fix (nice feature - thanks a lot for that). However, it appears that the validation is no more schema aware. Since some patterns evaluate the class-attribute they no more work. I also tested it with <value-of select="@class"/> inside the ...
by Patrik
Mon May 19, 2014 12:51 pm
Forum: SDK-API, Frameworks - Document Types
Topic: findNodesByXPath within referenced content not working
Replies: 2
Views: 1187

findNodesByXPath within referenced content not working

Hi, from within my reference resolver I'm using the method AuthorDocumentController.findNodesByXPath() and this usually works fine. However, when I include this file with xinclude in another file the reference can no more be resolved because findNodesByXPath returns an empty array. My xpath is somet...
by Patrik
Mon May 19, 2014 7:50 am
Forum: SDK-API, Frameworks - Document Types
Topic: custom authorOperation without changing the document
Replies: 3
Views: 1237

Re: custom authorOperation without changing the document

Hi Alex, thanks for the tip. This works fine and we can live with the drawback. Now another question in this context: We have two css styles. "edit" to display additional buttons and text helping the author and "output" being as close to the final output as possible. Now in "output" I'd like to have...
by Patrik
Fri May 16, 2014 2:02 pm
Forum: SDK-API, Frameworks - Document Types
Topic: custom authorOperation without changing the document
Replies: 3
Views: 1237

custom authorOperation without changing the document

Hi, since I have quite a lot references that are resolved at runtime by a ReferenceResolver (e.g. by performaing an xslt transformation) I implemented a feature to expand/collapse a single or all content references in a document to improve the performance. This is invoked by AuthorOperations added w...
by Patrik
Fri Apr 11, 2014 9:19 am
Forum: SDK-API, Frameworks - Document Types
Topic: AuthorDocumentController.evaluateXPath with custom extension
Replies: 1
Views: 1034

AuthorDocumentController.evaluateXPath with custom extension

Hi, in my custom frameworks I'm using xpath expressions defined as fixed attributes within the xsd that need to be evaluated when working with the document. When the document is beeing processed for pdf output or transformations with saxon xslt I can use my own extension functions within these xpath...
by Patrik
Mon Apr 07, 2014 2:27 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Custom framework: copy&paste and auto id behavior
Replies: 10
Views: 2955

Re: Custom framework: copy&paste and auto id behavior

Hi Radu, I used AuthorElement.setAttribute(String, AttrValue) rather than AuthorDocumentController.setAttribute(String, AttrValue, AuthorElement). Making the changes undoable and marking the document as modified is not necessary, however, using the document controller it's working now. Thanks again ...
by Patrik
Mon Apr 07, 2014 9:08 am
Forum: SDK-API, Frameworks - Document Types
Topic: Custom framework: copy&paste and auto id behavior
Replies: 10
Views: 2955

Re: Custom framework: copy&paste and auto id behavior

Hi Radu, I just implemented the recreation for @id on new documents within AuthorExtensionStateListener.activated simply by going recursively through all elements and set all existing id-attributes. This works fine and looks good in author mode. However, when switching to text mode the ids are not c...
by Patrik
Tue Apr 01, 2014 8:42 am
Forum: SDK-API, Frameworks - Document Types
Topic: Custom framework: copy&paste and auto id behavior
Replies: 10
Views: 2955

Re: Custom framework: copy&paste and auto id behavior

Hi Radu,

Thanks for the tip - this indeed is very comfortable.

Patrik
by Patrik
Tue Apr 01, 2014 8:03 am
Forum: SDK-API, Frameworks - Document Types
Topic: Custom framework: copy&paste and auto id behavior
Replies: 10
Views: 2955

Re: Custom framework: copy&paste and auto id behavior

Hi Radu, for 1. I will experiment witrh the callbacks you suggested. This should solve the problem... For 2&3: Indeed. Both, the rendering and the id generation, is working when selecting the content in the author view. So that's already a workaround. However, it is much easier to precisely select a...
by Patrik
Mon Mar 31, 2014 3:08 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Custom framework: copy&paste and auto id behavior
Replies: 10
Views: 2955

Custom framework: copy&paste and auto id behavior

Hi, I'm having some issues in my custom framework derived from DITA. I can't see what I'm doing differently form the standard dita framework - still there it works and in my framework it doesn't!? 1. Ids for new documents When creating a new document from a template the ids are not generated through...
by Patrik
Mon Mar 31, 2014 12:28 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Get master file url through api
Replies: 3
Views: 1361

Re: Get master file url through api

Hi Radu, I'm adding a certain xml document to the Master Files folder - always a single one. Background: My caching class needs to know the master file to cache the data of all includes files. With the cached data and access to it from schematron I can validate each xml file seperatley in a global c...
by Patrik
Mon Mar 31, 2014 11:35 am
Forum: SDK-API, Frameworks - Document Types
Topic: Get master file url through api
Replies: 3
Views: 1361

Get master file url through api

Hi,

I need to know the master file url from within my extension bundle but can't find a method returning it!?

Thanks and regards,

Patrik
by Patrik
Fri Mar 28, 2014 1:34 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Access to ExtensionBundle from XSLT/Schematron
Replies: 4
Views: 3099

Re: Access to ExtensionBundle from XSLT/Schematron

Hi Radu, thanks for the explanation. I've split my library now and copied one part including the caching class to the oxygen/lib folder. Now everything works like a charm - even making complete nodes I already have cached available to schematron and xslt. The trouble getting this lib installed among...
by Patrik
Tue Mar 25, 2014 9:25 am
Forum: SDK-API, Frameworks - Document Types
Topic: Access to ExtensionBundle from XSLT/Schematron
Replies: 4
Views: 3099

Access to ExtensionBundle from XSLT/Schematron

Hi, I've implemented an ExtensionBundle (derived from DITAExtensionsBundle) which - besides others - caches some data from the current book to be used in the styles filter, author operations, ... Now I'd like to have access to this data from within my transformations and schematron validation as wel...
by Patrik
Fri Feb 28, 2014 1:40 pm
Forum: XML Schemas
Topic: Embedded schematron: problem with pattern/@name and value-of
Replies: 2
Views: 2927

Re: Embedded schematron: problem with pattern/@name and valu

Hi Radu,

this solved my problem. Thanks again.

Patrik
by Patrik
Fri Feb 28, 2014 9:48 am
Forum: XML Schemas
Topic: Embedded schematron: problem with pattern/@name and value-of
Replies: 2
Views: 2927

Embedded schematron: problem with pattern/@name and value-of

Hi, i just changed to oxygen 15.2 and got now errors within my xsd-embedded schemtron rules: [Schematron 1.5] cvc-complex-type.4: Attribute 'name' must appear on element 'sch:pattern' [Schematron 1.5] cvc-complex-type.2.4.a: Invalid content was found starting with element '{"http://www.ascc.net/xml/...
by Patrik
Tue Feb 25, 2014 9:08 am
Forum: SDK-API, Frameworks - Document Types
Topic: XSLTOperation replacing the root element not working
Replies: 2
Views: 1468

Re: XSLTOperation replacing the root element not working

Hi Alex,

thanks alot - it worked on the first try. :)

Regards,

Patrik
by Patrik
Mon Feb 24, 2014 3:13 pm
Forum: SDK-API, Frameworks - Document Types
Topic: XSLTOperation replacing the root element not working
Replies: 2
Views: 1468

XSLTOperation replacing the root element not working

Hi, I want to apply an XSLTOperation on the root element replacing the previous one. I don't get any error messages but the content is not being replaced. I guess there is a special behavior required in TransformOperation for the case that the root node needs to be replaced instead of the following ...
by Patrik
Mon Jan 13, 2014 1:04 pm
Forum: XSLT and FOP
Topic: Apache-fop: hyphenation for identifiers
Replies: 3
Views: 1644

Re: Apache-fop: hyphenation for identifiers

Hi Sorin, finally I'm back to this topic... Thanks for your replay, but we found no easy way to formulate suitable hyphenation patterns. However, we found another solution that works fine for us so far (in case, someone else has this problem): In the transformation for the fop-generation we add an a...
by Patrik
Wed Dec 04, 2013 11:19 am
Forum: XSLT and FOP
Topic: Apache-fop: hyphenation for identifiers
Replies: 3
Views: 1644

Apache-fop: hyphenation for identifiers

Hi, since one use-case of oxygen is writing specifications in a dita-derived document-type we have lots of identifiers in our texts. For these the standrd hyphenation patterns are not sufficient. For instance identifieres like THIS_IS_AN_IDENTIFIER or ThisIsAnIdentifier. Suitable hyphenatin points w...
by Patrik
Wed Dec 04, 2013 8:53 am
Forum: XML Schemas
Topic: Adding attribute for root-type in derived schema
Replies: 3
Views: 4654

Re: Adding attribute for root-type in derived schema

Thanks alot to both of you. Since I want to avoid having to copy (and maintain) the original attributes in the new definition I sticked to redefine according your desctiption and it works - without warning! :-) (Still good to know about the override element - will surely use it soon.) Regards, Patrik
by Patrik
Mon Dec 02, 2013 3:52 pm
Forum: XML Schemas
Topic: Adding attribute for root-type in derived schema
Replies: 3
Views: 4654

Adding attribute for root-type in derived schema

Hi, I have two document types: 1. for generic documents (a specialization of dita) 2. for specifications In the first one for instance the topic and section elements (and several others) have the attribute audience. I realizes this by deriving these types from a common base type containing these att...
by Patrik
Fri Nov 29, 2013 1:24 pm
Forum: Feature Request
Topic: oxy_editor: editing parent attributes
Replies: 1
Views: 1330

oxy_editor: editing parent attributes

Hi, in my dita-derived docmuent type I'd like to ake the attributes @audience, @product and others visible and editable with oxy_popup (provided they are already set). Now in several cases the suitable place for these markers is not right before or after the element but after the first child element...
by Patrik
Thu Nov 28, 2013 3:26 pm
Forum: XSLT and FOP
Topic: xslt transformation from within xst
Replies: 3
Views: 1366

Re: xslt transformation from within xst

Hi Radu,

the idea with my own extension function for saxon I also already tried but failed to get it working. However, now I discovered the existing extension function saxon:transform which does just what I was looking for...

Thanks

Patrik
by Patrik
Thu Nov 28, 2013 11:48 am
Forum: XSLT and FOP
Topic: xslt transformation from within xst
Replies: 3
Views: 1366

xslt transformation from within xst

Hi, I extended the dita conref to an XsltConref which adds an xslt transformation to the referred content before displaying it. In the author view I implemented my own ReferenceResolver and it works fine. Now I want to generate a pdf with fop from my document so I have to resolve the XsltConref with...