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

RE: XSL and Well-formed HTML

Subject: RE: XSL and Well-formed HTML
From: "Vlattas, Christina" <CVlattas@xxxxxxx>
Date: Wed, 3 May 2000 11:22:43 -0400
xsl well formed
> I have to get this to work with IE 5.

> I'm getting the message -  'Keyword xsl:copy-of may not be used here.'

this list is primarily about the W3C style language XSL (that consists
of XSLT and XSL FO). The language known as XSL that is used by default in
IE5 is a completely different language.

There will be some method to do what you want in IE5 (but I don't know
what it is) or alternatively you can use microsofts preview release
to update the XSL system  in IE5 to the standard W3C XSLT namespace, and
then you could use xsl:copy-of.


I have figured it out using xsl:copy, but it is not as clean of a solution
as xsl:copy-of

XML:
<DetectionPop>
	<UL>
		<LI><text>Advertisement and sales <B><U>literature 
                materials</U></B></text>
		</LI>
		<LI><text>Advertisement and sales literature material where
problems
                are indicated in the materials or with the firm's history in
this 
                area is poor</text>
		</LI>
 		<LI><text>Advertisements for <U>unregistered private 
                 offerings</U></text>
		</LI>
	</UL>		
</DetectionPop>

XSL:
<xsl:template match="DetectionPop">
	<p>
	<text><b>Detection Population:</b></text><br/>
	<xsl:apply-templates select="*">
		<!-- recursively apply this template to them -->
		<xsl:template>
			<xsl:copy>
				<xsl:apply-templates select="@* | * |
comment() | pi() | text()"/>
			</xsl:copy>
		</xsl:template>
	</xsl:apply-templates>
	</p>
</xsl:template>

Hope this helps anyone with the same problems.

Christina





 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.