Search found 236 matches

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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...
by Patrik
Sat Oct 24, 2015 11:26 am
Forum: SDK-API, Frameworks - Document Types
Topic: Opening dialog boxes from xslt - It works!
Replies: 4
Views: 2964

Re: Opening dialog boxes from xslt - It works!

Hi,

I just uploaded my implementation together with the compiled java library and two samples to github...
https://github.com/dita-semia/XsltGui/releases

Patrik
by Patrik
Wed Oct 21, 2015 4:03 pm
Forum: SDK-API, Frameworks - Document Types
Topic: custom extension from oxygen lib folder not found
Replies: 1
Views: 1156

custom extension from oxygen lib folder not found

Hi, I implemented a custom reference resolver and want to configure it for my custom framework. Since the same jar file also contains a saxon extension I need to place it in the oxygen-lib-folder. But when placing the jar file there I can't select the reference resolver in the extensions tab - it is...
by Patrik
Wed Aug 19, 2015 8:26 am
Forum: Feature Request
Topic: Validation time
Replies: 2
Views: 1587

Re: Validation time

An alternative might be to convert your schematon file to the xslt script (oXygen provides a transformation scenario for that: "ISO schematron to XSLT (compilet)") and apply this script to the file you want to validate.

Patrik
by Patrik
Tue Aug 04, 2015 7:16 am
Forum: General XML Questions
Topic: Problem with Regular Expression Search
Replies: 6
Views: 2709

Re: Problem with Regular Expression Search

You need to use capture groups with parentheses. Find: <pointValue value="1"/>(\w*\s*)</lcAnswerContent2> (note the brackets around the element content) Repalce: <pointValue value="1"/>$1</lcAnswerContent2><lcCorrectResponse2/> (note the "$1" to refer to the content in the brackets from the regexp.)...
by Patrik
Tue Jul 14, 2015 7:58 pm
Forum: Other Issues
Topic: overriding display of certain elements in Author View
Replies: 9
Views: 2988

Re: overriding display of certain elements in Author View

Hi Alex,

will the editor be as comfortable as the text mode of oXygen? I.e. supporting content completion, automatically add closing tag, automatic indention...?

Patrik
by Patrik
Tue Jul 14, 2015 12:35 pm
Forum: Other Issues
Topic: overriding display of certain elements in Author View
Replies: 9
Views: 2988

Re: overriding display of certain elements in Author View

To use different styles for the content you can use either different pseudo elements: xml-codeblock *:before(3) { content: '<' oxy_name(); background-color: #EFEFEF; color: blue; } xml-codeblock *:before(2) { content: oxy_attributes(); background-color: #EFEFEF; color: red; } xml-codeblock *:before(...