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

Re: types of input...

Subject: Re: types of input...
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Mon, 6 Jan 2003 16:25:07 +0000
Re:  types of input...
Hi Sam,

> I know that xslt can output XML, HTML, or TEXT.  I also
> thought that I read somewhere that it can take TEXT as input.
> Is that correct or am I mistaken?

It depends how you look at it. Technically, XSLT takes a node tree as
input. That node tree is most commonly and most easily generated by
parsing an XML document, so we'd normally say that XSLT takes an XML
document as input.

However a node tree *can* be generated in other ways, for example from
a comma-delimited file. You usually have to write something special to
get a non-XML document to be seen as a node tree, but there's nothing
to stop you from doing that.

As far as accessing documents from within a stylesheet is concerned,
in XSLT 1.0, the document() function accesses an XML document and
creates a node tree from it. In XSLT 2.0, the unparsed-text() function
opens any text file and creates a string from it; you could use this
to create a stylesheet that processes a text file, and with XSLT 2.0's
regular expression support you could do quite a lot with that.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


 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.