Click here to Skip to main content
16,008,010 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: Outputting a !DOCTYPE declaration from an XSL stylesheet Pin
Michael A. Barnhart5-May-02 2:56
Michael A. Barnhart5-May-02 2:56 
GeneralRe: Outputting a !DOCTYPE declaration from an XSL stylesheet Pin
Domenic Denicola5-May-02 6:24
Domenic Denicola5-May-02 6:24 
GeneralRe: Outputting a !DOCTYPE declaration from an XSL stylesheet Pin
Michael A. Barnhart5-May-02 8:47
Michael A. Barnhart5-May-02 8:47 
GeneralRe: Outputting a !DOCTYPE declaration from an XSL stylesheet Pin
Domenic Denicola5-May-02 11:29
Domenic Denicola5-May-02 11:29 
GeneralRe: Outputting a !DOCTYPE declaration from an XSL stylesheet Pin
Michael A. Barnhart5-May-02 12:59
Michael A. Barnhart5-May-02 12:59 
GeneralRe: Outputting a !DOCTYPE declaration from an XSL stylesheet Pin
Domenic Denicola5-May-02 15:16
Domenic Denicola5-May-02 15:16 
GeneralRe: Outputting a !DOCTYPE declaration from an XSL stylesheet Pin
Michael A. Barnhart6-May-02 0:45
Michael A. Barnhart6-May-02 0:45 
GeneralRe: Outputting a !DOCTYPE declaration from an XSL stylesheet Pin
Domenic Denicola8-May-02 12:22
Domenic Denicola8-May-02 12:22 
So, my XSL should like like this:

<?xml version="1.0" encoding="utf-8"?>

<xsl:stylesheet version="1.0">

	<xsl:output encoding="utf-8" />
	<xsl:template match="/">
		<xsl:text disable-output-escaping="yes">
			&lt;?xml version="1.0" encoding="utf-8"?&gt;
			&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;

		</xsl:text>

		<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
			<!-- Stuff here -->
		</html>
	</xsl:template>
</xsl:stylesheet>


And this will output:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<!-- The stuff that was where the comment was goes here -->
</html>


If you're not absolutely sure, could you write me quick program or give me the JScript code (not .NET) to just output the text? Whenever I do a view source in IE, it just gives me the original XML.

I would do that myself, but I'm stuck on this Windows 98 until I get a new hard drive Frown | :(

Thank you!

-Domenic Denicola- [CPUA 0x1337]
MadHamster Creations

"I was born human. But this was an accident of fate - a condition merely of time and place. I believe it's something we have the power to change..."

GeneralRe: Outputting a !DOCTYPE declaration from an XSL stylesheet Pin
Paul Watson9-May-02 0:06
sitebuilderPaul Watson9-May-02 0:06 
GeneralRe: Outputting a !DOCTYPE declaration from an XSL stylesheet Pin
Michael A. Barnhart9-May-02 0:46
Michael A. Barnhart9-May-02 0:46 
GeneralRe: Outputting a !DOCTYPE declaration from an XSL stylesheet Pin
Paul Watson9-May-02 6:14
sitebuilderPaul Watson9-May-02 6:14 
GeneralRe: Outputting a !DOCTYPE declaration from an XSL stylesheet Pin
Domenic Denicola10-May-02 3:59
Domenic Denicola10-May-02 3:59 
GeneralRe: Outputting a !DOCTYPE declaration from an XSL stylesheet Pin
Domenic Denicola10-May-02 4:08
Domenic Denicola10-May-02 4:08 
GeneralRe: Outputting a !DOCTYPE declaration from an XSL stylesheet (pantyshos Pin
Paul Watson12-May-02 23:24
sitebuilderPaul Watson12-May-02 23:24 
GeneralMicrosoft Sharepoint Portal Pin
tho28-Apr-02 15:45
tho28-Apr-02 15:45 
GeneralRe: Microsoft Sharepoint Portal Pin
MS le Roux28-Apr-02 20:26
MS le Roux28-Apr-02 20:26 
GeneralRe: Microsoft Sharepoint Portal Pin
tho29-Apr-02 1:20
tho29-Apr-02 1:20 
GeneralRe: Microsoft Sharepoint Portal Pin
MS le Roux29-Apr-02 2:00
MS le Roux29-Apr-02 2:00 
GeneralXML with special characters Pin
Stefan Spenz25-Apr-02 3:11
Stefan Spenz25-Apr-02 3:11 
GeneralRe: XML with special characters Pin
MS le Roux25-Apr-02 4:31
MS le Roux25-Apr-02 4:31 
GeneralRe: XML with special characters Pin
Stefan Spenz25-Apr-02 22:35
Stefan Spenz25-Apr-02 22:35 
GeneralRe: XML with special characters Pin
MS le Roux25-Apr-02 22:55
MS le Roux25-Apr-02 22:55 
GeneralBlueberry Pin
SimonS2-May-02 4:30
SimonS2-May-02 4:30 
GeneralIE 6 appendChild HELL Pin
Christian Graus24-Apr-02 2:02
protectorChristian Graus24-Apr-02 2:02 
GeneralRe: IE 6 appendChild HELL Pin
Tom Archer24-Apr-02 3:10
Tom Archer24-Apr-02 3:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.