[xsl] Newbie question cont--transformation chokes on img tag

Subject: [xsl] Newbie question cont--transformation chokes on img tag
From: Grant-Kathryn@xxxxxxxxxxxxxxxxx
Date: Fri, 24 May 2002 14:29:34 -0700
Hi all,

I've come across a new glitch in transforming my xhtml file.  It was doing
fine until I added an img tag (right before </body>)--then the
transformation resulted in a blank screen.  Files appear below.  Can anyone
tell me why this is happening and how to fix it?  

By the way, when I run the transformation at the command line using msxsl,
the image tag is converted to <img src="image85.gif"></img>.  But that
shouldn't be a problem, should it?  Also, when I view the xhtml file in the
browser before transformation, the image shows up fine.

Thanks in advance,

--------------------xhtml file-------------------------------
<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en">

<title>Testing Title</title>
	<div class="mgronly">
		<p>The first paragraph applies only to managers.</p>
	<div class="both">
		<p>Paragraph 2 applies to both investigators and
		<p>The third paragraph to both.</p>
	<div class="mgronly">
		<p>The last paragraph applies only to managers.</p>

<img src="image85.gif" />

-------------------end xhtml file-----------------------------

---------------------xsl file---------------------------------
<?xml version="1.0" encoding="UTF-8"?>


<xsl:output method="xml" encoding="UTF-8"/>

	<xsl:template match="*|@*|text()|comment()">

	<xsl:template match="xhtml:div[@class='mgronly']"/>

--------------------- end xsl file------------------------------

On the outside chance the problem is with msxml, here's the transformation
code I'm using:

<script type="text/javascript">
var xml = new ActiveXObject("MSXML2.DOMDocument")
xml.async = false

var xsl = new ActiveXObject("MSXML2.DOMDocument")
xsl.async = false


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread