Re: Unable to generate JSP output with Xalan -- CORRECTION

2003-04-03 Thread Liviu Casapu
Is there any particular reason why we are not allowed to use elements as content for HTML attributes ? I perfectly understand this limitation if XML is chosen as output, but why impose it for HTML ? One more twist to the problem: What happens if the name of the localized resource itself (resName)

Re: Tomcat and Xalan...

2003-04-03 Thread jcplerm
Please note that JDK1.4 has Xalan embedded in it. If you have JDK 1.4 installed, Xalan classes are in /jre/lib/rt.jar. Maybe that's why. Julio - Original Message - From: "John Nikolai" <[EMAIL PROTECTED]> To: "Tim Cronin" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, April

Re: Tomcat and Xalan...

2003-04-03 Thread John Nikolai
Thanks for the help, this does solve the problem. The FAQ talks about setting up Java 1.4 but fails to mention anything about setting up Tomcat. It might be worth while adding another question to the FAQ... Thanks, - John On Thursday, April 3, 2003, at 02:07 PM, Tim Cronin wrote: the xalan ja

RE: Tomcat and Xalan...

2003-04-03 Thread Tim Cronin
the xalan jar should be in the $CATALINA_HOME/common/endorsed as well. http://xml.apache.org/xalan-j/faq.html#faq-N100CB -Original Message- From: John Nikolai [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2003 4:09 PM To: [EMAIL PROTECTED] Subject: Tomcat and Xalan... I'm having

Tomcat and Xalan...

2003-04-03 Thread John Nikolai
I'm having problems getting xalan-j_2_5_D1 working with my tomcat 4.1.18 installation. I have combed through the archives and found some possible solutions which I have implemented: - I'm using jdk 1.4.1 and have placed xalan.jar, xercesIml.jar and xml-apis.jar into the $JAVA_HOME/lib/endor

Re: Unable to generate JSP output with Xalan -- CORRECTION

2003-04-03 Thread Joseph Kesselman
SORRY; I completely misread the question! (I should learn not to fire from the hip when short on sleep.) The problem you're having is that attribute contents are expected to be text, not elements. XSLT won't let you insert the results of xsl:element (or even a literal result element) inside an x

Re: Unable to generate JSP output with Xalan -- CORRECTION

2003-04-03 Thread Joseph Kesselman
Note that your example *was* wrong as you showed it to us -- you had double quotes inside an attribute also quoted with doublequotes, and you'd forgotten to close the attribute quoting. That's what caused me to immediately jump to the wrong answer; I saw the nesting problem and didn't read further

RE: Unable to generate JSP output with Xalan

2003-04-03 Thread Tim Cronin
see   http://java.sun.com/products/jsp/syntax/1.2/syntaxref12.html   http://hotwired.lycos.com/webmonkey/01/22/index3a_page3.html?tw=programming   -Original Message-From: Joseph Kesselman [mailto:[EMAIL PROTECTED]Sent: Thursday, April 03, 2003 3:29 PMTo: [EMAIL PROTECTED]Subject: Re: U

Re: Unable to generate JSP output with Xalan

2003-04-03 Thread Joseph Kesselman
        />        This is a valid JSP construct That may be valid JSP -- but it isn't valid, or even well-formed XML.  To produce it, you'll have to set your stylesheet to output in text mode, and hand-construct all the appropriate syntax. Or come up with some other syntax which can be generat

Unable to generate JSP output with Xalan

2003-04-03 Thread Liviu Casapu
Hi everybody, I am trying to generate a HTML+JSP page using Xalan but I cannot go around a TransformerConfigurationException: "xsl:element is not allowed in this position in the stylesheet!". What I am trying to generate is a construct in the form: /> This is a valid JSP construct which runs f

Aplogies [Re: Problem w/ Defining Entities in Stylesheets]

2003-04-03 Thread JonTom Kittredge
My problem seems to have been caused by using the wrong version of Xalan with the right version of Xerces. (I had upgraded to Xalan 2.5.D1 -- rather than 2.4.D1, as I said in my mail -- and got confused and was using 2.4 Xalan with Xerces 2.3.0). It all seems to be fine now. Sorry, JonTom

Re: Problem w/ Defining Entities in Stylesheets

2003-04-03 Thread klmccarthy
I tried this in Xalan 2.4.1, and it worked fine. I'm not sure whether this is the same as your version. Using the -v option, I get: >>> Xalan Version Xalan Java 2.4.1, <<< Anyway, are you using JDK 1.4? and have you setup the endorsed directories properly? (see http://xml.apache.org/

Problem w/ Defining Entities in Stylesheets

2003-04-03 Thread JonTom Kittredge
I just upgraded to Xalan 2.4.D1 and I am getting errors on my stylesheets, which worked fine with previous versions. The errors seem to be focused on the entity definitions we have at the top of our stylesheets. For instance, if I try to run the following stylesheet -- ]> http://w

Re: Percentage signs within transform

2003-04-03 Thread Joseph Kesselman
>cannot to put a '%' character anywhere within my XSLT without xalan complaining about it. As I remember it, % isn't a reserved character in XSLT... so you shouldn't be having a problem unless you're putting it in places where it breaks the XML syntax. You might want to post a ten-line example d

rtf with xalan?

2003-04-03 Thread Joseph Kesselman
<[EMAIL PROTECTED]> wrote: > it is possible to transform xml (and a stylesheet) directly with > xalan into rtf? Or have I to use another converter (for example fop)? Possible? Probably. A stylesheet can be told to output text, so you can build things up character by character. Easy/efficient? Pr

RE: Percentage signs within transform

2003-04-03 Thread Andrew Welch
>I have a tranform problem. The input document contains '%' signs to delimit >things and I need to detect them and do stuff. >I cannot to put a '%' character anywhere within my XSLT without xalan >complaining about it. There doesn't seem to be an >entity I can use. Theres nothing special abou

Percentage signs within transform

2003-04-03 Thread Greg McCreath
Title: Message Hi all,   I have a tranform problem.  The input document contains '%' signs to delimit things and I need to detect them and do stuff.   I cannot to put a '%' character anywhere within my XSLT without xalan complaining about it.  There doesn't seem to be an entity I can use.  

rtf with xalan?

2003-04-03 Thread Todtenhaupt, Susann
hello! it is possible to transform xml (and a stylesheet) directly with xalan into rtf? Or have I to use another converter (for example fop)? suse