Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > img tag XSLT->XHTML

Reply
Thread Tools

img tag XSLT->XHTML

 
 
full_philNO@SPAMyahooPLEASE.fr
Guest
Posts: n/a
 
      05-15-2004
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"
xmlnssl="http://www.w3.org/1999/XSL/Transform">
<xslutput 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
 
Reply With Quote
 
 
 
 
Martin Honnen
Guest
Posts: n/a
 
      05-16-2004


http://www.velocityreviews.com/forums/(E-Mail Removed) 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"
> xmlnssl="http://www.w3.org/1999/XSL/Transform">
> <xslutput 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/

 
Reply With Quote
 
 
 
 
Philippe
Guest
Posts: n/a
 
      05-16-2004
On Sun, 16 May 2004 11:42:32 +0200, Martin Honnen <(E-Mail Removed)>
wrote:

>
>
>(E-Mail Removed) 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"
>> xmlnssl="http://www.w3.org/1999/XSL/Transform">
>> <xslutput 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"


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
putting img above/bellow img ? Jopek HTML 7 04-26-2009 10:26 PM
how to replace this like <img width=100 ...> with <img width="100" ...> zhanye815@gmail.com Perl Misc 7 06-21-2006 11:16 PM
how do u invoke Tag b's Tag Handler from within Tag a's tag Handler? shruds Java 1 01-27-2006 03:00 AM
Problem: <img></img> Philipp Lenssen XML 15 07-03-2005 09:23 AM
how to download img from html img tag news.austin.rr.com ASP .Net 2 04-27-2005 06:25 PM



Advertisments