[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Output HTML fragments

Subject: Output HTML fragments
From: "Sellmer-Brüls, Barbara" <B.Sellmer-Bruels@xxxxxxxxxxx>
Date: Fri, 15 Sep 2000 21:49:13 +0200
html fragments

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:
>   <ROW>
>    <SKU>12345</SKU>
>    <DESC>Big Red Apple</DESC>
>    <BLURB>
>      &lt;ul>
>        &lt;li>&lt;b>Delicious&lt;/b>&lt;/li>
>        &lt;li>&lt;b>Nutritious&lt;/b>&lt;/li>
>      &lt;/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:

    <DESC>Big Red Apple</DESC>
    <BLURB text_type="taste">
        This is  <b>delicious</b> and nutritious.

copy-of results in the text and the markup PLUS the attribute

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

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.