facebook

load foo.xsl stored in project

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #264267 Reply

    pak0
    Member

    Hello all,

    I’d like to use a foo.xsl file to do transformations on a XML rss feed from the net.
    My code is nearly complete exept for te part where I want to load the XSL file.
    I would like to store it in the project, so that it will be loaded to the tomcat server
    when I deploy it.
    1) where should I store the foo.xsl
    2) how do I load the foo.xsl

    any help would very much be appriciated,
    and if you have a little code sample spare don’t hesitate.

    #264359 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev

    If your code loading the XSL is part of the web project, in a package say com.myproject.xslcode, then you should probalby put your XSL file in that same package, so you can use the simple line of code to load it:

    
    getClass().getResourceAsStream("mytransform.xsl");
    
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: load foo.xsl stored in project

You must be logged in to post in the forum log in