Altova Mailing List Archives

RE: [xsl] want to process file from STDIN

From: "Michael Kay" <mhk@--------->
Date: 11/6/2003 5:12:00 AM
> Is it possible to use saxon to apply a stylesheet to a file 
> that is read 
> from STDIN - I would like to apply a series of stylesheets in 
> a pipeline. Regards, Shipra
In recent releases you can use "-" to indicate input from standard

But this isn't the best way of doing a pipeline. You don't need to
serialize the result tree and then parse it again. You can create a
pipeline of SAX filters, either by using the JAXP APIs, or by using the
saxon:next-in-chain extension.

Also, using standard input suffers from the fact that it doesn't have a
known base URI, which means that relative URIs in the document cannot be

Michael Kay

 XSL-List info and archive:


These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.