Search found 15 matches

by afuchs
Fri Jan 27, 2017 1:52 pm
Forum: SDK-API, Frameworks - Document Types
Topic: dynamic link construction for authors
Replies: 2
Views: 572

Re: dynamic link construction for authors

Dear Radu,

Thank you so much. Especially for the tip for nesting oxy-functions - this was never very transparent for me and solves so much.

Regards,
Alexey
by afuchs
Fri Jan 27, 2017 12:07 pm
Forum: SDK-API, Frameworks - Document Types
Topic: dynamic link construction for authors
Replies: 2
Views: 572

dynamic link construction for authors

Dear Developers, I need an element in author mode to act like a link, but dynamically: if there is an <xref> with @rid inside corresponding to a paragraph @id elsewhere, it should take the author to that paragraph. Until this moment the paragraphs with the corresponding IDs were in another XML file ...
by afuchs
Thu Jan 26, 2017 4:47 pm
Forum: SDK-API, Frameworks - Document Types
Topic: XPath involving ${selection}
Replies: 5
Views: 610

Re: XPath involving ${selection}

Hi Radu, As far as I know the ${selection} editor variable is only expanded in parameter values. Exactly. So if I try to write an XPath expression that should select, say, one of two actions to be taken depending on the XML structure of the selection, it probably won't work? Let's say I want to repl...
by afuchs
Thu Jan 26, 2017 1:18 pm
Forum: SDK-API, Frameworks - Document Types
Topic: XPath involving ${selection}
Replies: 5
Views: 610

Re: XPath involving ${selection}

Hi Radu, Thank you for the prompt reply! I am currently working with 17.1 for a certain reason, so probably even oxy-selected-element() would not be available. But it's anyway about the second case that you mention, and yes, I think it could be a sensible addition for the field "If this XPath e...
by afuchs
Thu Jan 26, 2017 12:41 pm
Forum: SDK-API, Frameworks - Document Types
Topic: XPath involving ${selection}
Replies: 5
Views: 610

XPath involving ${selection}

Dear Developers, When defining an action in Author Mode, is it possible to involve the current selection made by the user e.g. in the XPath controlling the action? One of the problems that I am trying to solve is to avoid nesting of a certain element when surrounding a selection; I'd check for the p...
by afuchs
Mon Jun 23, 2014 3:29 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Searching for attributes (customizing search?) in the author
Replies: 3
Views: 991

Re: Searching for attributes (customizing search?) in the au

Thank you, Radu, While the "Find all elements..." suggestion is a viable workaround, and would suffice, I'd still like to understand what you are suggesting further. Where would the conversion of the attribute into an element (and back) take place? I am not supposed to alter the schema, so...
by afuchs
Mon Jun 23, 2014 11:08 am
Forum: SDK-API, Frameworks - Document Types
Topic: Searching for attributes (customizing search?) in the author
Replies: 3
Views: 991

Searching for attributes (customizing search?) in the author

Dear Board Members, In a large body of XML data representing a critical-historical edition in a loose interpretation of NLM Book DTD, a number of people is working through the authoring tool. The actual text of the edition has hard line breaks with hyphenation, which makes it difficult to find words...
by afuchs
Wed May 21, 2014 9:52 am
Forum: SDK-API, Frameworks - Document Types
Topic: Variable default value for $ask()
Replies: 4
Views: 1064

Re: Variable default value for $ask()

Thank you, Radu,

I am impatient to start trying it out.
by afuchs
Tue May 20, 2014 3:08 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Variable default value for $ask()
Replies: 4
Views: 1064

Re: Variable default value for $ask()

Thank you, Radu, I am looking forward to the release. As for now, I have come up with a workaround through CSS using oxy_editor with a value composed of the necessary XPath expressions. However, I still cannot force a default value into the combo, so that the user does not start with an unset value....
by afuchs
Tue May 20, 2014 12:37 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Variable default value for $ask()
Replies: 4
Views: 1064

Variable default value for $ask()

Dear Board Members, I am setting up an author action for a certain framework. The action is relatively simple and uses the ChangeAttributeOperation to, well, change an attribute of the node that has been right-clicked. I use the "editor variable" ${ask} and the user is prompted for the des...
by afuchs
Mon May 19, 2014 4:12 pm
Forum: TEI
Topic: footnote/reference numbering synchronisation
Replies: 2
Views: 3454

Re: footnote/reference numbering synchronisation

For the protocol: preliminary solution found. ref[target]:before { font-size: 70%; vertical-align: top; link: oxy_concat(oxy_base-uri(), "#", attr("target")); content: oxy_xpath( oxy_concat( "if (exists(//note[@xml:id eq '", attr(target), "'])) then", " c...
by afuchs
Mon May 19, 2014 2:41 pm
Forum: TEI
Topic: footnote/reference numbering synchronisation
Replies: 2
Views: 3454

footnote/reference numbering synchronisation

Dear Board Members, In TEI documents, I have <ref> elements throughout the document targeting <note> elements representing footnotes and placed at the end of the document, over IDs, as expected. I'd like to enumerate the notes in the authoring mode, and link them to the refs. So far the only method ...
by afuchs
Mon May 19, 2014 2:20 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Overriding xml-stylesheet PI with framework CSS
Replies: 4
Views: 1165

Re: Overriding xml-stylesheet PI with framework CSS

Ok, sorry, I got it the right way now.

Thank you very much for your help, I am aware of my options now.
by afuchs
Mon May 19, 2014 2:06 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Overriding xml-stylesheet PI with framework CSS
Replies: 4
Views: 1165

Re: Overriding xml-stylesheet PI with framework CSS

Thank you, Radu! It is indeed a good option and I will probably try it out soon. I oversaw the option "ignore CSSs in the associated document type" and as you pointed it out, I'd venture to ask: why does it not suffice to solve the problem? I.e., why is the CSS specified by the PI not igno...
by afuchs
Mon May 19, 2014 11:56 am
Forum: SDK-API, Frameworks - Document Types
Topic: Overriding xml-stylesheet PI with framework CSS
Replies: 4
Views: 1165

Overriding xml-stylesheet PI with framework CSS

Dear Board Members, Is there a way to make oXygen apply a CSS from a framework despite an xml-stylesheet PI inside the XML document referring to an external CSS file? I have hundreds of files someone created from a template that included the PI, and would like to exclude the unnecessary complication...

Go to advanced search