The nice thing about pipelines is that you can just "run them" without worrying about "web stuff".
We can setup the pipeline by creating a new pipeline document in netbeans:
<p:pipe xmlns:p="urn:publicid:IDN+smallx.com:pipeline:1.0" name="get-tides" xmlns:c="urn:publicid:IDN+smallx.com:component-language:1.0" xmlns:f="urn:publicid:IDN+smallx.com:server:forms:post:1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:t="http://www.smallx.com/services/tideinfo/2005" > <p:identity/> </p:pipe>
We can translate the request into a URL request for the URL step by replacing 'p:identity' with:
<p:template> <xsl:for-each select="t:tideinfo"> <xsl:copy> <xsl:copy-of select="@*"/> <t:tide-data> <c:url-get href="http://tidesonline.nos.noaa.gov/data_read.shtml?station_info={@location}" parse-as-html="true"/> </t:tide-data> </xsl:copy> </xsl:for-each> </p:template>
The [p:]template step is a short-hand for XSLT. It runs one template on the document info item.