Trying XPath 2.0 functions in XSLT, transforming didn't work

2006-09-08 Thread Rashmi Rubdi
I wanted to use XPath 2.0's upper-case(BookTitle) function instead of it's equivalent in XPath 1.0 : translate(BookTitle,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz') function When I transformed the xml with xslt like this it didn't wo

RE: XSLT question

2004-04-07 Thread Kris Schneider
Schneider [mailto:[EMAIL PROTECTED] > Sent: Wednesday, April 07, 2004 2:31 PM > To: Tag Libraries Users List > Subject: RE: XSLT question > > > The type of the scoped varible named by the "var" attribute of > is String. Since String is also an acceptable type

RE: XSLT question

2004-04-07 Thread Kris Schneider
Okay, here's a contrived example of what I'm talking about. All the XML and XSLT data is embedded in the JSP, but it's sufficient as a demo. <%@ page contentType="text/xml" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"; %>

RE: XSLT question

2004-04-07 Thread Johnson, Chris
Thanks, Kris. That works. I had all of that except for I was using var instead of varDom. Chris -Original Message- From: Kris Schneider [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 2:31 PM To: Tag Libraries Users List Subject: RE: XSLT question The type of the scoped

Re: XSLT question

2004-04-07 Thread Mark R. Diggory
esolver in place...This would overide any default resolution behavior of the underlying implementation. -Mark Kris Schneider wrote: The type of the scoped varible named by the "var" attribute of is String. Since String is also an acceptable type for both the "doc" and "

RE: XSLT question

2004-04-07 Thread Kris Schneider
The type of the scoped varible named by the "var" attribute of is String. Since String is also an acceptable type for both the "doc" and "xslt" attributes of , you should be able to do: As for the HTTP error, the handling of the URI passed to the document functi

RE: XSLT question

2004-04-07 Thread Johnson, Chris
com:9081/rtdui/WebUI?action=getStationStatus -Original Message- From: Mark R. Diggory [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 12:52 PM To: Tag Libraries Users List Subject: Re: XSLT question Try just: I speculate that the c:import stores the content in a byte

Re: XSLT question

2004-04-07 Thread Mark R. Diggory
rm, I want to access something like: http://host.name.com:port/context/servlet?param=value I'm running tomcat 5.0.19 and JSTL 1.1 -Original Message- From: Mark R. Diggory [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 12:29 PM To: Tag Libraries Users List Subject: Re

RE: XSLT question

2004-04-07 Thread Johnson, Chris
-- From: Mark R. Diggory [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 12:29 PM To: Tag Libraries Users List Subject: Re: XSLT question Johnson, Chris wrote: >I guess what I really want is an answer as to why document() isn't >working as it seems it should. > >

Re: XSLT question

2004-04-07 Thread Mark R. Diggory
uldn't really because most transformers use a different object tree than DOM which the x:parse is producing. If I do a 2nd transform on the 2nd doc, how do I reference that in the first transform? Did you try adding the xlstSystemId? this sets the systemId of the xslt and allows the document fun

RE: XSLT question

2004-04-07 Thread Johnson, Chris
Diggory [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 07, 2004 12:04 PM To: Tag Libraries Users List Subject: Re: XSLT question Try setting the systemId for the stylesheet, this may help configure the proper resolution. -Mark Kris Schneider wrote: >As an alternativ

Re: XSLT question

2004-04-07 Thread Mark R. Diggory
Try setting the systemId for the stylesheet, this may help configure the proper resolution. -Mark Kris Schneider wrote: As an alternative, perhaps you can use an XSLT parameter to hold the servlet output: Where your stylesheet would include an element

Re: XSLT question

2004-04-07 Thread Kris Schneider
As an alternative, perhaps you can use an XSLT parameter to hold the servlet output: Where your stylesheet would include an element: Haven't tried this with a full-blown document as a parameter before... Quoting "Johnson, Chris" <[EMAIL PROTECTED]>: > I&#x

XSLT question

2004-04-07 Thread Johnson, Chris
I'm having trouble using the XSLT document() function. What I need to do is to call a servlet which will send back some dynamic xml that I need to reference in my XSLT template. I've tried using various relative paths, and the full (http://...) path with no luck. When I use the fu

Re: xslt expression

2004-03-04 Thread Thomas McDonald
> > --- Kris Schneider <[EMAIL PROTECTED]> wrote: > > > >>Until you get to JSP 2.0, you can't use scriptlet > >>expressions and EL expressions > >>as attribute values for the same tag. In other > >>words, you can't use "${...}" &

Re: xslt expression

2004-03-03 Thread Hans Bergsten
x27;t use scriptlet expressions and EL expressions as attribute values for the same tag. In other words, you can't use "${...}" and "<%=...%>" for attribute values in the same tag. That's why JSTL 1.0 comes with two flavors of each of its taglibs: EL-based

RE: xslt expression

2004-03-03 Thread Kris Schneider
P 2.0, you can't use scriptlet > > expressions and EL expressions > > as attribute values for the same tag. In other > > words, you can't use "${...}" > > and "<%=...%>" for attribute values in the same tag. > > That's why J

RE: xslt expression

2004-03-03 Thread Thomas McDonald
es in the same tag. > That's why JSTL 1.0 comes > with two flavors of each of its taglibs: EL-based > and RT-based. > > Quoting "MARU, SOHIL (SBCSI)" <[EMAIL PROTECTED]>: > > > Try changing the name of > url="/includes/xslt/sortablegrid.xslt" to &g

RE: xslt expression

2004-03-03 Thread Kris Schneider
s of each of its taglibs: EL-based and RT-based. Quoting "MARU, SOHIL (SBCSI)" <[EMAIL PROTECTED]>: > Try changing the name of url="/includes/xslt/sortablegrid.xslt" to > url="/includes/xslt/sortablegrid.xsl" > The name of the file should not include .x

Re: xslt expression

2004-03-03 Thread Mark R. Diggory
I suspect you need to determine if your using the EL verison or the RT version. The RT verison does not support ${} expression syntax, maybe try <%=page.getAttribute("xslt")%> instead and see if it still doesn't work. Thomas McDonald wrote: Nope, didn't work. than

RE: xslt expression

2004-03-03 Thread MARU, SOHIL (SBCSI)
Try doing this <%=objXML.getXml().toString().trim()%> -Original Message- From: Thomas McDonald [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 03, 2004 3:40 PM To: Tag Libraries Users List Subject: RE: xslt expression Nope, didn't work. thanks though. I h

RE: xslt expression

2004-03-03 Thread Thomas McDonald
Nope, didn't work. thanks though. I have a funny feeling this has something to do with either the web.xml file and or the .tld file --- "MARU, SOHIL (SBCSI)" <[EMAIL PROTECTED]> wrote: > Try changing the name of > url="/includes/xslt/sortablegrid.xslt" to &

RE: xslt expression

2004-03-03 Thread MARU, SOHIL (SBCSI)
Try changing the name of url="/includes/xslt/sortablegrid.xslt" to url="/includes/xslt/sortablegrid.xsl" The name of the file should not include .xslt but should be .xsl -Original Message- From: Thomas McDonald [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 03, 200

Re: xslt expression

2004-03-03 Thread Thomas McDonald
FYI, I excluded all the objXML stuff for the purposes of brevity. It works fine. It is the 'transform' standard tag that is killing me. --- Thomas McDonald <[EMAIL PROTECTED]> wrote: > I keep getting the error "According to TLD or > attribute directive in tag file

xslt expression

2004-03-03 Thread Thomas McDonald
I keep getting the error "According to TLD or attribute directive in tag file, attribute xslt does not accept any expressions" "doesn't accept expressions??!!" That seems absolutely crazy to me. Does it really want me to type in a whole xsl document? I have to delive

XSLT Processor

2003-03-12 Thread Grainne Reilly
Hi, I have just started exploring JSTL and am currently setting up my environment. What do I need to do in order to use saxon rather than xalan as my xslt processor when using ? Is it just a matter of replacing the xalan.jar with saxon.jar in the WEB-INF/lib directory? Thanks for any advice

Re: client/server side xslt depending on client possilities

2002-12-10 Thread V. Cekvenich
low to perform a transformation on the server side. Some browsers (eg Mozilla, IE 6) can perform XSLT transformation what allow to send them directly the xml data and the xslt. My idea would be to perform the transformation on the server side only when the client can't do it. Marc. -

Re: client/server side xslt depending on client possilities

2002-12-10 Thread V. Cekvenich
browsers (eg Mozilla, IE 6) can perform XSLT transformation what allow to send them directly the xml data and the xslt. My idea would be to perform the transformation on the server side only when the client can't do it. Marc. - Original Message - From: "Paul Campbell" &l

Re: client/server side xslt depending on client possilities

2002-12-10 Thread V. Cekvenich
browsers (eg Mozilla, IE 6) can perform XSLT transformation what allow to send them directly the xml data and the xslt. My idea would be to perform the transformation on the server side only when the client can't do it. Marc. - Original Message - From: "Paul Campbell" &l

Re: client/server side xslt depending on client possilities

2002-12-10 Thread V. Cekvenich
browsers (eg Mozilla, IE 6) can perform XSLT transformation what allow to send them directly the xml data and the xslt. My idea would be to perform the transformation on the server side only when the client can't do it. Marc. - Original Message - From: "Paul Campbell" &l

Re: client/server side xslt depending on client possilities

2002-12-10 Thread V. Cekvenich
(eg Mozilla, IE 6) can perform XSLT transformation what allow to send them directly the xml data and the xslt. My idea would be to perform the transformation on the server side only when the client can't do it. Marc. - Original Message - From: "Paul Campbell" <[EMAIL PROT

Re: client/server side xslt depending on client possilities

2002-12-10 Thread Marc Guillemot
[I apologize if this email appears many times but my previous posts through the newsgroups view of this mailing list on news.gmane.org seems to have failed] As far as I know the JSTL allow to perform a transformation on the server side. Some browsers (eg Mozilla, IE 6) can perform XSLT

Re: client/server side xslt depending on client possilities

2002-12-02 Thread Paul Campbell
owing to >perform transparently xslt transformation on the server side or to send the >xml and xslt data to the client browser if it has been recognized that this >one can perform xslt transformation. > >Marc. > > > > > >-- >To unsubscribe, e-mail: <mailto:[EMAIL PROT

client/server side xslt depending on client possilities

2002-12-02 Thread Marc Guillemot
Hi, I wonder if someone has already implemented a tag library allowing to perform transparently xslt transformation on the server side or to send the xml and xslt data to the client browser if it has been recognized that this one can perform xslt transformation. Marc. -- To unsubscribe, e

Re: How to use JSTL XSLT tags with "result" attribute

2002-11-25 Thread matsuhashi
Thank you, Hans. Inspired by your reply, I got the following JSP code. It worked! - <%@ taglib uri="/WEB-INF/c.tld" prefix="c" %> <%@ taglib uri="/WEB-INF/x.tld" prefix="x" %> raw Model <%@ page import="java.io.StringWriter" %

Re: How to use JSTL XSLT tags with "result" attribute

2002-11-25 Thread Hans Bergsten
[EMAIL PROTECTED] wrote: Hi, I am wondering how to use JSTL XML tag with "result" attribute. I am using the jakarta-taglibs/standard-1.0.2 with Tomcat 4.1.3 on Windows2000. I have a String variable "${pipeline_final_output_String}" within the request scope in which a XML document is contained.

How to use JSTL XSLT tags with "result" attribute

2002-11-25 Thread matsuhashi
Hi, I am wondering how to use JSTL XML tag with "result" attribute. I am using the jakarta-taglibs/standard-1.0.2 with Tomcat 4.1.3 on Windows2000. I have a String variable "${pipeline_final_output_String}" within the request scope in which a XML document is contained. I needed to transform th

Re: XSLT

2002-07-16 Thread Shawn Bayern
On Tue, 16 Jul 2002, Hartmut Bernecker wrote: > I used to take struts-tags for doing some XSL-Transformations: > xsl="xsl/myXslTemplates.xsl"/> > > Now I want to switch to JSTL and want to do the same: > > > > But the result is: > javax.servlet.ServletException: > javax.xml.transform.Transfo

XSLT

2002-07-16 Thread Hartmut Bernecker
Hello, I used to take struts-tags for doing some XSL-Transformations: Now I want to switch to JSTL and want to do the same: But the result is: javax.servlet.ServletException: javax.xml.transform.TransformerConfigurationException: javax.xml.transform.TransformerException: org.xml.sax.SAXParse

RE: JSTL + XSLT

2002-07-15 Thread mriem
s Users List > Subject: RE: JSTL + XSLT > > > On Fri, 12 Jul 2002, Manfred Riem wrote: > > > I actually am doing that. See var="xsl" and later > xslt="${xsl}"? And > > the error stays the Same. > > Hmm - I think I actually misread your or

RE: JSTL + XSLT

2002-07-12 Thread Shawn Bayern
On Fri, 12 Jul 2002, Manfred Riem wrote: > I actually am doing that. See var="xsl" and later xslt="${xsl}"? And > the error stays the Same. Hmm - I think I actually misread your original code. Sorry about that. I've taken a closer look and tried to correlate yo

RE: JSTL + XSLT

2002-07-12 Thread Manfred Riem
Mmm, I actually am doing that. See var="xsl" and later xslt="${xsl}"? And the error stays the Same. Or do you mean I should do ? Manfred. > -Original Message- > From: Shawn Bayern [mailto:[EMAIL PROTECTED]] > Sent: Friday, July 12, 2002 8:38 AM >

RE: JSTL + XSLT

2002-07-12 Thread Shawn Bayern
On Fri, 12 Jul 2002 [EMAIL PROTECTED] wrote: > url="style/default/chapter_content.xsl"/> > > > xsltSystemId="style/default/chapter_content.xsl"/> The problem is just that these variables don't match. exposes a variable called 'xsl',

RE: JSTL + XSLT

2002-07-12 Thread mriem
nt: Friday, July 12, 2002 7:16 AM > To: Manfred Riem > Cc: 'Tag Libraries Users List' > Subject: RE: JSTL + XSLT > > > On Fri, 12 Jul 2002, Manfred Riem wrote: > > > I've tried a couple of times and I don't seem to get it > working with >

RE: JSTL + XSLT

2002-07-12 Thread Shawn Bayern
On Fri, 12 Jul 2002, Manfred Riem wrote: > I've tried a couple of times and I don't seem to get it working with > the x:transform tag. Should it be url="...S..." or > xsltSystemId="S..." ? Oops - sorry! (Jeez, you really get used to copy editors.) Yes, it's 'url' in and 'xsltSystemId' in

RE: JSTL + XSLT

2002-07-12 Thread Manfred Riem
more. Manfred. > -Original Message- > From: Shawn Bayern [mailto:[EMAIL PROTECTED]] > Sent: Friday, July 12, 2002 6:27 AM > To: Tag Libraries Users List > Cc: [EMAIL PROTECTED] > Subject: RE: JSTL + XSLT > > > On Fri, 12 Jul 2002 [EMAIL PROTECTED] wrote: >

RE: JSTL + XSLT

2002-07-12 Thread Shawn Bayern
On Fri, 12 Jul 2002 [EMAIL PROTECTED] wrote: > Thanx for the prompt reply. Anyway, I've got it to work like a charm > with one base stylesheet. However it seems to fail when I use an > xsl:import in the stylesheet. Is this supported? Yes, should work. Depending on where your stylesheet comes f

RE: JSTL + XSLT

2002-07-12 Thread mriem
nfred Riem. > > I've got a question about the XSLT stuff available in JSTL. > > I want to be able to do the following thing. > > > > 1. Load the XML document from a specific URL > > 2. Load the XSL document from a specific URL > > 3. Add runtime

RE: JSTL + XSLT

2002-07-09 Thread Lars Haupt-Hansen
Hi. > 1. Load the XML document from a specific URL > 2. Load the XSL document from a specific URL > 3. Add runtime parameters to the transformation > 4. Do the transformation. > In the examples I've seen 1,2 and 4 done, but not 3. > Is it at all possible? Or is this for a future version > of the

Re: JSTL + XSLT

2002-07-09 Thread Shawn Bayern
On Mon, 8 Jul 2002, Manfred Riem wrote: > Hi there, > > I've got a question about the XSLT stuff available in JSTL. > I want to be able to do the following thing. > > 1. Load the XML document from a specific URL > 2. Load the XSL document from a specific URL > 3.

JSTL + XSLT

2002-07-09 Thread Manfred Riem
Hi there, I've got a question about the XSLT stuff available in JSTL. I want to be able to do the following thing. 1. Load the XML document from a specific URL 2. Load the XSL document from a specific URL 3. Add runtime parameters to the transformation 4. Do the transformation. In the exa

Re: JSTL XSLT question

2002-04-30 Thread Shawn Bayern
ow > reference them both from within the XSL file. Yes. We allow you to pass a system ID for the XSLT document for precisely this purpose, using the xsltSystemId attribute for . The system ID should be, in this case, a URL identifying the base page against which the document() functio

JSTL XSLT question

2002-04-30 Thread Brian J. Sletten
Does anyone know how to use the document() function with the JSTL XML tags? Is it even possible? If I have two XML files in memory but need them both for a given transform, it would be nice to be able to merge them or somehow reference them both from within the XSL file. For example: In t

FW: xslt transform tag

2002-03-30 Thread Ming Fai
do it? regards, mingfai > -Original Message- > From: Ming Fai [mailto:[EMAIL PROTECTED]] > Sent: Saturday, March 30, 2002 6:28 PM > To: [EMAIL PROTECTED] > Subject: xslt transform tag > > > i'm new to JSTL, and just tried the transform tag. And I got a question. &

xslt transform tag

2002-03-30 Thread Ming Fai
i'm new to JSTL, and just tried the transform tag. And I got a question. The default path of xmlUrl is not webapps/, but the bin/ directory of Tomcat (I use tomcat 4.03). It is suggested in an old post (From: Stefan Kost, Date: Mon, 22 Oct 2001 02:28:37) that user.dir can be reset to webapps path

Re: stylesheet requires attribute: version; Missing or incorrect XSLT Namespace

2001-12-11 Thread James Strachan
Huh? XTags doesn't use JavaScript. Are you trying to do client side and server side XSLT? Maybe you need one stylesheet for IE and one stylesheet for the rest of the world. James - Original Message - From: "praveen kumar k" <[EMAIL PROTECTED]> To: "Tag Lib

Re: stylesheet requires attribute: version; Missing or incorrect XSLT Namespace

2001-12-10 Thread praveen kumar k
If I use the new XSL tag then it's giving Javascript error when I see it using parser but it's not showing any error when I use IE without parsing(serverside parser). So, what will be the problem? ThanX On Sun, 09 Dec 2001 James Strachan wrote : > You're using a very ol

Re: stylesheet requires attribute: version; Missing or incorrect XSLT Namespace

2001-12-09 Thread James Strachan
You're using a very old stylesheet. XSLT has been a recommendation for over 2 years now, the correct namespace is now... http://www.w3.org/1999/XSL/Transform";> James - Original Message - From: "praveen kumar k" <[EMAIL PROTECTED]> To: <[EMAIL PROTECT

stylesheet requires attribute: version; Missing or incorrect XSLT Namespace

2001-12-08 Thread praveen kumar k
Hi All, I'ld like to parse the style sheet which is developed acording to Internet Explorer which is having XSL tag http://www.w3.org/TR/WD-xsl";> is giving the following error: javax.servlet.ServletException: stylesheet requires attribute: version; Missing or i