Questions tagged [stx]

STX refers to the Streaming Transformations for XML language and should be used on questions related to the usage of the language.

Streaming Transformations for XML (STX) is a one-pass transformation language for XML documents. STX is intended as a high-speed, low memory consumption alternative to XSLT, using the W3C XQuery 1.0 and XPath 2.0 Data Model. Since STX does not require the construction of an in-memory tree, it is suitable for use in resource constrained scenarios.

It resembles XSLT syntactically, however being a streaming language it does not need to load the full DOM into memory the way XSLT does.

This language is very much a niche language, and the future of it is somewhat uncertain given that XSLT 2.1 should have some streaming functionality implemented and that there is really only one implementation of it - Joost http://joost.sourceforge.net/

13 questions
6
votes
3 answers

XSLT with Xalan vs. STX with Joost

Where can I find performance metrics (memory/time) for a non-trivial example of using XSLT (with Xalan) compared to using STX (with Joost)
Vihung
  • 12,947
  • 16
  • 64
  • 90
4
votes
4 answers

Efficient merging of multiple, large xml files into one

I searched the web and I searched stackoverflow up and down. No solution. Although I found solutions how to do this within pure xslt here. But the problem is that the resulting xml will be several hundred MB large. So I must do this with SAX in…
Karussell
  • 17,085
  • 16
  • 97
  • 197
4
votes
10 answers

Doing XML extracts with XSLT without having to read the whole DOM tree into memory?

I have a situation where I want to extract some information from some very large but regular XML files (just had to do it with a 500 Mb file), and where XSLT would be perfect. Unfortunately those XSLT implementations I am aware of (except the most…
Thorbjørn Ravn Andersen
  • 73,784
  • 33
  • 194
  • 347
4
votes
1 answer

Replacing a special character from R in a MySQL table

I have a MySQL table that I am acessing from R using the package "RODBC". A few of the columns has long concatenated strings separated by the STX character (\x02). I have shown a screen print of the the character below (the character is circled): I…
Ravi
  • 3,223
  • 7
  • 37
  • 49
2
votes
1 answer

Locating STX and ETX in a String in C++

Is there a way to detect STX (Start of Text) and ETX (End of Text) character sequences in a message received by recv() in c++? I'm trying fix any partial reads that may happen in TCP so that I can reform the complete message. Thank you! EDIT1: Did…
Izza
  • 2,389
  • 8
  • 38
  • 60
1
vote
1 answer

STX: How to process elements that have a more higher level than a matched element has?

...or maybe somehow get child's content? Hi guys, I'm using STX because I've got huge XML files. I have some input vsDataF
0
votes
1 answer

Matching two different blocks in XML using STX parser

I have a large XML file that I am trying to match two blocks in by id using the java joost implementation for STX. This is my XML file:
srgplv
  • 3
  • 1
0
votes
1 answer

Java STX CDATA parsing

I am trying to anonymize an XML Export of confluence. I found their export cleanner jar: https://confluence.atlassian.com/doc/content-anonymizer-for-data-backups-134795.html I have modified the clean.stx to remove all users like this:
Nandmp
  • 11
  • 3
0
votes
2 answers

Sending/Receiving messages framed for serial communication over .Net Socket

We have done some basic TCP communication, but have a few questions. We are communicating with a TCP server where the transaction flow is described as follows: The sender initiates the transaction by sending an STX (ASCII 0x02) character, then…
Steven King
  • 562
  • 1
  • 8
  • 13
0
votes
1 answer

Difference between LMDB and STX btrees

I would like to use in-memory btree. I am considering LMDB and STX. I appreciate help in understanding the difference between them. Among the others in context with concurrency (I'm not sure if STX supports it)
revit
  • 361
  • 1
  • 3
  • 10
0
votes
1 answer

c# rs485 crc for stx data etx crc

I would like to calculate crc for the message to be sent to a dispenser. the message format is STX + DATA + ETX + CRC and it is written that "crc may be calulated by using AND operator between 7fh and sum of all characters including ETX, excluding…
kayhan yüksel
  • 378
  • 2
  • 9
  • 24
0
votes
1 answer

How to indent STX transformation output(type "XML")?

How to indent the output XML that is generated as a result of STX transformation. I searched for it in the official documentation by looking at the transform element, but found that it does not have any indent attribute, like XSLT has. Is there a…
Manas
  • 109
  • 3
  • 11
0
votes
0 answers

Is [0x02, 0x03, 0x00] valid data?

I am trying to write a program that returns valid data according to a message protocol within a byte[] array. I have: STX: 0x02 ETX: 0X03 DLE: 0x10 //Delimiter Valid data is when the byte[] array contains STX, ETX, data and a correctly calculated…
Johnathan Au
  • 5,244
  • 18
  • 70
  • 128