This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Output HTML fragments
- To: "'XSL-List at mulberrytech dot com'" <XSL-List at mulberrytech dot com>
- Subject: Output HTML fragments
- From: "Sellmer-Brüls, Barbara" <B dot Sellmer-Bruels at klopotek dot de>
- Date: Fri, 15 Sep 2000 21:49:13 +0200
- Reply-To: xsl-list at mulberrytech dot com
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