Those are Struts tags, not Standard. If you want XHTML from Struts tags, you can
do either:

<html:html xhtml="true">
  ...
</html:html>

or

<html:xhtml/>
..

Check out the Struts taglib docs for more info.

Quoting "MARU, SOHIL (SBCSI)" <[EMAIL PROTECTED]>:

> Hey Kris,
>   excellent suggestion. This works, however in doing so I discovered a small
> bug in JSTL taglib for html. When I use tags like html:submit, html:text,
> html:password, the resulting html isn't well formed xml which would cause
> the xsl to blow up. Here is what I mean..
> 
>                         <input type="text" name="loginName" size="10"
> value=""> 
>                         <input type="password" name="password" size="10"
> value="">
>                               <input type="submit" value="Submit">
> 
> there is no /> or </input> for all of these at the end.
> 
> I can get around this by writing code as <html:submit/> </input> however is
> there a way this can be corrected or filed as a bug?
> Thanks,
> Sohil
> 
> 
> From: Kris Schneider [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 26, 2004 9:34 AM
> To: Tag Libraries Users List
> Subject: Re: xalan extensions?
> 
> 
> Just make sure the stylesheet is processed as a JSP. One of the things that
> means is that it should end in ".jsp" (assuming JSP 1.2). Then, you can use
> another JSP to perform the transformation:
> 
> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
> <%@ taglib prefix="x" uri="http://java.sun.com/jstl/xml"; %>
> 
> <%--
> assume the scoped variable "xml" is created elsewhere (e.g. in a Struts
> action).
> it may be of type String, Reader, javax.xml.transform.Source, or
> org.w3c.dom.Document.
> --%>
> 
> <c:import var="xslt" url="/WEB-INF/xslt/stylesheet.jsp"/>
> <x:transform xml="${xml}" xslt="${xslt}"/>
> 
> Quoting "MARU, SOHIL (SBCSI)" <[EMAIL PROTECTED]>:
> 
> > I am trying to use JSTL tag libraries within xsl as I am using XSL as my
> > front end in the struts architecture. However I guess I need xalan
> > extensions to interpret these tags in my XSL because right now XSL doesn't
> > interpret them and spews them out as is. Does anyone know of xalan
> > extensions for html JSTL tagilb and other tablibs or would I need to write
> > my own?
> > Thanks,
> > Sohil
> 
> -- 
> Kris Schneider <mailto:[EMAIL PROTECTED]>
> D.O.Tech       <http://www.dotech.com/>

-- 
Kris Schneider <mailto:[EMAIL PROTECTED]>
D.O.Tech       <http://www.dotech.com/>

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

Reply via email to