Hussein:

I want to thank you very kindly for the response. For the record, I do have the 
professional edition that I am using. I completely understand your disclaimer, 
and as an authoring tool I am very pleased with the product. That being said, 
your advice was spot on! As it was clearly documented in the place you 
referenced. I appreciate you pointing me to the appropriate documentation, that 
was the help that I needed.  I was indeed able to implement a custom solution 
and even without 'official help' was able to accomplish my stated goal of 
integrating some customizations into the product. 

Thank you, and most of all, my authors will thank you later for making their 
lives easier!

Regards,
/Gregorio






-----Original Message-----
From: Hussein Shafie <[email protected]>
To: [email protected]
Cc: [email protected] <[email protected]>
Sent: Fri, May 28, 2010 4:30 am
Subject: Re: [XXE] Parameter questions


First of all please take the time to read this FAQ:
How do I customize the HTML, PDF, RTF, etc, generated using the
Convert Document" menu? --
ttp://www.xmlmind.com/xmleditor/faq.html#custom_deliverables
In a nutshell, it explains that, in the general case, we cannot help you
ecause we sell just an authoring tool and not a complete solution.
This being said, we'll try to answer your questions...

[email protected] wrote:
 I am interested in setting some parameters when I run a file through the
 convert document
 docbook to ps/pdf options. I need to customize some of the parameters,
 and have some issues that could use some clarification. I went through
 the documentation and did not see anything this specific there, If I
 missed it I apologize.
  
 When going through, options -> customize configuration -> change
 document conversion parameters, this is all very clear, as well as
 setting some custom options like paper.type and value. This is fine,
 while trying to use a parameter that has attributes, how to set that value??
  
 For example a parameter like section.title.properties, where there are
 numerous attributes that can be set. How to set that through the interface?
 I tried the obvious to use the value as something like
 @font-family="Franklin-Gothic", even to set the name as
 section.title.propert...@font-family
 <mailto:section.title.propert...@font-family> and then set value to
 Franklin-Gothic
 and that does not seem to work. I know to add a custom XSL layer and
 transform manually
 such as:
 <xsl:attribute-set name="section.title.properties">
     <xsl:attribute name="font-family">Franklin-Gothic</xsl:attribute>
 </xsl:attribute-set>
 I want to do this inside of XML Mind document conversion parameters? Is
 there a convention for parameter attributes like this?
"Change document conversion parameters" allows to specify xsl:param-s.
n xsl:attribute-set is not an xsl:param. While it's technically
ossible possible to specify an xsl:param from the ``outside'', it's not
ossible to do so for xsl:attribute-set-s.
You need to customize the XSLT stylesheet by hand. How to do this is
xplained here:
ttp://www.xmlmind.com/xmleditor/_distrib/doc/configure/customize_xslt.html

  
 Another question I have is somewhat related. Another Parameter I am
 setting is admon.graphics and admon.graphics.path
 and again while I can run XSL outside of XML Mind and these parameters
 work, I am getting that systen cannot find graphic. I treid both
 relative paths and absolute. Neither time does the conversion find the
 graphic. I have tried putting the graphic in several different
 directories, the app config, the source xml directory, but it seems to
 be looking in a TEMP directory which seems to be created unique every
 time the conversion is run. Here is an excerpt to illustrate what is
 happening.
  
 [FOP ERROR] Error while opening file. Could not load image from system
 identifier
 
'file:/C:/Documents%20and%20Settings/gpevaco/Local%20Settings/Temp/xxe3017655903611532231/icons/warning.png'
 (C:\Documents and Settings\gpevaco\Local
 Settings\Temp\xxe3017655903611532231\icons\warning.png (The system
 cannot find the path specified))
 [FOP ERROR] Image not found: icons/warning.png
 [FOP ERROR] Image not found: icons/warning.png
 [FOP INFO] Generated 84 pages.
 Copying files to "file:/C:/DocBook/DocBookDev/PM_DB.pdf"
 Copying "C:\Documents and Settings\gpevaco\Local
 Settings\Temp\xxe3017655903611532231\__doc.pdf" to
 "C:\DocBook\DocBookDev\PM_DB.pdf" (1/1)
  
 It is looking for the image file in %%\Temp\xxe301... where that xxe
 number directory seems to be getting generated unique every time it runs
 the conversion. Is there anyway to specify where to look for this
 graphic, or perhaps looks like need to specify the working directory.
 The goal is to include the warning image in the convereted PS/PDF file.
  
--> There is no way to specify this temporary directory. XMLmind XML
ditor creates a possibly modified (e.g. fully transcluded) copy of the
ocument to be converted. It can convert between image formats on the
ly. It can convert document stored on remote servers. That's why it has
o do all its work on temporary files created in a temporary directory.
--> When you generate PDF, RTF, etc, it's not difficult to get the
dmon.graphics because such formats generate stand-alone files.
Suffice to specify conversion parameters as follows:
admon.graphics = 1
dmon.graphics.extension = .svg
dmon.graphics.path =
ile:/home/hussein/src/4xxe/addon/config/docbook/xsl/images/
* My copy of XMLmind XML Editor is installed in
file:/home/hussein/src/4xxe/"
* I'm trying to convert a DocBook 4 document hence
addon/config/docbook/xsl/images/".
* Note that I've specified a absolute URL (not a filename) ending with a
/'.
See attached screenshot.
--> When you generate HTML, HTMLHelp, etc, it's much harder because such
ormats requires you to bundle copies of the admon.graphics with the
eliverable. In such case, you need to customize the process command
hich performs the conversion. Explaining how to do this is reserved to
he customers of XMLmind XML Editor Professional Edition.

> Once again thank you for taking the time to review my questions, and I
 am looking forward to your replies.
  

 
-
MLmind XML Editor Support List
[email protected]
ttp://www.xmlmind.com/mailman/listinfo/xmleditor-support

 
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to