Curtney Jacobs <[EMAIL PROTECTED]> wrote:
> 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..?

Indeed. You must either feed it only 'dom' objects (tags which can provide
that, 'feel' the mm:formatter and feed dom if necessary) or feed it a
string. You cannot mix. That seems conceptually impossible, it would be hard
to generate valid XML from the above code. You could avoid the exception by
'wants="string"' but then the <mm:listrelations /> will result nothing at
all, because it does not make strings by itself. You'd have to make up the
XML completely by hand then.

You should create the a-tag with XSLT too. Perhaps you should give the url
as an argument to the XSLT if there is no other way to get it in the XML.


 Michiel


-- 
Michiel Meeuwissen
Mediacentrum 140 H'sum 
+31 (0)35 6772979
nl_NL eo_XX en_US
mihxil'
 [] ()

Reply via email to