Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Streaming Transformations for XML
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
'''Streaming Transformations for XML''' ('''STX''') is an [[XML transformation language]] intended as a high-speed, low memory consumption alternative to [[XSLT]] version 1.0 and 2.0. Current work on XSLT 3.0 includes Streaming capabilities. == Overview == STX is an [[XML]] standard for efficient processing of stream-based XML. Basic XSLT is not well suited to stream based processing, and STX fills this niche. Conventional XML processing involves loading the entire XML document into memory for use. In contrast, [[Simple API for XML|SAX]] [[Streaming XML|streams XML]] events such as "open element," "close element," and "text node" so that other software can begin interpreting information immediately, before the end of the file is reached. Unfortunately some software can't effectively use XML fragments this way and must build up the whole document to begin processing. So is the case with XSLT. Because XSLT's [[XPath]] can select any node throughout the document it must have the entire document available in memory. STX only allows queries immediately surrounding the current node so it can quickly start transforming and outputting SAX event nodes as they arrive. As it can discard nodes immediately after processing, memory use is significantly lower than that of XSLT. Having a limited query scope is a defining characteristic of STX. This architectural decision intentionally marginalises STX as a niche language. Indeed, it would be wrong to say that STX is a general purpose transformation language; however, if your transformation needs can be met by STX then it's an efficient and smart choice. == Specifications == STX's query language is called [[STXPath]] and is based on [[XPath 2.0]]. Implementations of STX are available in [[Java (programming language)|Java]] and [[Perl]]. == Similar projects == Unlike STX which is declared using an XML syntax, these two projects associate SAX events with [[Callback (computer science)|callback]] functions: * [[Xineo OAX]] * [[SAX Adapter]] == External links == * [http://stx.sourceforge.net/ STX home page] * [http://www.xml.com/pub/a/2003/02/26/stx.html An Introduction to Streaming Transformations for XML] [[Category:XML-based standards]]
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)