[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
>-----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
|
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
|