Search found 247 matches

by Patrik
Mon Jan 26, 2015 10:45 am
Forum: XSLT and FOP
Topic: Saxon sql: Unknown extension instruction
Replies: 2
Views: 2537

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

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 = "http://www.w3...
by Patrik
Tue Dec 16, 2014 9:48 am
Forum: XSLT and FOP
Topic: generate pdf with calabash and apache fop
Replies: 1
Views: 1546

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"?> <p:declare-step xmln...
by Patrik
Mon Dec 15, 2014 11:21 am
Forum: General XML Questions
Topic: writing to message view from xproc
Replies: 3
Views: 2561

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 that write...
by Patrik
Fri Dec 12, 2014 2:26 pm
Forum: SDK-API, Frameworks - Document Types
Topic: pdf output with dynamic filename
Replies: 3
Views: 1850

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

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 result bu...
by Patrik
Thu Dec 11, 2014 6:02 pm
Forum: SDK-API, Frameworks - Document Types
Topic: pdf output with dynamic filename
Replies: 3
Views: 1850

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-${OlderVersion}....
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: 2207

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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 ...