I spoke to soon, I am still having the same problem with the style sheets.

I followed the formatter.jsp example. I created a second style sheet that 
imports the xs/2xhtml.xslt style sheet. However, whenever I apply a 
formatting to a field in the second style sheet, all subsequent formatting 
declared in 2xhtml.xslt (first style sheet) is gone.

For example, if a field had any embeded links in  a paragraph then it 
disappears. Only the most current formatting is shown. I am aware that 
imported stylesheets have lower precedence, but I think it is I that is doing 
something wrong. I just don't know what.

I hope this make sense :-(

Curteny

On Tuesday 03 August 2004 10:21 am, Curtney Jacobs wrote:
> Yeah, I decided to scrap it and start from scratch. When I did that things
> began to work. However, I am getting the following error:
>
> ServletException in:/j2ee/jsf/tiles/jsf_body_section.jsp] It is not
> possible to have tags which produce DOM-XML and text in the body. Perhaps
> you want to use the attribute wants='string'?'
>
>
> The above error happens whenever I am using tag <mm:write> to write out a
> url. The following is what my code looks like.
> .
> .
> .
>  <mm:formatter xslt="../xslt/ssw_test_2xhtml.xslt" >
>                      <a href='<mm:write referid="url"/>'><mm:field name="title" 
> /></a>
>                               <mm:field name="abstract"/>
>
>                               <mm:listrelations role="idrel">
>                               <mm:relatednode />
>                               </mm:listrelations>
>
>  </mm:formatter>
>
> It seems like I cannot combined regular text..?
>
> Curtney
>
> On Tuesday 03 August 2004 01:20 am, Michiel Meeuwissen wrote:
> > Curtney Jacobs <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > >
> > > I have been feedling aroiund with the 2xhtml.xsl  to produce font-size,
> > > and font color changes, but I am not seeing the changes in the
> > > resulting xhtml. I am pretty confident my jsp page is referencing the
> > > correct style sheet. I have been at this for a few hours now. But no
> > > luck.
> > >
> > > I made a copy of 2xhtml (ssw_test_2xhtml.xslt) and made sure my jsp
> > > page is pointing towards it. But still no results. Below are markup
> > > snipet:
> > >
> > > Any assistance, as usual, is greatly appreciated.
> >
> > I cannot immediately understand the problem, but I could perhaps give
> > some hints for sollution.
> >
> > Firstly you could (temporary) switch off all XSL related cached which you
> > find in caches.xml. Otherwise changes could have a delay and so on, which
> > can be rather confusing, especially when not certain yet of other things.
> >
> > Secondly I would make absolutely sure that it is actually using my XSL,
> > by making it very simple and writing out a lot of messages on any hit
> > template or so. If that works, then it was an issue in the XSL (XSL being
> > a quit obscure language, makes that not implausible), if it doesn't hit
> > at all, then obviously there is something wrong with resolving it.
> >
> > I suppose you have already studied the 'formatter.jsp' examples? I'm
> > pretty sure that there is one adding color.
> >
> > Michiel


Reply via email to