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

RE: How to stream HTML tags included in XML using XSL

Subject: RE: How to stream HTML tags included in XML using XSL
From: Laurie Mann <laurie.mann@xxxxxxxxx>
Date: Tue, 25 Apr 2000 09:17:48 -0400
xsl apply templates html tags
>-----Original Message-----
>From: Marcel Ruff [mailto:ruff@xxxxxxxxxxxxx]
>we have a XML document and want to add some formatting elements,
>like <bold> or better <b> which should show up in the generated HTML
>file.
>
>How can we tell the XSL engine to stream such tags
>into the destination HTML file.
>
>Using CDATA works fine but is to not very smart to use in XML.
>
>I know we should not use formatting info in XML
>but sometimes it is easier to embed some HTML text into
>my XML.

"XSL 101:"

%%%%%

<xsl:template match="emphasis">
   <b><xsl:apply-templates/></b>
</xsl:template>

<xsl:template match="replaceable">
   <i><xsl:apply-templates/></i>
</xsl:template>

<xsl:template match="variablelist">
   <dl><xsl:apply-templates/></dl>
</xsl:template>

<xsl:template match="varlistentry/term">
   <dt><xsl:apply-templates/></dt>
</xsl:template>

<xsl:template match="itemizedlist">
   <ul><xsl:apply-templates/></ul>
</xsl:template>

<xsl:template match="itemizedlist/listitem">
   <li><xsl:apply-templates/></li>
</xsl:template>

<xsl:template match="blockquote">
   <blockquote><xsl:apply-templates/></blockquote>
</xsl:template>

<xsl:template match="programlisting">
   <blockquote><pre><xsl:apply-templates/></pre></blockquote>
</xsl:template>

<xsl:template match="ulink">
  <a href="{@url}"><xsl:apply-templates/></a>
</xsl:template>


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.