Search found 273 matches

by Patrik
Tue Jan 19, 2016 9:13 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Custom DITA-OT parameters for custom PDF
Replies: 12
Views: 7322

Re: Custom DITA-OT parameters for custom PDF

After adding the transtype element is my parameters are listed now. Really nice solution! Thanks again.

Patrik
by Patrik
Tue Jan 19, 2016 10:05 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Custom DITA-OT parameters for custom PDF
Replies: 12
Views: 7322

Re: Custom DITA-OT parameters for custom PDF

Hi Radu,

I didn't realize that transtype itself is metadata as well. Thanks, I will try that.

Regards,
Patrik
by Patrik
Mon Jan 18, 2016 7:50 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Customizing cross reference dialog!
Replies: 6
Views: 1863

Re: Customizing cross reference dialog!

Hi Alex, I also have this issue already on my todo list (not for short-term though): I'd like to provide some custom css to be used for the preview. Actually I want the same css to be used that is active for the author view. I'm especially missing some content generated by the css (e.g. for the befo...
by Patrik
Mon Jan 18, 2016 6:45 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Custom DITA-OT parameters for custom PDF
Replies: 12
Views: 7322

Re: Custom DITA-OT parameters for custom PDF

Hi Radu, thanks, but I don't have a transtype element since I'm only customizing the existing pdf2 transtype. My plugin.xml looks like this: <plugin id="org.dita-semia.pdf"> <require plugin="org.dita.pdf2"/> <feature extension="dita.conductor.transtype.check" value="dita-semia-pdf"/> <feature extens...
by Patrik
Mon Jan 18, 2016 6:23 pm
Forum: SDK-API, Frameworks - Document Types
Topic: problem with less attr function and namespace prefixes
Replies: 2
Views: 1981

Re: problem with less attr function and namespace prefixes

Hi Radu,

using quotes completely solved this problem for me, thanks!

Patrik
by Patrik
Mon Jan 18, 2016 8:26 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Custom DITA-OT parameters for custom PDF
Replies: 12
Views: 7322

Re: Custom DITA-OT parameters for custom PDF

Hi Stefan, Silly me... All the time I was expactin oXygen to automatically add my own parameter to the list. Simply by adding a new parameter manually with the appropriate name it's working fine now. Thanks again. However, I'm still wondering if there is a way to declare my parameter with a descript...
by Patrik
Sun Jan 17, 2016 7:13 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Custom DITA-OT parameters for custom PDF
Replies: 12
Views: 7322

Re: Custom DITA-OT parameters for custom PDF

Hi Stefan, thanks fot the answer, but I couldn't see how it should help me. As I wrote I have alreay successfully added a parameter into the PDF2-XSLT-Stylesheet (e.g. "my-param") and I'm also evaluating it in my pdf customization. But so far it is passed only with the contant value "#CCCCFF". And I...
by Patrik
Sun Jan 17, 2016 3:41 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Custom DITA-OT parameters for custom PDF
Replies: 12
Views: 7322

Custom DITA-OT parameters for custom PDF

Hi, I successfully created my own pdf customization and also added custom parameters like this: in plugin.xml I added <feature extension="dita.conductor.pdf2.param" file="insert-parameters.xml"/> and insert-parameters.xml looks like this: <dummy> <param name="my-param" expression="#CCCCFF"/> </dummy...
by Patrik
Sat Jan 16, 2016 7:05 pm
Forum: SDK-API, Frameworks - Document Types
Topic: problem with less attr function and namespace prefixes
Replies: 2
Views: 1981

problem with less attr function and namespace prefixes

Hi, I just wanted to use the attr function in a less file to output the value of a namespace attribute. Using a css file the same works fine but within a less file I get an error message: [CSS]:Error: ParseError: Unrecognised input in ... (jar:file:/C:/Program%20Files/Oxygen%20XML%20Editor%2017.1/li...
by Patrik
Thu Jan 07, 2016 8:22 pm
Forum: XML Schemas
Topic: Further development on schematron
Replies: 13
Views: 6118

Re: Further development on schematron

Hi Steve, assuming that there is no easy solution with classpath or anything, this might be an acceptable workaround: 1. Create the file oXygenSchematronDispatcher.xsl at some folder where you are allowed to modify files. 2. Create another oXygenSchematronDispatcher.xsl file that only includes the f...
by Patrik
Wed Dec 09, 2015 12:32 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: DITA-OT 2.2 + Oxygen 17.0 = NoSuchMethodError
Replies: 5
Views: 1377

Re: DITA-OT 2.2 + Oxygen 17.0 = NoSuchMethodError

Hi Radu, also note that "oxygen.jar" contains an (older) implmentation of the class "org.apache.commons.io.FileUtils" as well. So removing the "commons-io-1.3.1.jar" would probably not be enough. And when I removed the "oxygen.jar" from the list of libraries DITA-OT could no more load the schema: C:...
by Patrik
Wed Dec 09, 2015 12:07 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: DITA-OT 2.2 + Oxygen 17.0 = NoSuchMethodError
Replies: 5
Views: 1377

Re: DITA-OT 2.2 + Oxygen 17.0 = NoSuchMethodError

Hi Radu,

thanks for the hint.

Simply adding the lib didn't help, though. I had to
  1. uncheck "Allow <oXygen/> to add high priority libraries to classpath" und
  2. change the first entry to "${configured.ditaot.dir.url}/lib/commons-io-2-4.jar".
Then it works fine.

Regards,
Patrik
by Patrik
Wed Dec 09, 2015 9:46 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: DITA-OT 2.2 + Oxygen 17.0 = NoSuchMethodError
Replies: 5
Views: 1377

DITA-OT 2.2 + Oxygen 17.0 = NoSuchMethodError

Hi, I'm trying to use DITA-OT 2.2 with Oxygen 17.0 but get an error when generating a PDF: BUILD FAILED C:\Testteamserver\DITA-OT\build.xml:42: The following error occurred while executing this line: C:\Testteamserver\DITA-OT\plugins\org.dita.base\build_preprocess.xml:226: java.lang.NoSuchMethodErro...
by Patrik
Tue Nov 24, 2015 4:17 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Display topic numbers
Replies: 2
Views: 984

Re: Display topic numbers

Hi Radu, in all our PDFs each topic has a number like 1.2.3.4 for a topic on 4th level. Abd we never use the same topic twice in a ditamap - so it's always unique. Actually, in my custom framework I already implemented it, so I will convert it to using DITA maps as well. Just wanted to make sure I'm...
by Patrik
Tue Nov 24, 2015 8:29 am
Forum: DITA (Editing and Publishing DITA Content)
Topic: Display topic numbers
Replies: 2
Views: 984

Display topic numbers

Hi, the topic number from the PDF is an important key information when modifying the DITA sources in oXygen. Thus, it would be very helpful to display them in oxygen as well. That is, in - the author mode on each title for topics and maps - the DITA Maps Manager - the Outline window Is such a featur...
by Patrik
Mon Nov 16, 2015 10:48 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Modifying DitaLinkTextResolver
Replies: 5
Views: 1511

Re: Modifying DitaLinkTextResolver

OK, thanks.

Patrik
by Patrik
Fri Nov 13, 2015 9:55 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Modifying DitaLinkTextResolver
Replies: 5
Views: 1511

Re: Modifying DitaLinkTextResolver

Hi Mihaela, my question was not about modifying part of a framework but about modifying part of the DitaLinkTextResolver . I only want to modify the link text when the rerefenced element is of some special kind. Overriding the method resolveReference would mean that I have to implement all the funct...
by Patrik
Fri Nov 13, 2015 6:00 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Modifying DitaLinkTextResolver
Replies: 5
Views: 1511

Modifying DitaLinkTextResolver

Hi, I'd like to adapt the text being generated for some special cases of referenced elements. Is there any way to adapt the existing code (probably of DitaLinkTextResolver.resolveElement() and/or DITAAccess.computeLinkText) to deal only with my special cases? Or will I have to re-implement the compl...
by Patrik
Fri Nov 13, 2015 1:06 am
Forum: SDK-API, Frameworks - Document Types
Topic: less: begin(@n) not working?
Replies: 1
Views: 1294

Re: less: begin(@n) not working?

Sorry, should have looked into the spec first...

Using the correct syntax (with curly braces) it works fine:

Code: Select all

@index: 5;
*MyElement:before(@{index}) {
...
}
Patrik
by Patrik
Fri Nov 13, 2015 12:11 am
Forum: SDK-API, Frameworks - Document Types
Topic: less: begin(@n) not working?
Replies: 1
Views: 1294

less: begin(@n) not working?

Hi,

I wanted to define a less variable for the index I'm using within a number of :begin(n) and :after(n):

Code: Select all

@index: 5;
*MyElement:before(@index) {
...
}
But I get the ParseError "Unrecognised Input".

Is this an intentional limitation?

Thanks and regards,

Patrik
by Patrik
Tue Nov 10, 2015 4:47 pm
Forum: Other Issues
Topic: CSS: -oxy-append-content kills original icons
Replies: 1
Views: 1137

CSS: -oxy-append-content kills original icons

Hi, in one css file I'm adding some buttons to an element using relative urls for the icons. Now in another css file (located in another folder) I'm adding additional content (i.e. another button with icon) using -oxy-append-content. The effect is now that the icons of the original buttons are no mo...
by Patrik
Fri Nov 06, 2015 10:02 am
Forum: Feature Request
Topic: User defined css functions
Replies: 2
Views: 1535

Re: User defined css functions

Thanks Alex.

Patrik
by Patrik
Thu Nov 05, 2015 1:02 pm
Forum: Feature Request
Topic: User defined css functions
Replies: 2
Views: 1535

User defined css functions

Hi, oXygen already provides several custom css functions, but there are special cases where I'd like to call my own java methods. I know I can implement my own StylesFilter but this has two disadvantages: 1. I have to implement the java code for selecting the right node as well (which is easier in c...
by Patrik
Mon Nov 02, 2015 10:59 am
Forum: SDK-API, Frameworks - Document Types
Topic: Non-modifying custom actions
Replies: 4
Views: 1702

Re: Non-modifying custom actions

Hi Radu,

I understand, thanks for the explanation.

Patrik
by Patrik
Mon Nov 02, 2015 10:42 am
Forum: SDK-API, Frameworks - Document Types
Topic: Non-modifying custom actions
Replies: 4
Views: 1702

Re: Non-modifying custom actions

Hi Radu, I checked again and indeed: opening another file did neither mark the document as modified nor did it add an entry to the undo list. So that's fine. But calling AuthorDocumentController.refreshNodeReferences() marks the document as modified. And you can undo this operation as well. You migh...
by Patrik
Mon Nov 02, 2015 9:47 am
Forum: SDK-API, Frameworks - Document Types
Topic: Non-modifying custom actions
Replies: 4
Views: 1702

Non-modifying custom actions

Hi, I have non-modifying AuthorOperations. To avoid the document being marked as modified after performing the actions I'm setting the it as unmodified explicitly. Since the PseudoClassOperations should have the same problem I'm wondering if there's already a better solution!? Thanks and regards, Pa...
by Patrik
Sat Oct 31, 2015 11:10 am
Forum: SDK-API, Frameworks - Document Types
Topic: Apply all Schematron Quick Fixes
Replies: 3
Views: 1715

Re: Apply all Schematron Quick Fixes

Hi Stefan, a workaround might be to provide a special quick fix to deal with multiple errors. For instance in my framework I have a schematron rule checking for missing @id attributes. Now I provide two quick fixes for this: One to add the @id for the current element and another one to add all missi...
by Patrik
Fri Oct 30, 2015 5:06 pm
Forum: DITA (Editing and Publishing DITA Content)
Topic: Sort definition list of current file without resolving implicit attributes
Replies: 2
Views: 938

Re: Sort definition list of current file without resolving implicit attributes

Hi Stefan, to get rid of the default attributes just change the settings for your transformation scenario and disable "expand default attributes". But doing that you would have to change the code as well since it can no more read the class attributes. E.g. <xsl:template match="dl"> <xsl:copy> <xsl:a...
by Patrik
Mon Oct 26, 2015 1:32 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Url of builtin image from custom css
Replies: 3
Views: 1735

Re: Url of builtin image from custom css

Hi Radu,

thanks for the quick answer. Using an URL starting with '/'did not work. He was looking fot the file 'C:/images/editContent.gif'. So I copied the required images into my framework. (Just wasn't sure if there are any copyright issues with your images.)

Patrik
by Patrik
Mon Oct 26, 2015 1:12 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Url of builtin image from custom css
Replies: 3
Views: 1735

Url of builtin image from custom css

Hi, within my custom css files I'd liketo be able to refer to some builtin images like 'editContent.gif'. But I can't know where the custom framework will be located relative to the oxygen folder so I can't use a relative path. Is there any way to use something like url('${OXYGEN_INSTALL}/lib/oxygen...