Search found 280 matches

by Patrik
Tue Feb 10, 2015 9:26 am
Forum: Feature Request
Topic: Smart edit in xstl stylesheets based on schema components
Replies: 3
Views: 3365

Re: Smart edit in xstl stylesheets based on schema component

Hi Radu, after getting deeper into schema aware xslt I was missing the same feature. So please add my vote for it. Just to be sure: The content-completion should work as well for variables: <xsl:variable select="..." as="element(*, MyType)"/> And the "go to definition" ...
by Patrik
Tue Feb 10, 2015 9:21 am
Forum: XSLT and FOP
Topic: match uncaught though declared in XSL
Replies: 1
Views: 1873

Re: match uncaught though declared in XSL

Hi, the code you posted only calls <xsl:apply-templates/> to deal with the content of the para element. So without any other templates the output would be <div class="para"> 18 Further to same. </div> This is due to the default-templates that only output all the text content. Since your ou...
by Patrik
Tue Feb 10, 2015 9:10 am
Forum: Other Issues
Topic: xi:includes and xslt
Replies: 2
Views: 2080

Re: xi:includes and xslt

Hi Emma, it is a configuration wheather the xslt engine should resolve the xi:include or not. So if the xi:include is not resolved at all (find out with <xsl:message select="."/> in your main-template) you should check this. In the oxygen settings there's an entry XML / XML-Parser / XInclu...
by Patrik
Mon Jan 26, 2015 10:45 am
Forum: XSLT and FOP
Topic: Saxon sql: Unknown extension instruction
Replies: 2
Views: 3447

Re: Saxon sql: Unknown extension instruction

Hi Adrian,

Thanks for the hint. Even after you told be I had to use WinMerge to finde the difference...

However, i finally could get sql to work.

Regards,

Patrik
by Patrik
Mon Jan 19, 2015 4:14 pm
Forum: XSLT and FOP
Topic: Saxon sql: Unknown extension instruction
Replies: 2
Views: 3447

Saxon sql: Unknown extension instruction

Hi, i need to import data extracted from my xml documents into an oracle database. Since it is only for internal use the saxon-sql-extension sounds suitble. However, all attempts to get it to work failed so far (using oxygen 16.0)... my script: <xsl:transform version="3.0" xmlns:xsl = &quo...
by Patrik
Tue Dec 16, 2014 9:48 am
Forum: XSLT and FOP
Topic: generate pdf with calabash and apache fop
Replies: 1
Views: 1990

generate pdf with calabash and apache fop

Hi, I'm trying to convert my xslt transformation szenario for generating pdf files to an xproc transformation scenario. However, every pdf file I generated to far could not be opened by any reader cause it is invalid. Here is my xproc file: <?xml version="1.0" encoding="UTF-8"?> ...
by Patrik
Mon Dec 15, 2014 11:21 am
Forum: General XML Questions
Topic: writing to message view from xproc
Replies: 3
Views: 3271

Re: writing to message view from xproc

Hi Adrian, thanks for the hint. With "Show XProc messages" and cx:message as well as p:error I get an output that feels acceptable. However, i will have to implement some custome xproc-steps in the next weeks anyway. Thus, I'm wondering if it is possible to implement an xproc-step in java ...
by Patrik
Fri Dec 12, 2014 2:26 pm
Forum: SDK-API, Frameworks - Document Types
Topic: pdf output with dynamic filename
Replies: 3
Views: 2581

Re: pdf output with dynamic filename

Hi Radu,

thanks for the hint. But the xpath-expression would be quite complex and programming inside a single line edit field is not really confortable.

Now I use xproc including an additional xslt to calculate the filename and this works as well and feels easier to maintain.

Regards,

Patrik
by Patrik
Fri Dec 12, 2014 1:54 pm
Forum: General XML Questions
Topic: writing to message view from xproc
Replies: 3
Views: 3271

writing to message view from xproc

Hi, from within my xslt transformations I used xsl:message to give some feedback to the user (for intance something like "file xxx generated"). Now that I started using xproc I'd like to produce the same kind of feedback. I know you can write content to an output port and display it as the...
by Patrik
Thu Dec 11, 2014 6:02 pm
Forum: SDK-API, Frameworks - Document Types
Topic: pdf output with dynamic filename
Replies: 3
Views: 2581

pdf output with dynamic filename

Hi, my current pdf transformation uses simply "${cfn}.pdf" as configured output file. However, I'd like to add the document version (coming from a specific element inside the document) to the filename. And for my diff it should be something like "${BookName}-Diff-v${NewerVersion}-to-$...
by Patrik
Thu Dec 11, 2014 5:52 pm
Forum: SDK-API, Frameworks - Document Types
Topic: XSLT operation on root element in Author mode?
Replies: 4
Views: 3278

Re: XSLT operation on root element in Author mode?

Hi Stefan,

I had the same problem some time ago:
http://www.oxygenxml.com/forum/topic10476.html

If updating to the newer version is no option (for whatever reasons) implementing your own extension bundle could solve the problem as well...

Regards,
Patrik
by Patrik
Thu May 22, 2014 8:48 am
Forum: SDK-API, Frameworks - Document Types
Topic: Oxygen 16.0: css-link overwrites oxy_button
Replies: 3
Views: 2539

Re: Oxygen 16.0: css-link overwrites oxy_button

Hi Alex, these buttons are not only for xinclude but also in other references (e.g. my self-implemented xslt-conref). Moving the buttons one level up would only lower the problem rather than solving it since one referenced content might contain another. For instance an xincluded file can an xslt-con...
by Patrik
Wed May 21, 2014 12:03 pm
Forum: XML Schemas
Topic: schematron no more schema aware in Oxygen 16.0
Replies: 4
Views: 5703

Re: schematron no more schema aware in Oxygen 16.0

Hi George, I already realized that my sqf-additions to my schematron files had no effect... My enthusiasm must have blinded me. Still looks very promising, nut I guess you have no idea when we can hope for his being included into oxygen!? However, you hint with the -val option solved my actual probl...
by Patrik
Wed May 21, 2014 11:41 am
Forum: SDK-API, Frameworks - Document Types
Topic: findNodesByXPath within referenced content not working
Replies: 2
Views: 1974

Re: findNodesByXPath within referenced content not working

Hi Alex,

as you suggested I implemented my own "interpreter" when the xpath matches "ancestor:<NodeName>" and it works fine now. Thanks.

Patrik
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: 2539

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", transparen...
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: 5703

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"/> i...
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: 1974

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

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 "...
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: 2203

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

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

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

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

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

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 sele...
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: 4871

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: 4
Views: 2838

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: 4
Views: 2838

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

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

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

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

Hi Radu,

this solved my problem. Thanks again.

Patrik