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 full path, I
As an alternative, perhaps you can use an XSLT parameter to hold the servlet
output:
c:import url=/xmlServlet var=servletXml/
x:parse xml=${servletXml} var=servletDoc/
x:transform xml=${xml} xslt=${xslt}
x:param name=dynamicXml value=${servletDoc}/
/x:transform
Where your stylesheet would
Try setting the systemId for the stylesheet, this may help configure the
proper resolution.
c:import var=xslt scope=request url='${url}'/
x:transform xml=${xml} xslt=${xslt} xsltSystemId=${url}
-Mark
Kris Schneider wrote:
As an alternative, perhaps you can use an XSLT
: 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.
c:import var=xslt scope=request url='${url}'/
x:transform xml=${xml} xslt=${xslt}
xsltSystemId
To: Tag Libraries Users List
Subject: Re: XSLT question
Try setting the systemId for the stylesheet, this may help configure the
proper resolution.
c:import var=xslt scope=request url='${url}'/
x:transform xml=${xml} xslt=${xslt}
xsltSystemId=${url} -Mark
Kris Schneider
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: XSLT question
Johnson
, 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.
Mostly, I think the unexpected behavior has to do with the standard
implementations masking
?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:
c:import url=uiConfig.xml var=config/
x:parse var=xml doc=${config}/
c:import url
. Diggory [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 07, 2004 12:52 PM
To: Tag Libraries Users List
Subject: Re: XSLT question
Try just:
c:import url=uiConfig.xml var=config/
x:parse var=xml doc=${config}/
c:import url=station_list.xsl var=stylesheet/ x:transform
doc=${xml} xslt
://raptor.mtc.ti.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:
c:import url=uiConfig.xml var=config/
x:parse var=xml doc
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
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:
c:import url=uiConfig.xml var=config/
x:parse var=xml doc=${config}/
c:import url=station_list.xsl var
, 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
c:import is String. Since String is also an acceptable type for both
the doc and xslt attributes of x:transform, you should be able to
do:
c:import var=doc
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:
14 matches
Mail list logo