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

Constructing Simple Content and Built-in Template Rule

Subject: Constructing Simple Content and Built-in Template Rules
From: Peter Gerstbach <peter@xxxxxxxxxxxx>
Date: Wed, 13 Apr 2005 10:33:36 +0200
constructing a built in
Hello,

I have a question about the relationship between the construction of simple
content and built-in template rules.

If I interprete the XSLT specification right, simple content (e.g. with
value-of) is constructed the same way as the built-in Template Rules work (with
apply-templates).

Given to following XML,

<root>
  <a>a</a>
  <b>b</b>
</root>

a stylesheet with only one root template with the instruction
<xsl:apply-templates select="root"/> does the same as a stylesheet with the
instruction <xsl:value-of select="root"/>, namely: "ab" (neglecting possible
whitespaces).

Is this always correct? Of course, assuming that there are no other templates
which could cause the built-in template rules not to be used.

Thanks,
Peter

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.