File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes Wierd Error - XSL and templates Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Wierd Error - XSL and templates" Watch "Wierd Error - XSL and templates" New topic

Wierd Error - XSL and templates

Ro Dowd

Joined: Jul 10, 2006
Posts: 22
Hi, Am working on an XSL front-end app on websphere. I'm getting the below error when I start websphere (it loads all the XSL pages on start-up):
javax.xml.transform.TransformerException: org.apache.xml.utils.WrappedRuntimeException: Could not find variable with the name of firstName in NewUserDetails.xsl

Thing is i didn't change anything related to a variable "firstName" in the XSL file. My file "NewUserDetails.xsl" contains a few templates that are called elsewhere.

Has anyone seen this b4 - any help much appreciated! - Thanks..
Paul Clapham

Joined: Oct 14, 2005
Posts: 19973

I see it all the time when I carelessly put "$firstName" instead of "@firstName", looking for an attribute. Your error may be something similar.
I agree. Here's the link:
subject: Wierd Error - XSL and templates
It's not a secret anymore!