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

RE: why doesn't this do what i think it should?

Subject: RE: why doesn't this do what i think it should?
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Fri, 9 Mar 2001 23:11:52 -0000
RE:  why doesn't this do what i think it should?
> Why doesn't this do what I think it should?
> XSLT:
>
> <xsl:stylesheet
>    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>    xmlns="http://www.w3.org/TR/xhtml1/strict" version="1.0">
> <!--
> It copies out the bbb's
> -->
> <newaaa>
> <xsl:strip-space elements="*"/>
> <xsl:output method = "xml"/>
> <xsl:template match="los-of-other-tags"></xsl:template>
> <xsl:template match="bbb">
> <xsl:copy-of select="self::*"/>
> <xsl:apply-templates/>
> </xsl:template>
> </newaaa>
> </xsl:stylesheet>
>

Well I would expect a conformant XSLT processor to reject it as an error.
xsl:strip-space, xsl:output, and xsl:template are allowed only as top-level
elements, that is, children of xsl:stylesheet. Which processor are you
using?

Why do people writing stylesheets think they can invent new syntax and
semantics as they go along? This is one of the more imaginative inventions I
have seen.

Mike Kay
Software AG


 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.