tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Reynolds" <jim.jreyn...@gmail.com>
Subject Re: Tomcat 5.5 Xml + Xslt Question
Date Wed, 14 Feb 2007 21:47:59 GMT
Problem resolved:

Thank you for the reply. I was setting my @page content to text/xml on
line1, then the <?xml tag on the second line. Hard to believe that
would screw things up, but it does.

Thanks a million, saved me a lot of time.

Regards.





On 2/14/07, APliszka-Public <apliszka-public@alienforceit.com> wrote:
> 1. In your jsp make sure that '<?xml version="1.0" encoding="UTF-8"?>'
> is on the very first line, it should be befora any imports or taglibs or
> etc.
>
> This is just one of the problems you might have with xml in jsps.
>
> Andrew
>
> Jim Reynolds wrote:
>
> > Hello,
> > I am struggling with content types within a JSP page. I have an XML,
> > XSLT and CSS file that combined are suposed to create a tree. (I am
> > trying to get treeview to work).
> >
> > I created a webapp for playing in, and have the following code in a
> > jsp page called "showTree.jsp".
> >
> > But when I hit the page, it shows nothing and has text/html as the
> > content-type, Then I tried text/xml with the same results.
> >
> > I have never used xml and xslt in a browser and was hoping someone may
> > give me some advise?
> >
> > Thanks,
> >
> >
> >
> > [jsp]
> > <?xml version="1.0" encoding="UTF-8"?>
> > <?xml-stylesheet type="text/css" href="treeview/treeview.css" ?>
> > <?xml-stylesheet type="text/xsl" href="treeview/treeview.xslt" ?>
> >
> > <treeview title="Windows XP Explorer Treview">
> >     <folder title="My documents" img="MyDocuments.gif">
> >         <folder title="House" img="folder.gif">
> >             <leaf title="What\'s going on?" code="1" img="ie_link.gif"/>
> >             <leaf title="What\'s up?" code="1" img="question.gif"/>
> >             <leaf title="Why you should hire me?" code="1"
> > img="question.gif"/>
> >         </folder>
> >         <folder title="My images" img="MyImages.gif">
> >             <leaf title="funny" code="1" img="red_ball.gif"/>
> >             <leaf title="ounga ounga" code="1" img="red_ball.gif"/>
> >         </folder>
> >     </folder>
> >     <folder title="My computer" img="computer.gif">
> >         <folder title="Floppy (A:)" code="1" img="floppy.gif"/>
> >         <folder title="Hard drive (C:)" code="1" img="harddrive.gif">
> >             <leaf title="Linux" code="1" img="folder.gif"/>
> >             <leaf title="Open source" code="1" img="folder.gif"/>
> >             <leaf title="Freedom" code="1" img="folder.gif"/>
> >         </folder>
> >         <leaf title="Configuration Pannel" code="1" img="config.gif"/>
> >         <leaf title="Shared documents" code="1" img="folder.gif"/>
> >     </folder>
> >     <folder title="Network" img="network.gif"/>
> >     <folder title="Trash" img="trash.gif"/>
> > </treeview>
> >
> > ---------------------------------------------------------------------
> > To start a new topic, e-mail: users@tomcat.apache.org
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message