tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ray Allis <>
Subject xtags taglib - templates and copyOf
Date Tue, 19 Jun 2001 21:38:50 GMT
I am building a NewsML database application using JSP and XYZFind.
I'm stuck at handling the HTML (NITF) embedded in

valueOf gives the text without the <p>, <b> etc. markup.  (Of course) 
Supposedly copyOf will copy elements and contents, but I can't get
beyond errors like "Not allowed to flush in custom tags" or similar.
template should do copyOf?  Nothing appears in the output.

I have read, and I thought
I understood it.  The best I can do is select .../body.content/p and get
the (text of) the first paragraph.

Will someone please help me understand how this works?

------ newsitem.jsp ------

<%@taglib uri="" prefix="io" %>
<%@ taglib uri="" 
prefix="xtags" %>
     <meta http-equiv="Content-Type" content="text/html; 
     <title>RSS Styling Demo</title>
     <link rel="stylesheet" href="examples.css" type="text/css">


       <io:http url="" action="POST">
       <io:header name="Content-Type" value="text/xml"/>
         <xyz:input xmlns:xyz="">
             <xyz:document name="IndonesiaSummit.xml"/>

     <table cellspacing="0" cellpadding="2" bgcolor="#000000" border="1">
       <tr bgcolor="#dddddd">

       <xtags:forEach select="//results/document/NewsItem/NewsComponent">
         <tr bgcolor="#eeeeee">
           <xtags:valueOf select="NewsLines/HeadLine"/>
           <xtags:valueOf select="NewsLines/DateLine"/>
select="ContentItem/DataContent/body/body.content/p" />

Ray Allis -

View raw message