This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Invoking a servlet with document
- To: "'XSL-List at lists dot mulberrytech dot com'" <XSL-List at lists dot mulberrytech dot com>
- Subject: [xsl] Invoking a servlet with document
- From: "Crook, Charles" <CrookC at tvratings dot com>
- Date: Fri, 31 Aug 2001 08:34:44 -0400
- Reply-To: xsl-list at lists dot mulberrytech dot com
>From the earlier postings about using document to get content:
<xsl:variable name="httpReq"
select="document('http://www.w3schools.com/xml/note.xml')"/>
<xsl:template match="/">
<xsl:copy-of select="$httpReq" />
</xsl:template>
Couldn't this also be a call to a servlet that returns content?
<xsl:variable name="httpReq"
select="document('http://mydomain.com/ContentServlet')"/>
I was thinking of using this to generate page layouts, such as menus, which
are dynamically built by an application server's components.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list