xml editor

Products

Features

  EPUB
Supported platforms

Supports Windows 7 & Mac OS X Lion

Ready for XML Editor data server software
W3C Member

Formatting topicref in relationship table

Questions about XML that are not covered by the other forums should go here.

Formatting topicref in relationship table

Postby Indiwren » Wed Mar 19, 2008 8:38 pm

In a relationship table, I want to refer to a pdf file that has an italicized title. Is there anyway to make this happen? Can I us the <i> tag, as in <i>navtitle="File Name"</>. Right now, Oxygen doesn't like this, but is there a work around?
Indiwren
 
Posts: 2
Joined: Fri Jul 27, 2007 1:01 am
Location: Northern California

Re: Formatting topicref in relationship table

Postby sorin » Thu Mar 20, 2008 11:36 am

Hello,

It is not clear how you encode the reference to the PDF file. Is the reference an XML attribute or an XML element in an XML document? How do you want to render the XML document? Do you transform the XML document with an XSLT stylesheet to render an italicized title in the output format? In this case you need to generate an italic text in the output by matching the XML attribute or the XML element with an XSLT template and writing the italic text at the output from the stylesheet.

Is it one of the predefined document types of oXygen which are listed in Options -> Preferences -> Document Type Association or a custom document type that you need to create?


Regards,
Sorin
sorin
 
Posts: 3228
Joined: Fri Mar 28, 2003 2:12 pm

Re: Formatting topicref in relationship table

Postby Indiwren » Thu Mar 20, 2008 10:39 pm

Great questions! I'll try to answer, though I'm not sure I understand them all.
The following appears in a relationship table in a ditamap in Oxygen:
<topicref format="pdf" href="Reference.pdf" linking="targetonly"
navtitle="Reference"/>

I want this to appear in a Concept as a Related Link, like so: [i]Reference[/i] in an HTML document. There are already some pre-existing Related Links in this document, but I don't want those others to be italic, only this one pdf file.
I'm not a developer, but our developers have built a system to handle dita. We do use XSLT style sheets, but I don't format them. It sounds like I need to get one of our developers to "generate an italic text in the output by matching the XML attribute or the XML element with an XSLT template and writing the italic text at the output from the stylesheet", as you suggested.
Indiwren
 
Posts: 2
Joined: Fri Jul 27, 2007 1:01 am
Location: Northern California

Re: Formatting topicref in relationship table

Postby Radu » Fri Mar 21, 2008 3:27 pm

Hi,

Indeed, as you said, the only way to accomplish this seems to be modifying/customizing the DITA to HTML stylesheets and output an italic element depending on a certain attribute (like "importance") that you set on the topicref in the reltable.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Radu
 
Posts: 1509
Joined: Fri Jul 09, 2004 5:18 pm


Return to General XML Questions

Who is online

Users browsing this forum: No registered users and 0 guests

XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>® XML Editor