|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Output HTML fragments
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








