473,399 Members | 2,159 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

img tag XSLT->XHTML

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:output 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
Jul 20 '05 #1
2 6067


fu*********@SPAMyahooPLEASE.fr 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:output 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/

Jul 20 '05 #2
On Sun, 16 May 2004 11:42:32 +0200, Martin Honnen <ma*******@yahoo.de>
wrote:


fu*********@SPAMyahooPLEASE.fr 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:output 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"


Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Sergio del Amo | last post by:
Hi, I use the xslt functions provided by php. I am running in my computer the package xampp(www.apachefriends.org) which includes php/apache/mysql .. In this package the php includes the sablotron...
20
by: Bernd Fuhrmann | last post by:
Hi! I have some trouble with some simple stupid XSLT-stuff. My stylesheet: ------------- <?xml version="1.0" encoding="iso-8859-1"?> <xsl:stylesheet version="1.0"...
9
by: Jeff Rubard | last post by:
I am curious to know whether anyone has experience using XSLT for web XML (non-XHTML) styling, either with CSS or standalone. I myself have engaged in rather unsuccessful experiments with the...
3
by: johkar | last post by:
What is the proper doctype syntax for XHTML transitional??? Strict? How come XSLT doesn't preserve XHTML when it is compiled (Xalan)? Meaning, <br /> tags become <br> <input /> tags become...
13
by: Tjerk Wolterink | last post by:
Hello i've an xsl stylesheet that must support xhtml entities, my solution: ---- <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE xsl:stylesheet > <xsl:stylesheet version="1.0"...
2
by: Bond13579 | last post by:
Hi! I'm not an expert in XSL and XHTML so I need a little help! I have an XSL file that ends up using the ENTITY (varname) SYSTEM (file.xhtml) and then calls this variable which in turn outputs...
12
by: hawat.thufir | last post by:
I'm trying do some "screen scraping", and am using <http://www.oreilly.com/catalog/xmlhks/> for inspiration. First I'd like to convert XHTML to XML, or extract XML from XHTML, I'm not sure how...
12
by: Pierre Senellart | last post by:
I am going to teach a basic Web design course (fundamentals of HTML/CSS, plus some basic client-side (JavaScript) and server-side (PHP, perhaps XSLT) scripting). Most of the students do not have...
3
by: Martin Olson | last post by:
I'm trying to output valid xhtml 1.0 transitional with xslt -- my question is when dealing with elements that have self-closing tags such as <img /> and <input />... I'm getting closing tags on...
7
by: C.W.Holeman II | last post by:
For info on the context of my question see the end of this posting. From http://www.w3.org/TR/XHTMLplusMathMLplusSVG/: How can I validate the result of client-side XSLT transform which has...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.