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

RE: xmlspy and copy-of

Subject: RE: xmlspy and copy-of
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Fri, 11 May 2001 14:10:46 +0100
xmlspy examples
> hi, I am using xmlspy 3.5; in several faqs I saw examples
> like for example:
> <xsl:copy-of select="node()">
> <xsl:apply-templates select="whatever_you_want"/>
> </xsl:copy-of>
>
> but if I try this with xmlspy, I get an error:
> "apply-templates not allowed inside copy-of"

It's right; your syntax is wrong. Perhaps you meant to use <xsl:copy> rather
than <xsl:copy-of>.
>
> is this a bug inside of xmlspy???

No. In any case xmlspy isn't doing the XSLT processing: it's just a wrapper
that invokes the XSLT processor of your choice (by default, MSXML3).
>
> also, the use of <xsl:copy-of select="node()"/>
> always returns the content of an element, but never
> the node itself.

node() is short for child::node(): it selects the children of the context
node.

I think you're going to have to do some reading to learn this language, it's
not possible to learn it by looking at examples and guessing what they might
mean.

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.