RE: JSTL + XSLT

2002-07-15 Thread mriem

Hi Shawn,

Thanx that solved the problem. Now it is working like it
should be. Had still some files left of the old beta.
Sorry about that.

Manfred.

 -Original Message-
 From: Shawn Bayern [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, July 12, 2002 8:27 PM
 To: Tag Libraries 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 original code.  Sorry 
 about that.
 
 I've taken a closer look and tried to correlate your stack 
 trace with version 1.0 of the Standard Taglib.  Are you using 
 that version?  This could be an older bug related to the way 
 we set up our DocumentBuilderFactory; it was fixed some time 
 before the version 1.0 release.
 
 -- 
 Shawn Bayern
 JSTL in Action   http://www.jstlbook.com
 (coming in July 2002 from Manning Publications)


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




RE: JSTL + XSLT

2002-07-12 Thread mriem

Hi there,

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? 

At least Xalan standalone works fine, but now with the
x:transform tag it fails.

Any ideas?

Manfred 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 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 library?
 
 Yes, all these are possible.  For (1) and (2), you can use 
 the c:import and x:parse tgs.  For (4), you use 
 x:transform.  For (3), add x:param subtags to your 
 x:transform tag.
 
 -- 
 Shawn Bayern
 JSTL in Action   http://www.jstlbook.com
 (coming in July 2002 from Manning Publications)
 
 


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




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, xsl:import should work.  Depending on where your stylesheet comes
from, however, you might need to add an 'xsltSystemId' attribute to
inform x:transform what the system identifier of your stylesheet
is.  E.g, if you're retrieving the stylesheet using a statement like

  c:import var=xslt url=...S... /

then you would use a transformation tag like this:

  x:transform xslt=${xslt} url=...S...

-- 
Shawn Bayern
JSTL in Action   http://www.jstlbook.com
(coming in July 2002 from Manning Publications)


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




RE: JSTL + XSLT

2002-07-12 Thread Manfred Riem

Hi Shawn,

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... ? 

I've been trying with the xslSystemId thing and it doesn't
seem to work. Du. Will try once 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:
 
  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, xsl:import should work.  Depending on where your 
 stylesheet comes from, however, you might need to add an 
 'xsltSystemId' attribute to inform x:transform what the 
 system identifier of your stylesheet is.  E.g, if you're 
 retrieving the stylesheet using a statement like
 
   c:import var=xslt url=...S... /
 
 then you would use a transformation tag like this:
 
   x:transform xslt=${xslt} url=...S...
 
 -- 
 Shawn Bayern
 JSTL in Action   http://www.jstlbook.com
 (coming in July 2002 from Manning Publications)
 
 


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




RE: JSTL + XSLT

2002-07-12 Thread mriem
.


 -Original Message-
 From: Shawn Bayern [mailto:[EMAIL PROTECTED]] 
 Sent: 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 
  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 c:import and 'xsltSystemId' in x:transform.
 
  I've been trying with the xslSystemId thing and it doesn't seem to 
  work. Du. Will try once more.
 
 What errors do you get?  It's sometimes hard to debug a 
 problem remotely, but getting a stack trace or other 
 particular error might help us help you.
 
 -- 
 Shawn Bayern
 JSTL in Action   http://www.jstlbook.com
 (coming in July 2002 from Manning Publications)
 
 



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




RE: JSTL + XSLT

2002-07-12 Thread Shawn Bayern

On Fri, 12 Jul 2002 [EMAIL PROTECTED] wrote:

 c:set var=xslc:import
 url=style/default/chapter_content.xsl//c:set
 c:set var=xmlc:import url=source/${param.id}/index.xml//c:set
 
 x:transform xml=${xml} xslt=${xsl}
 xsltSystemId=style/default/chapter_content.xsl/

The problem is just that these variables don't match.  c:set exposes a
variable called 'xsl', but you're using ${xslt} in x:transform.  Use
${xsl} instead and you should be fine.

-- 
Shawn Bayern
JSTL in Action   http://www.jstlbook.com
(coming in July 2002 from Manning Publications)


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




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 x:transform 
xml=${xml} xsl=${xsl}   ?

Manfred.


 -Original Message-
 From: Shawn Bayern [mailto:[EMAIL PROTECTED]] 
 Sent: Friday, July 12, 2002 8:38 AM
 To: [EMAIL PROTECTED]
 Cc: 'Tag Libraries Users List'
 Subject: RE: JSTL + XSLT
 
 
 On Fri, 12 Jul 2002 [EMAIL PROTECTED] wrote:
 
  c:set var=xslc:import 
  url=style/default/chapter_content.xsl//c:set
  c:set var=xmlc:import 
  url=source/${param.id}/index.xml//c:set
  
  x:transform xml=${xml} xslt=${xsl} 
  xsltSystemId=style/default/chapter_content.xsl/
 
 The problem is just that these variables don't match.  
 c:set exposes a variable called 'xsl', but you're using 
 ${xslt} in x:transform.  Use ${xsl} instead and you should be fine.
 
 -- 
 Shawn Bayern
 JSTL in Action   http://www.jstlbook.com
 (coming in July 2002 from Manning Publications)
 
 
 



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




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. 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 library?

Yes, all these are possible.  For (1) and (2), you can use the c:import
and x:parse tgs.  For (4), you use x:transform.  For (3), add
x:param subtags to your x:transform tag.

-- 
Shawn Bayern
JSTL in Action   http://www.jstlbook.com
(coming in July 2002 from Manning Publications)


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