img tag XSLT->XHTML

Discussion in 'XML' started by full_philNO@SPAMyahooPLEASE.fr, May 15, 2004.

  1. Guest

    Hi all,

    I have a problem with the img tag. It simply doesn't want to translate
    into a img XHTML tag.

    When I write in XSLT :
    <img src="..." alt="..." ..../> or <img src=".." alt="..."
    .....></img>

    The output is always :
    <img src="..." alt="..." ....>
    without the closing tag

    I have tried to trick with the entity code and iso code, same result.
    I have tried with IE6 and Firefox 0.8

    I really doesn't understand. I declare the XSLT file like that (I have
    tried various combinations) :

    <?xml version="1.0" encoding="iso-8859-1"?>
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:eek:utput method="xml" encoding="iso-8859-1"
    omit-xml-declaration="no" indent="yes" doctype-public="-//W3C//DTD
    XHTML 1.0 Frameset//EN"
    doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"

    --
    Phil
    , May 15, 2004
    #1
    1. Advertising

  2. wrote:

    > I have a problem with the img tag. It simply doesn't want to translate
    > into a img XHTML tag.
    >
    > When I write in XSLT :
    > <img src="..." alt="..." ..../> or <img src=".." alt="..."
    > ....></img>
    >
    > The output is always :
    > <img src="..." alt="..." ....>
    > without the closing tag
    >
    > I have tried to trick with the entity code and iso code, same result.
    > I have tried with IE6 and Firefox 0.8


    How do you perform the XSLT transformation? Do you let the browser do
    that by using an
    <?xml-stylesheet type="text/xsl" href="stylesheet.xsl"?>
    If so how do you test whether there is a closing />?

    > I really doesn't understand. I declare the XSLT file like that (I have
    > tried various combinations) :
    >
    > <?xml version="1.0" encoding="iso-8859-1"?>
    > <xsl:stylesheet version="1.0"
    > xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    > <xsl:eek:utput method="xml" encoding="iso-8859-1"
    > omit-xml-declaration="no" indent="yes" doctype-public="-//W3C//DTD
    > XHTML 1.0 Frameset//EN"
    > doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"



    --

    Martin Honnen
    http://JavaScript.FAQTs.com/
    Martin Honnen, May 16, 2004
    #2
    1. Advertising

  3. Philippe Guest

    On Sun, 16 May 2004 11:42:32 +0200, Martin Honnen <>
    wrote:

    >
    >
    > wrote:
    >
    >> I have a problem with the img tag. It simply doesn't want to translate
    >> into a img XHTML tag.
    >>
    >> When I write in XSLT :
    >> <img src="..." alt="..." ..../> or <img src=".." alt="..."
    >> ....></img>
    >>
    >> The output is always :
    >> <img src="..." alt="..." ....>
    >> without the closing tag
    >>
    >> I have tried to trick with the entity code and iso code, same result.
    >> I have tried with IE6 and Firefox 0.8

    >
    >How do you perform the XSLT transformation? Do you let the browser do
    >that by using an
    > <?xml-stylesheet type="text/xsl" href="stylesheet.xsl"?>
    >If so how do you test whether there is a closing />?


    I perform it via PHP. I use EasyPHP 1.7.

    I test whether there is a closing tab by viewing the source code on
    the browser, or simply by testing it with the w3c validator.

    I have tried to let the browser do, but the result is something
    strange, the result is the XML file transfomed by I don't know what,
    because the transformations are the default transformations who are
    applied and not the transformations in the XSL : I get a page with all
    data written in text mode...

    >
    >> I really doesn't understand. I declare the XSLT file like that (I have
    >> tried various combinations) :
    >>
    >> <?xml version="1.0" encoding="iso-8859-1"?>
    >> <xsl:stylesheet version="1.0"
    >> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    >> <xsl:eek:utput method="xml" encoding="iso-8859-1"
    >> omit-xml-declaration="no" indent="yes" doctype-public="-//W3C//DTD
    >> XHTML 1.0 Frameset//EN"
    >> doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"
    Philippe, May 16, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. news.austin.rr.com

    how to download img from html img tag

    news.austin.rr.com, Apr 27, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    504
    Steve C. Orr [MVP, MCSD]
    Apr 27, 2005
  2. shruds
    Replies:
    1
    Views:
    759
    John C. Bollinger
    Jan 27, 2006
  3. tochiromifune

    img tag in XHTML strict

    tochiromifune, Jan 13, 2006, in forum: HTML
    Replies:
    8
    Views:
    8,589
  4. irsan
    Replies:
    1
    Views:
    832
    Philippe
    May 16, 2004
  5. Usha2009
    Replies:
    0
    Views:
    1,118
    Usha2009
    Dec 20, 2009
Loading...

Share This Page