On Tue, 9 Jul 2002, Tim Ringwood wrote:

> I have the following basic example, which has hard coded XML, working:
> 
> <c:import url="profile.xsl" var="xslt"/>
> <x:transform xslt="${xslt}">
> <?xml version="1.0" encoding="ISO-8859-1" ?> 
> <profile><zip>12603</zip></profile>
> </x:transform>
> 
> But my XML is dynamic, and my custom tag: <tim:profile/> exports out
> valid XML.
> 
> So I thought:
> 
> <c:import url="profile.xsl" var="xslt">
> <x:transform  xslt="${xslt}">
> <tim:profile/>
> </x:transform>
> 
> Would work but it doesn't. Instead I get nice blank screen and no
> errors. I asssume this is because my custom tag is being treated as
> the XML not as a custom tag.
> 
> So how I can my custom tag to spit out XML and then have it
> transformed.?

The code fragment you've shown should work.  Are you sure that you've
imported the "tim" taglib into your page with a <%@ taglib %> directive?

-- 
Shawn Bayern
"JSTL in Action"   http://www.jstlbook.com
(coming in July 2002 from Manning Publications)


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to