[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Embed XSL in XML

Subject: Embed XSL in XML
From: Maulik Modi <MModi@xxxxxxxxxx>
Date: Fri, 18 Oct 2002 11:22:06 -0500
embed xsl in xml
I have researched this topic in the FAQ and also on the w3c site. And based
on what I have found, the following code should work. However, it does not!
I am using IE6 as the client. Here is an example of the code. Note that if I
take the same XSLT code and put it in a separate file and reference the xsl
directly and use IE6 as a client or do a standalone transformation with my
favorite transformer like Saxon, it works just fine.

Any help is appreciated.

<?xml-stylesheet type="text/xml" href="#stylesheet"?>
<!DOCTYPE responses [
	<!ATTLIST xsl:stylesheet
	id ID #REQUIRED
>
]>
<responses>
	<xsl:stylesheet id="stylesheet" version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:template match="response">
		<xsl:value-of select="//content"
disable-output-escaping="yes"/>
	</xsl:template>
	</xsl:stylesheet>
	<response>
		<request>
			<ID>101</ID>
			<content>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
3.2//EN"&gt;
&lt;HTML&gt;
	&lt;HEAD&gt;
		&lt;TITLE&gt;Test Info&lt;/TITLE&gt;
	&lt;LINK MEDIA="screen, print" REL="StyleSheet" TYPE="text/css"
HREF="http://link/to/the/default.css"&gt;
	&lt;/HEAD&gt;
	&lt;BODY BGCOLOR=#FFFFFF&gt;

			&lt;table WIDTH=690 ALIGN=center BORDER=0
CELLSPACING=0 CELLPADDING=0&gt;
			&lt;tr align="left"&gt;
				&lt;td COLSPAN=2 ALIGN=RIGHT WIDTH=690&gt;
					&lt;BR&gt;&lt;SPAN
class="dl"&gt;&lt;a
href="javascript:window.close();"&gt;Close&lt;/a&gt;&lt;/SPAN&gt;
				&lt;/td&gt;
			&lt;/tr&gt;
			&lt;/table&gt;
			&lt;b&gt;Test text here&lt;/b&gt;
	&lt;/BODY&gt;
&lt;/HTML&gt;</content>
		</request>
	</response>
</responses>

TIA,

Maulik

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.