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

Re: Well-formed

Subject: Re: Well-formed
From: Mike Brown <mike@xxxxxxxx>
Date: Tue, 4 Jul 2000 12:37:20 -0600 (MDT)
Re: Well-formed
> Does output have to be well-formed as it appears in the xsl stylesheet,
> or just the way that it will appear in the resulting output document.

As others have mentioned, well-formed, as XSL is XML.

I would add, for better understanding:

The stylesheet is not a specification for literal output. It is a set of
instructions which are first interpreted as an abstract tree of nodes,
themselves, before the XSLT processor begins to interpret and execute
them.

The language affords some convenience in that it lets you place "literal
result elements" -- elements that are not in the namespace reserved for
XSLT instructions -- this stylesheet tree, thus obviating the need to use
xsl:element and xsl:attribute instructions every time you want to create
elements and attributes in the result tree. This is what you're doing with
the <fo:foo/> elements in your stylesheet; they get copied to the result
tree as-is, along with the invisible namespace nodes they may have
inherited from further up in the stylesheet tree.

After the result tree has been created, some kind of (linear) output *may*
be derived from it. The xsl:output instruction and certain other
attributes on other instructions give the processor hints as to what
kind of output you would like, if it indeed supports output. I think they
all do, but the spec says they don't have to.


P.S. If you're American, Happy Independence Day, or,
as I think it is known in the UK, Good Riddance Day.

   - Mike
____________________________________________________________________
Mike "B.S." Brown, software engineer at        My XML/XSL resources:
webb.net in Denver, Colorado, USA           http://www.skew.org/xml/


 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.