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

AW: !!!showing HTML data in XML files using XSL!!!

Subject: AW: !!!showing HTML data in XML files using XSL!!!
From: "Marcus Klinge" <klinge@xxxxxxxxxxxxxxx>
Date: Fri, 30 Mar 2001 10:21:25 +0200
xsl html data
Hi Rosa.
Please, try something like this:

<xsl:template match="TEXT">
	<xsl:apply-templates select="node()"/>
</xsl:template>

<xsl:template match="I">
	<xsl:apply-templates select"node()"/>
</xsl:template>

We did a project that involved using comlate HTML-tables in our XML.
One approach that proved to work was writing the HTML-Tags in capitals (like
we do our XML) and the attributes in small letters.
Something like this:
	<table width="500">
becomes
	<TABLE width="500">

hope this was of help
marcus

>-----Original Message-----
>Cheng
>Subject:  !!!showing HTML data in XML files using XSL!!!
>
>
>I did the XSL at the end, but what I'd get back if the xml is like this:
>
><root>
><text><I><B>here is some info</B></I></text>
></root>
>
>is this
>
><I><B>here is some info</B></I> instead of having the text italiced or
>bolded...
>
>XSL:
><?xml version="1.0" encoding="UTF-8"?>
><xsl:stylesheet version="1.0"
>xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>
><xsl:template match="@*">
>	<xsl:copy>
>		<xsl:apply-templates
>select="@*"/>
>	</xsl:copy>
></xsl:template>
>
><xsl:template match="root">
><html>
><body>
>	<xsl:apply-templates />
></body>
></html>
></xsl:template>
><xsl:template match="text">
>	<xsl:apply-templates />
></xsl:template>
></xsl:stylesheet>
>
>How can I fix that?
>
>
>Thanks in advance!
>
>
>Rosa


 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-2011 All Rights Reserved.