solved this issue may be got to think twice before posting -----Original Message----- From: srinivas [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 2:48 AM To: Struts Users Mailing List Subject: Struts tags to inside XSLT
hi all, I am in a kind of a situation where i have to use struts tags in XSLT. The problem is as follows: i have a form, the contents of which are partially generated by XSLT. I use XSLT taglibs from jakarta. After transformation to XML i need to apply struts tags to generate the HTML. I dont know how to achieve this. i can give an example of what i intend to do: ----------- jsp ------------------- <%@ taglib uri="/WEB-INF/tlds/xsl.tld" prefix="xsltlib"%> <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="strutshtml" %> <xsltlib:apply xml="test.xml" xsl="test.xsl" > </xsltlib:apply> ------------------- --------- test.xsl ------- <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/root"> <html> <head> <title></title> <strutshtml:form action="/TestAction.do"> <strutshtml:text property="testField"/><br/> </strutshtml:form> </xsl:template> </xsl:stylesheet> ------------------------------------------------------------------------ pls note that the actual XSLT i tried is huge, which is omited for brevity. I get an error that the strutshtml name space is not defined, which i could guess why but not sure how to solve this issue. I am a bit confused the order in which the tags are evaluated in this case. Any help is greatly appreciated. thanks in advance, regards, srinivas -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>