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

xsl:comment and xsl:pi containing template elements?

Subject: xsl:comment and xsl:pi containing template elements?
From: Tyler Baker <tyler@xxxxxxxxxxx>
Date: Fri, 18 Dec 1998 16:15:28 -0500
xsl pi
In looking at the DTD for the recently released XSL spec I noticed that
besides xsl:element containing template data (character data,
instructions, and result elements), the elements xsl:comment, xsl:pi,
and xsl:attribute can contain template data.

For xsl:comment I can kind of understand how this would be useful.
Through macros you could use this as a sloppy version of ifdefing
output.  For xsl:pi I suppose you could make the same argument.  For
these two elements you open a lot of holes with producing correct
output.  For example, how do you embed a comment within a comment
without escaping (is this the desired way to process output?).  The same
goes for embedding pi's within pi's.

However, how on earth could you have a literal result element inside an
attribute?

It looks like this draft makes things very, very, general as far as the
processing model in which it says that a valid XML document in
conjunction with a valid stylesheet may legally produce illegal output.

Is this the case, can someone clarify this?

Thanx,

Tyler

BTW, thank you XSL designers for having the forethought not to bloat XSL
with an embedded scripting solution.  My faith in XSL has been
rekindled.  Keep up the good work.


 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.