[docbook] Image @ 100% width for HTML output

2014-06-03 Thread Jean-Francois Weissmann
Hi,
I’m actually trying to modify an HTML conversion stylesheet to automatically 
display all imagedata contained into a mediaobject at 100% of the available 
width in the HTML page or the table cell…
I tried to play somehow with these lines in the XSL file but I’m struggling 
with the syntaxe to provide a correct output…

xsl:template match=d:imagedata mode=construct
….
….
/xsl:template

Of course, I’m trying to achieve that without having to use the width attribute 
on the imagedata object because the source XML is also used for a PDF 
publication, and I’d like to keep the true width in that case…

Many thanks in advance for your answers,
Regards,
Jeff
-
To unsubscribe, e-mail: docbook-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-h...@lists.oasis-open.org



Re: [docbook] Image @ 100% width for HTML output

2014-06-03 Thread Jirka Kosek
On 3.6.2014 9:04, Jean-Francois Weissmann wrote:
 I’m actually trying to modify an HTML conversion stylesheet to automatically 
 display all imagedata contained into a mediaobject at 100% of the 
 available width in the HTML page or the table cell…
 I tried to play somehow with these lines in the XSL file but I’m struggling 
 with the syntaxe to provide a correct output…

Have you tried setting the following parameter:

http://docbook.sourceforge.net/release/xsl/current/doc/html/default.image.width.html

-- 
--
  Jirka Kosek  e-mail: ji...@kosek.cz  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 rep.
--
Bringing you XML Prague conferencehttp://xmlprague.cz
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook] Image @ 100% width for HTML output

2014-06-03 Thread Jean-Francois Weissmann
Hi Jirka,
No, I did not, and I think it is a very good start though! Did not know such a 
parameter was existing...
I’ll try that and come back if still have a pb...

Thanks a lot!
JF


Le 3 juin 2014 à 09:58, Jirka Kosek ji...@kosek.cz a écrit :

 On 3.6.2014 9:04, Jean-Francois Weissmann wrote:
 I’m actually trying to modify an HTML conversion stylesheet to automatically 
 display all imagedata contained into a mediaobject at 100% of the 
 available width in the HTML page or the table cell…
 I tried to play somehow with these lines in the XSL file but I’m struggling 
 with the syntaxe to provide a correct output…
 
 Have you tried setting the following parameter:
 
 http://docbook.sourceforge.net/release/xsl/current/doc/html/default.image.width.html
 
 -- 
 --
  Jirka Kosek  e-mail: ji...@kosek.cz  http://xmlguru.cz
 --
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
 --
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 rep.
 --
Bringing you XML Prague conferencehttp://xmlprague.cz
 --
 


-
To unsubscribe, e-mail: docbook-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-h...@lists.oasis-open.org



Re: [docbook] Image @ 100% width for HTML output

2014-06-03 Thread Bob Stayton

Hi,
 Did not know such a parameter was existing...

It is documented in my free online book in the section on Image sizing:

http://www.sagehill.net/docbookxsl/ImageSizing.html

You might find the book useful for other DocBook XSL issues.

Bob Stayton
Sagehill Enterprises
b...@sagehill.net

On 6/3/2014 1:08 AM, Jean-Francois Weissmann wrote:

Hi Jirka,
No, I did not, and I think it is a very good start though! Did not know such a 
parameter was existing...
I’ll try that and come back if still have a pb...

Thanks a lot!
JF


Le 3 juin 2014 à 09:58, Jirka Kosek ji...@kosek.cz a écrit :


On 3.6.2014 9:04, Jean-Francois Weissmann wrote:

I’m actually trying to modify an HTML conversion stylesheet to automatically display all 
imagedata contained into a mediaobject at 100% of the available width in 
the HTML page or the table cell…
I tried to play somehow with these lines in the XSL file but I’m struggling 
with the syntaxe to provide a correct output…


Have you tried setting the following parameter:

http://docbook.sourceforge.net/release/xsl/current/doc/html/default.image.width.html

--
--
  Jirka Kosek  e-mail: ji...@kosek.cz  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 rep.
--
Bringing you XML Prague conferencehttp://xmlprague.cz
--




-
To unsubscribe, e-mail: docbook-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-h...@lists.oasis-open.org






-
To unsubscribe, e-mail: docbook-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-h...@lists.oasis-open.org



Re: [docbook] Image @ 100% width for HTML output

2014-06-03 Thread Jean-Francois Weissmann
Very good, many thanks for this information!
I’ve tested this parameter and it works fine for almost all images… Only some 
on them required to get a width parameter to display correctly, no idea why…

Thanks to both of you,
Regards,
JF


Le 3 juin 2014 à 18:16, Bob Stayton b...@sagehill.net a écrit :

 Hi,
  Did not know such a parameter was existing...
 
 It is documented in my free online book in the section on Image sizing:
 
 http://www.sagehill.net/docbookxsl/ImageSizing.html
 
 You might find the book useful for other DocBook XSL issues.
 
 Bob Stayton
 Sagehill Enterprises
 b...@sagehill.net
 
 On 6/3/2014 1:08 AM, Jean-Francois Weissmann wrote:
 Hi Jirka,
 No, I did not, and I think it is a very good start though! Did not know such 
 a parameter was existing...
 I’ll try that and come back if still have a pb...
 
 Thanks a lot!
 JF
 
 
 Le 3 juin 2014 à 09:58, Jirka Kosek ji...@kosek.cz a écrit :
 
 On 3.6.2014 9:04, Jean-Francois Weissmann wrote:
 I’m actually trying to modify an HTML conversion stylesheet to 
 automatically display all imagedata contained into a mediaobject at 
 100% of the available width in the HTML page or the table cell…
 I tried to play somehow with these lines in the XSL file but I’m 
 struggling with the syntaxe to provide a correct output…
 
 Have you tried setting the following parameter:
 
 http://docbook.sourceforge.net/release/xsl/current/doc/html/default.image.width.html
 
 --
 --
  Jirka Kosek  e-mail: ji...@kosek.cz  http://xmlguru.cz
 --
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
 --
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 rep.
 --
Bringing you XML Prague conferencehttp://xmlprague.cz
 --
 
 
 
 -
 To unsubscribe, e-mail: docbook-unsubscr...@lists.oasis-open.org
 For additional commands, e-mail: docbook-h...@lists.oasis-open.org
 
 
 
 
 
 -
 To unsubscribe, e-mail: docbook-unsubscr...@lists.oasis-open.org
 For additional commands, e-mail: docbook-h...@lists.oasis-open.org
 


-
To unsubscribe, e-mail: docbook-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-h...@lists.oasis-open.org