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

Re: XSL-List Digest V4 #1469

Subject: Re: XSL-List Digest V4 #1469
From: "Keith Anderson" <roobarb@xxxxxxxxxxx>
Date: Thu, 10 Jul 2003 16:51:33 +0000
keith anderson body
> Date: Thu, 10 Jul 2003 09:23:11 +0100
> From: "Jim Fuller" <jim.fuller@xxxxxxxxxxxxxxxxxx>
> Subject: RE:  output html source
> 
> > -----Original Message-----
> > From: Keith Anderson [mailto:roobarb@xxxxxxxxxxx]
> > Sent: 10 July 2003 08:53
> > Subject:  output html source
> > I have some xsl that generates html output using the user's
> > browser. Is there a technique for tweaking the xsl so it
> > outputs the html source ?

...

> you could do something like the following;
> 
> <?xml version="1.0"?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
> xmlns:msxsl="urn:schemas-microsoft-com:xslt"
> >
> 	<xsl:output method = "xml" encoding="utf-8" />
> 	
> 	<xsl:template match="/">
> 	<xsl:variable name="holdresult">	
> 		<html>
> 		<head>
> 			<title>test</title>
> 		</head>
> 			<body>test</body>
> 		</html>
> 	</xsl:variable>
> 	
> 	<xsl:copy-of select="$holdresult)"/>
> 
> 	</xsl:template>
> 	
> </xsl:stylesheet>
> 
> depending on how you want to see the source, u could use ms scripting or
> reapply $holdresult ( remember to use node-set e.g. in IE
> <xsl:apply-templates select="msxsl:node-set($holdresult)"/> ) to a series
> of more templates.

Thanks for this suggestion Jim. Unfortunately I don't think
node-set() is guaranteed to be available in my users'
browsers, so I can't see how to use $holdresult . Perhaps
I'm asking for something that's not possible on my somewhat
restricted platform.

...
-- 
Keith Anderson (digested)

-- 
http://www.fastmail.fm - And now for something completely different?

 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.