Search found 264 matches
- Mon May 19, 2014 12:51 pm
- Forum: SDK-API, Frameworks - Document Types
- Topic: findNodesByXPath within referenced content not working
- Replies: 2
- Views: 1436
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...
- Mon May 19, 2014 7:50 am
- Forum: SDK-API, Frameworks - Document Types
- Topic: custom authorOperation without changing the document
- Replies: 3
- Views: 1565
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...
- Fri May 16, 2014 2:02 pm
- Forum: SDK-API, Frameworks - Document Types
- Topic: custom authorOperation without changing the document
- Replies: 3
- Views: 1565
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...
- Fri Apr 11, 2014 9:19 am
- Forum: SDK-API, Frameworks - Document Types
- Topic: AuthorDocumentController.evaluateXPath with custom extension
- Replies: 1
- Views: 1253
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...
- 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: 3596
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 ...
- 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: 3596
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...
- 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: 3596
Re: Custom framework: copy&paste and auto id behavior
Hi Radu,
Thanks for the tip - this indeed is very comfortable.
Patrik
Thanks for the tip - this indeed is very comfortable.
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: 3596
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...
- 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: 3596
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...
- Mon Mar 31, 2014 12:28 pm
- Forum: SDK-API, Frameworks - Document Types
- Topic: Get master file url through api
- Replies: 3
- Views: 1651
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...
- Mon Mar 31, 2014 11:35 am
- Forum: SDK-API, Frameworks - Document Types
- Topic: Get master file url through api
- Replies: 3
- Views: 1651
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
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
- Fri Mar 28, 2014 1:34 pm
- Forum: SDK-API, Frameworks - Document Types
- Topic: Access to ExtensionBundle from XSLT/Schematron
- Replies: 4
- Views: 3514
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...
- Tue Mar 25, 2014 9:25 am
- Forum: SDK-API, Frameworks - Document Types
- Topic: Access to ExtensionBundle from XSLT/Schematron
- Replies: 4
- Views: 3514
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...
- Fri Feb 28, 2014 1:40 pm
- Forum: XML Schemas
- Topic: Embedded schematron: problem with pattern/@name and value-of
- Replies: 2
- Views: 3311
Re: Embedded schematron: problem with pattern/@name and valu
Hi Radu,
this solved my problem. Thanks again.
Patrik
this solved my problem. Thanks again.
Patrik
- Fri Feb 28, 2014 9:48 am
- Forum: XML Schemas
- Topic: Embedded schematron: problem with pattern/@name and value-of
- Replies: 2
- Views: 3311
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/...
- Tue Feb 25, 2014 9:08 am
- Forum: SDK-API, Frameworks - Document Types
- Topic: XSLTOperation replacing the root element not working
- Replies: 2
- Views: 1908
Re: XSLTOperation replacing the root element not working
Hi Alex,
thanks alot - it worked on the first try. :)
Regards,
Patrik
thanks alot - it worked on the first try. :)
Regards,
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: 1908
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 ...
- Mon Jan 13, 2014 1:04 pm
- Forum: XSLT and FOP
- Topic: Apache-fop: hyphenation for identifiers
- Replies: 5
- Views: 2485
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...
- Wed Dec 04, 2013 11:19 am
- Forum: XSLT and FOP
- Topic: Apache-fop: hyphenation for identifiers
- Replies: 5
- Views: 2485
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...
- Wed Dec 04, 2013 8:53 am
- Forum: XML Schemas
- Topic: Adding attribute for root-type in derived schema
- Replies: 3
- Views: 5191
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
- Mon Dec 02, 2013 3:52 pm
- Forum: XML Schemas
- Topic: Adding attribute for root-type in derived schema
- Replies: 3
- Views: 5191
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...
- Fri Nov 29, 2013 1:24 pm
- Forum: Feature Request
- Topic: oxy_editor: editing parent attributes
- Replies: 1
- Views: 1530
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...
- Thu Nov 28, 2013 3:26 pm
- Forum: XSLT and FOP
- Topic: xslt transformation from within xst
- Replies: 3
- Views: 1633
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
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
- Thu Nov 28, 2013 11:48 am
- Forum: XSLT and FOP
- Topic: xslt transformation from within xst
- Replies: 3
- Views: 1633
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...