Re: xtags question
Yes, the XSL taglib is deprecated. You can use either the XTags taglib or JSTL. If you have a servlet container that supports JSP 1.2, use JSTL. If you have a container which supports JSP 1.1 but not JSP 1.2, use XTags. Glenn bryan wrote: Hi, I'm a newbie in this area so this will no doubt sound sort of stupid. First I'm somewhat confused as to what is part of what project, i.e is xtags part of the jstl? I'm confused about this because I understand the XSL tag library is superceded by the JSTL and I figured if it was maybe xtags as well. I have an application for which xtags seems to be the right solution but I don't want to use it if it's possible to do the same things with a library under the JSTL. If xtags is not part of the JSTL is there an answering library that has the same functionality? The functionality I want is specifically to run an xslt against an xml and pass in parameters, simple enough. I don't want to use Cocoon in this situation for reasons too convoluted to enumerate. -- 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]
RE: xtags question
Glenn Nielsen wrote: Yes, the XSL taglib is deprecated. You can use either the XTags taglib or JSTL. If you have a servlet container that supports JSP 1.2, use JSTL. If you have a container which supports JSP 1.1 but not JSP 1.2, use XTags. Thanks, already figured that out, but I appreciated the response. This sort of makes me wonder though, I posted that question quite a while ago did it just come through now or what's going on? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: xtags question
Your email was delivered on time. Some of us who participate in Jakarta projects were off at ApacheCon US 2002 in Las Vegas last week. I put off checking my email list subscriptions until I got back and had time to catch up. Glenn bryan wrote: Glenn Nielsen wrote: Yes, the XSL taglib is deprecated. You can use either the XTags taglib or JSTL. If you have a servlet container that supports JSP 1.2, use JSTL. If you have a container which supports JSP 1.1 but not JSP 1.2, use XTags. Thanks, already figured that out, but I appreciated the response. This sort of makes me wonder though, I posted that question quite a while ago did it just come through now or what's going on? -- 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]
xtags question
Hi, I'm a newbie in this area so this will no doubt sound sort of stupid. First I'm somewhat confused as to what is part of what project, i.e is xtags part of the jstl? I'm confused about this because I understand the XSL tag library is superceded by the JSTL and I figured if it was maybe xtags as well. I have an application for which xtags seems to be the right solution but I don't want to use it if it's possible to do the same things with a library under the JSTL. If xtags is not part of the JSTL is there an answering library that has the same functionality? The functionality I want is specifically to run an xslt against an xml and pass in parameters, simple enough. I don't want to use Cocoon in this situation for reasons too convoluted to enumerate. -- To unsubscribe, e-mail: mailto:taglibs-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:taglibs-user-help;jakarta.apache.org
Re: XTags Question - Please help
Kilian, Rex wrote: http://www.mail-archive.com/taglibs-dev@jakarta.apache.org/msg01116.html Look for xtags:style in the message. This post helped me when I was using XTags. Thanks Rex, I took a look and modified my .jsp: xtags:parse url=http://localhost/cgi-bin/test2.cgi?base=directoryscope=subfilter=cn=smith/ xtags:style xsl=/xml/ldap.xsl outputMethod=html/ Now I get javax.servlet.ServletException: Must specify both XML and an XSLT to style :( I'm getting the feeling that xtags:style will work passing a url as long as there ar no enVars passed along with it. Bug? Tod -Original Message- From: Tod Thomas [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 02, 2002 1:15 PM To: [EMAIL PROTECTED] Subject: XTags Question - Please help I posed this question a couple weeks ago and didn't' get a response. I'm relatively new to this and just want to make sure I understand conceptually how the XTags taglib is supposed to work. What I'm getting from the docs is that I should be able to call a remote, XML streaming, cgi program (or static xml page) and have it transformed locally on the Tomcat server, rendering HTML to the client. This works: xtags:style xml=http://localhost/cgi-bin/test.cgi; xsl=/xml/ldap.xsl outputMethod=html/ test.cgi performs a search and streams the results back as XML which transforms to HTML as expected. This doesn't: xtags:style xml=http://localhost/cgi-bin/test2.cgi?base=directoryscope=subfilter=cn=s mith xsl=/xml/ldap.xsl outputMethod=html/ Is there another way I should be passing the environment variables to test2.cgi rather than in the URL? Should this even work? Am I missing something? Thanks - Tod. -- 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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: XTags Question - Please help
I noticed strange behavior with the xtags:style tag. It wasn't as straight forward as the other tags. How about one of these two solutions? from styledemo2.jsp in the xtags-examples.war xtags:style xsl=/style/article-html.xsl %@include file=/style/test2.xml % /xtags:style from styledemo3.jsp in the xtags-examples.war xtags:parse uri=/style/test2.xml id=mydoc/ xtags:style document=%=mydoc% xsl=/style/article-html.xsl outputMethod=html/ For this second example you may want to verify the xtags:parse tag is working before incorporating the xtags:style tag by simply displaying something that you know is in the XML. See simple_rss.jsp in the xtags-examples.war file. -Original Message- From: Tod Thomas [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 03, 2002 12:13 PM To: Tag Libraries Users List Subject: Re: XTags Question - Please help Kilian, Rex wrote: http://www.mail-archive.com/taglibs-dev@jakarta.apache.org/msg01116.html Look for xtags:style in the message. This post helped me when I was using XTags. Thanks Rex, I took a look and modified my .jsp: xtags:parse url=http://localhost/cgi-bin/test2.cgi?base=directoryscope=subfilter=cn=s mith/ xtags:style xsl=/xml/ldap.xsl outputMethod=html/ Now I get javax.servlet.ServletException: Must specify both XML and an XSLT to style :( I'm getting the feeling that xtags:style will work passing a url as long as there ar no enVars passed along with it. Bug? Tod -Original Message- From: Tod Thomas [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 02, 2002 1:15 PM To: [EMAIL PROTECTED] Subject: XTags Question - Please help I posed this question a couple weeks ago and didn't' get a response. I'm relatively new to this and just want to make sure I understand conceptually how the XTags taglib is supposed to work. What I'm getting from the docs is that I should be able to call a remote, XML streaming, cgi program (or static xml page) and have it transformed locally on the Tomcat server, rendering HTML to the client. This works: xtags:style xml=http://localhost/cgi-bin/test.cgi; xsl=/xml/ldap.xsl outputMethod=html/ test.cgi performs a search and streams the results back as XML which transforms to HTML as expected. This doesn't: xtags:style xml=http://localhost/cgi-bin/test2.cgi?base=directoryscope=subfilter=cn=s mith xsl=/xml/ldap.xsl outputMethod=html/ Is there another way I should be passing the environment variables to test2.cgi rather than in the URL? Should this even work? Am I missing something? Thanks - Tod. -- 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] -- 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]
XTags Question - Please help
I posed this question a couple weeks ago and didn't' get a response. I'm relatively new to this and just want to make sure I understand conceptually how the XTags taglib is supposed to work. What I'm getting from the docs is that I should be able to call a remote, XML streaming, cgi program (or static xml page) and have it transformed locally on the Tomcat server, rendering HTML to the client. This works: xtags:style xml=http://localhost/cgi-bin/test.cgi; xsl=/xml/ldap.xsl outputMethod=html/ test.cgi performs a search and streams the results back as XML which transforms to HTML as expected. This doesn't: xtags:style xml=http://localhost/cgi-bin/test2.cgi?base=directoryscope=subfilter=cn=smith; xsl=/xml/ldap.xsl outputMethod=html/ Is there another way I should be passing the environment variables to test2.cgi rather than in the URL? Should this even work? Am I missing something? Thanks - Tod. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: XTags Question - Please help
http://www.mail-archive.com/taglibs-dev@jakarta.apache.org/msg01116.html Look for xtags:style in the message. This post helped me when I was using XTags. -Original Message- From: Tod Thomas [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 02, 2002 1:15 PM To: [EMAIL PROTECTED] Subject: XTags Question - Please help I posed this question a couple weeks ago and didn't' get a response. I'm relatively new to this and just want to make sure I understand conceptually how the XTags taglib is supposed to work. What I'm getting from the docs is that I should be able to call a remote, XML streaming, cgi program (or static xml page) and have it transformed locally on the Tomcat server, rendering HTML to the client. This works: xtags:style xml=http://localhost/cgi-bin/test.cgi; xsl=/xml/ldap.xsl outputMethod=html/ test.cgi performs a search and streams the results back as XML which transforms to HTML as expected. This doesn't: xtags:style xml=http://localhost/cgi-bin/test2.cgi?base=directoryscope=subfilter=cn=s mith xsl=/xml/ldap.xsl outputMethod=html/ Is there another way I should be passing the environment variables to test2.cgi rather than in the URL? Should this even work? Am I missing something? Thanks - Tod. -- 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]
Re: xtags question with when tag
Hi Richard - Original Message - From: Richard Sand [EMAIL PROTECTED] Hi all, I have a simple xtags file that loops through all of the topics and keywords in an xml help file. My loop is: xtags:forEach select=/help/topic | /help/keyword Within this loop, I want to process topics different than keywords. I haven't been able to find a way to do this. I tried to do it by testing for the existence of a child that only exists for a keyword, but the xtag:when tag doesn't seem to accept wildcards in its test parameter, i.e.: xtags:forEach select=/help/topic | /help/keyword xtags:choose xtags:when test=keyword_file=* /xtags:when xtags:otherwise . /xtags:otherwise /xtags:choose /xtags:forEach You could try this... xtags:when test=keyword_file which will match if the current node (a keyword or topic) has at least one child keyword_file child. Is there some way to do this? Maybe something like this, iterate through all children of help then branch based on the name xtags:forEach select=/help/* xtags:choose xtags:when test=name()='topic' process a topic ... /xtags:when xtags:when test=name()='keyword' process a keyword ... /xtags:when xtags:otherwise . /xtags:otherwise /xtags:choose /xtags:forEach James _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
xtags question with when tag
Hi all, I have a simple xtags file that loops through all of the topics and keywords in an xml help file. My loop is: xtags:forEach select=/help/topic | /help/keyword Within this loop, I want to process topics different than keywords. I haven't been able to find a way to do this. I tried to do it by testing for the existence of a child that only exists for a keyword, but the xtag:when tag doesn't seem to accept wildcards in its test parameter, i.e.: xtags:forEach select=/help/topic | /help/keyword xtags:choose xtags:when test=keyword_file=* /xtags:when xtags:otherwise . /xtags:otherwise /xtags:choose /xtags:forEach Is there some way to do this? Thanks! -Richard -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]