Hello,

See here: http://tinyurl.com/584po2

There is probably needed a trailing slash after the images directory specified 
in the attribute: images/

Pavel ?kop?k




-----Original Message-----
From: xmleditor-support-bounces at xmlmind.com 
[mailto:[email protected]] On Behalf Of Alberto Gonz?lez 
T?llez
Sent: Wednesday, June 04, 2008 11:23 AM
To: xmleditor-support at xmlmind.com
Subject: Re: [XXE] Errors opening an IMS Content Package file

I noticed about this command but the problem
is not about copying files in "resources" folder,
that is ok, what I am trying to change is the
href attribute of img elements in the generated
HTML by means of docbook.xsl. ?Is this command
affecting this inside XXE?

Hussein Shafie escribi?:
> Alberto Gonz?lez T?llez wrote:
>>
>> I am trying to change the image directory
>> path when generating HTML with docbook.xsl
>> I am unable to find where this directory
>> is configured to "resources", when I
>> use parameter img.src.path set to
>> "images" then the images directory
>> becomes "imagesresources".
>>
> 
> The menu items contained in "Convert Document" have not been designed 
> for experts like you but for average users who are not likely to change 
> ``system parameters'' like "img.src.path" (but they may want to change 
> parameters such as "profile.condition" or "paper.type" using 
> "Options|Customize Configuration").
> 
> That's why graphics files are automatically copied/converted to a 
> (automatically created) resources/ subdirectory  when generating HTML.
> 
> If you want XXE to behave differently, I'm affraid you'll have to 
> redefine a couple of process commands found in 
> XXE_install_dir/addon/config/docbook/xslMenu.incl.
> 
> Process command docb.convertStep1:
> ---
> <command name="docb.convertStep1">
>   <process>
>     <mkdir dir="resources" />
>     <mkdir dir="raw" />
> 
>     <copyDocument to="__doc.xml">
>       <resources match="(https|http|ftp)://.*" />
> 
>       <!-- Support for textdata/@fileref.
>            add your favorite text file extensions here: -->
>       <resources
>         match=".+\.(txt|text|htm|html|xml|h|c|cpp|java|js|tcl|py|pl|rb)"
>         copyTo="." />
> 
>       <resources match=".+\.(png|jpg|jpeg|gif)"
>                  copyTo="resources" />
>       <resources match="(?:.+/)?(.+)\.(\w+)"
>                  copyTo="raw" referenceAs="resources/$1.png" />
>       <resources match=".+"
>                  copyTo="resources" />
>     </copyDocument>
> 
>     <convertImage from="raw" to="resources" format="png" />
> 
>     <mkdir dir="images/callouts" />
>     <copyProcessResources resources="xsl/images/draft.png"
>                           to="images" />
>     <copyProcessResources 
> resources="@xsl/images/callouts/png_callouts.list"
>                           to="images/callouts" />
>   </process>
> </command>
> ---
> 
> Notice configuration elements such as:
> ---
>       <resources match="(?:.+/)?(.+)\.(\w+)"
>                  copyTo="raw" referenceAs="resources/$1.png" />
> ---


-- 
Alberto Gonzalez Tellez
E.T.S. de Informatica Aplicada.
C/ Camino de Vera s/n 46022 Valencia (Spain)
Tel: 34-96-3877007 ext 75770 Fax: 34-96-3877579
e-mail: agt at disca.upv.es, web: www.disca.upv.es/agt

 
--
XMLmind XML Editor Support List
xmleditor-support at xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to