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

Why does my streaming program hang when the input is a

Subject: Why does my streaming program hang when the input is a streaming web site ?
From: "Costello, Roger L. costello@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 7 Jun 2014 13:50:49 -0000
 Why does my streaming program hang when the input is a
Hi Folks,

This web site emits a continuous stream of XML:

http://xmpp.wordpress.com:8008/firehose.xml?type=text/plain

(Neat! Thanks George!)

You can open a browser and plug in that URL to see the XML. The XML is a
stream of Atom <entry> elements inside a <stream> root element.

I have created a simple XSLT program which connects to that web site and
outputs the value of each Atom <title> element. Below is my XSLT program. When
I run the XSLT program from a DoS command line I get nothing - it just hangs
forever. I am using the latest version of Saxon (9.1.5j). Here's how I run it
from the command line:

java saxon9ee.jar -o:Titles.html test.xml Show-Titles.xsl

Any thoughts on why the command line hangs and I get no output?

Here is my XSLT program:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:atom="http://www.w3.org/2005/Atom"
                version="3.0">

    <xsl:output method="html" />

    <xsl:template match="/">
        <xsl:stream
href="http://xmpp.wordpress.com:8008/firehose.xml?type=text/plain">
            <html>
                <body>
                    <xsl:for-each
select="stream/atom:entry/atom:source/atom:title">
                        <p><xsl:value-of select="." /></p>
                    </xsl:for-each>
                </body>
            </html>
        </xsl:stream>
    </xsl:template>

</xsl:stylesheet>

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.