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

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

Subject: RE: !!!showing HTML data in XML files using XSL!!!
From: "Chris Bayes" <Chris@xxxxxxxxxxx>
Date: Fri, 30 Mar 2001 08:36:33 +0100
xml showing with xsl
I'm sure you are wrong. You don't have a template that matches either I or B
elements so when the "text" template does an apply-templates only the
default ones fire so all you will get it the text. If I try it with xsxml i
      here is some info

You need the following template to get it to work

<xsl:template match="*|@*">
		<xsl:apply-templates select="@* | * | comment() | processing-instruction()
| text()"/>

The one you have <xsl:template match="@*"> only matches attributes and you
don't have a single attribute in your xml

Ciao Chris

XML/XSL Portal

>-----Original Message-----
>From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
>[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Rosa I-Ting
>Sent: 30 March 2001 08:06
>To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
>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:
><text><I><B>here is some info</B></I></text>
>is this
><I><B>here is some info</B></I> instead of having the text italiced or
><?xml version="1.0" encoding="UTF-8"?>
><xsl:stylesheet version="1.0"
><xsl:template match="@*">
>	<xsl:copy>
>		<xsl:apply-templates
>	</xsl:copy>
><xsl:template match="root">
>	<xsl:apply-templates />
><xsl:template match="text">
>	<xsl:apply-templates />
>How can I fix that?
>Thanks in advance!
> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

 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.