[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: Newbie Needs Help
Subject: Re: Newbie Needs Help From: Guy_Murphy@xxxxxxxxxx Date: Thu, 17 Dec 1998 17:13:42 +0000 |
Hi. IE5b2 only as yet impliments the tranformative part of XSL not the formatting objects, so you'd need to replay the block elements with DIVs. Also to output the content of an element implicitly when not handled elsewhere you'd need to define a "catch-all" template". So you might need something like... <xsl:stylesheet xmlns:xsl="http//www.w3.org/TR/WD-xsl"> <xsl:template> <xsl:value-of /> </xsl:template> <xsl:template match="/"> <html> <head> <title>Test</title> </head> <body> <xsl:apply-templates /> </body> </html> </xsl:template> <xsl:template match= "greeting"> <div style="color:red; font-size: 16pt"> <xsl:apply-templates /> </div> </xsl:template> </xsl:stylesheet> Please note, this is off the top of my head, and I haven't tested it. I would strongly urge if you plan on using the IE5b2 XSL that you read the documentation at http://www.microsoft.com/xml/ Good luck Guy. xsl-list@xxxxxxxxxxxxxxxx on 12/17/98 06:16:57 PM To: xsl-list@xxxxxxxxxxxxxxxx cc: (bcc: Guy Murphy/UK/MAID) Subject: Newbie Needs Help Just starting out in XML and XSL and tried to do a very simple document. The XML is: <?xml version="1.0"?> <?xml:stylesheet type="text/xsl" href="test.xsl"?> <greeting>Hello XSL!</greeting> and the XSL is: <xsl:stylesheet xmlns:xsl="http//www.w3.org/TR/WD-xsl" xmlns:fo="http//www.w3.org/TR/WD-xsl/FO" result-ns="fo"> <xsl:template match= "greeting"> <fo:block color="red" font-size="16pt"> <process-children/> </fo:block> </xsl:template> </xsl:stylesheet> So I open the greeting.xml in IE Beta2 and I get a blank screen. I randomly change something in either document to generate an error message, so I know the browser sees the XML and is "gluing" it to the XSL. Why am I getting a blank screen? Thanks in advance for any help. -Robert XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Newbie Needs Help, Paul Prescod | Thread | Re: Newbie Needs Help, John Roth |
Re: alternating tags in a list?, Paul Prescod | Date | Re: XSL intent survey, Oren Ben-Kiki |
Month |