You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by Cliffano Subagio <cs...@yahoo.com.au> on 2002/05/19 13:58:55 UTC
jstl x:transform samples confusion
How to use external .xml and .xsl files with x:transform?
I can't find any examples at standard-examples.war.
And I had a look at an example here
http://www.onjava.com/pub/a/pub/a/onjava/2002/05/08/jstl.html?page=3
They recommend this
<c:import url="/books" var="xml"/>
<c:import url="/WEB-INF/xslt/bookDisplay.xsl" var="xslt"/>
<x:transform source="${xml}" xslt="${xslt}"/>
However, in JSTL beta 1, there is no attribute source in x:transform.
The examples at standard-examples.war (/xml/Transform.jsp) uses c:set to set
the content of the xml and xslt, how to grab them from the external files and
how to use them in x:transform?
TIA,
Cliffano Subagio
=====
Cliffano Subagio
http://briefcase.yahoo.com.au - Yahoo! Briefcase
- Save your important files online for easy access!
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: jstl x:transform samples confusion
Posted by Shawn Bayern <ba...@essentially.net>.
The article you refer to is out of date. You can use <c:import> to
retrieve them from external URLs or via the RequestDispatcher: e.g.,
<c:import var="xml" url="http://my/file.xml"/>
<c:import var="xslt url="/stylesheets/1.xslt"/>
--
Shawn Bayern
"JSP Standard Tag Library" http://www.jstlbook.com
(coming this summer from Manning Publications)
On Sun, 19 May 2002, Cliffano Subagio wrote:
> How to use external .xml and .xsl files with x:transform?
>
> I can't find any examples at standard-examples.war.
> And I had a look at an example here
> http://www.onjava.com/pub/a/pub/a/onjava/2002/05/08/jstl.html?page=3
> They recommend this
> <c:import url="/books" var="xml"/>
> <c:import url="/WEB-INF/xslt/bookDisplay.xsl" var="xslt"/>
> <x:transform source="${xml}" xslt="${xslt}"/>
>
> However, in JSTL beta 1, there is no attribute source in x:transform.
>
> The examples at standard-examples.war (/xml/Transform.jsp) uses c:set to set
> the content of the xml and xslt, how to grab them from the external files and
> how to use them in x:transform?
>
> TIA,
> Cliffano Subagio
>
> =====
> Cliffano Subagio
>
> http://briefcase.yahoo.com.au - Yahoo! Briefcase
> - Save your important files online for easy access!
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>