Subject: Re: [xsl] Default Rendering of HTML? From: Shawn <sgrover@xxxxxxxxxxxxxx> Date: Sun, 21 Nov 2004 13:13:10 -0700 |
Thanks for the response. In the examples below, I'm trying to get the CONTENTS of the <text> element to be placed into the rendered document, yet still have the HTML processed properly by the browser. Currently, the templates work, except the HTML is not rendered - it gets stripped from the output. Thanks for any tips. Shawn (ps. I'm sure I've missed something stupid, please excuse me for being such a newbie here....) Here is the XSL: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/news"> <xsl:apply-templates/> </xsl:template> <xsl:template match="item"> <p> <span> <xsl:attribute name="class">newsDate</xsl:attribute> <xsl:value-of select="date"/> </span> <br/> <span> <xsl:attribute name="class">newsTitle</xsl:attribute> <xsl:value-of select="title"/> </span> <br/> <xsl:value-of select="text"/> </p> </xsl:template> </xsl:stylesheet> Here is snippet of the XML in question: <news> <item> <date>7 Nov 2004</date> <title>December Meeting</title> <text> <strong>Topics</strong>: <ul> <li>President&s Welcome</li> <ul> <li>Business of the group</li> <li>Membership</li> </ul> <li>SIG report</li> <li>Presentation:</li> <ul> <li><b>TBA</b><br/>:: TBA</li> </ul> <li>Any other relevant topics</li> <li>Question & Answer period</li> <li>GPG key exchange</li> <li>Open Floor</li> </ul> <p> <strong>Time</strong>: </p> <ul> <li>7:00pm - 9:30pm, Wednesday December 1st, 2004<br/>doors open at 6:45pm and close at 10:00pm</li> </ul> <p> <strong>Location</strong>: </p> <ul> <li><b>DeVry</b> - room 108, main floor, North end of the building<br/>DeVry Institute of Technology 2700, 3rd Ave. S.E.</li> </ul> <p> <strong>Door Prize(s)</strong>: <ul> <li>Linux Magazine (December 2004)</li> <li>O'Reilly book</li> </ul> </p> </text> </item> </news> On Sunday 21 November 2004 06:32, xptm wrote: > <testelement> is not a html tag, so how do you want it to display? Show the > XML and the XSL you have, and what do you want as a result, there are lots > of great expertises in the list that will help (i'm not one of the experts, > but try to help as well).
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Default Rendering of HTML, xptm | Thread | Re: [xsl] Default Rendering of HTML, J.Pietschmann |
Re: [xsl] Grouping while sorting, Ragulf Pickaxe | Date | Re: [xsl] Grouping while sorting, M. David Peterson |
Month |