Subject: Output HTML fragments From: "Sellmer-Brüls, Barbara" <B.Sellmer-Bruels@xxxxxxxxxxx> Date: Fri, 15 Sep 2000 21:49:13 +0200 |
Hi, Hope this isn't boring, but another question concerning how to pass HTML fragments through the xsl-processor. Steve Muench already recommended the following: > The typical FAQ in this area is that if you are generating > query results that contain HTML fragments like: > > <ROWSET> > <ROW> > <SKU>12345</SKU> > <DESC>Big Red Apple</DESC> > <BLURB> > <ul> > <li><b>Delicious</b></li> > <li><b>Nutritious</b></li> > </ul> > </BLURB> > </ROW> > </ROWSET> > > And you want the HTML "blurb" to showup "verbatim" > in the output: > > for this you'd use (assuming the current node is "ROWSET/ROW"): > > <xsl:value-of disable-output-escaping="yes" > select="BLURB"/> > > This will produce: > > <ul> > <li><b>Delicious</b></li> > <li><b>Nutritious</b></li> > </ul> How do I cope with the following: <ROWSET> <ROW> <SKU>12345</SKU> <DESC>Big Red Apple</DESC> <BLURB text_type="taste"> This is <b>delicious</b> and nutritious. </BLURB> </ROW> </ROWSET> copy-of results in the text and the markup PLUS the attribute text_type="taste". The result should be an html-file with exactly This is <b>delicious</b> and nutritious. Thanks + Cheers, Barbara --- Barbara Sellmer-Bruels Klopotek & Partner GmbH - Berlin E-Commerce XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: XSLT and SVG, Chris Bayes | Thread | Test (Again), uche . ogbuji |
XSLT and SVG, AndrewWatt2000 | Date | RE: breaking sorted material into s, Don Bruey |
Month |