This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

xsl: help (urgent)


All:

I am attaching one xml, xsl and the HTML files along with the mail(generated
from xml using the xsl).

I am facing the the problem is in the Description Tag of the xml file. There
are some links associated with it

For eg. it is something like

<DESCRIPTION>Search and download the &#60;a
href=\"http://openworld.oracle.com/oowdba-wwwprd-
apps/plsql/oow_user.show_public?p_event=3&#38;p_type=search\">Oracle
OpenWorld 2000 technical papers and presentations&#60;/a>, over 250 papers
and presentations in total from Oracle and partner companies.
</DESCRIPTION>

So when I generate the HTML file, the link is not displayed in the HTML
page. When I see the source of the HTML page,
the description part is

<FONT size="2">Search and download the &#60;a href=
"http://openworld.oracle.com/oowdba-wwwprd-apps/plsql/oow_user.show_public?p
_event=3&#38;p_type=search ">Oracle OpenWorld 2000 technical papers and
presentations&#60;/a>, over 250 papers and presentations in total from
Oracle and partner companies.</FONT>
<FONT size="1"> <I> Posted on 10-OCT-2000</I>

ie. the "<a href= " part is displayed as "&#60;a href= " in the HTML page
also. (U can see the attached html page)

Is there anyway in the XSL file to transform the "&#60;" as "<"  so that the
browser will understand it and display the URL ?

NB: I have sorted out this issue in the java program by doing a search and
replace before writing the HTML string into the file system. But I want it
to be sorted out in the XSL


The XML format is

<?xml version = '1.0'?>
<ROWSET>
   <ROW num="1">
      <TITLE>Oracle OpenWorld Technical Papers</TITLE>

<URL>http://openworld.oracle.com/oowdba-wwwprd-apps/plsql/oow_user.show_publ
ic?p_event=3&#38;p_type=search</URL>
      <DESCRIPTION>Search and download the &#60;a
href=\"http://openworld.oracle.com/oowdba-wwwprd-apps/plsql/oow_user.show_pu
blic?p_event=3&#38;p_type=search\">Oracle OpenWorld 2000 technical papers
and presentations&#60;/a>, over 250 papers and presentations in total from
Oracle and partner companies.</DESCRIPTION>
      <ENTRY_DATE>10-OCT-2000</ENTRY_DATE>
   </ROW>
</ROWSET>

The xsl I have written is


<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
version="1.0" >
 <xsl:output method="html" disable-output-escaping="yes"
media-type="text/html" indent="no"/>
  <xsl:template match="/">
   <HTML>
     <TABLE width="90%" cellpadding="4" border="0" cellspacing="0"
align="center">
       <TR valign="top" align="left">
        <TD>
         <xsl:for-each select="ROWSET/ROW[15 > position()]">
           <P>
             <FONT face="arial" size="3">
               <B><xsl:value-of select="TITLE"/></B>
             </FONT>
             <BR/>
             <FONT size="2">
               <xsl:value-of disable-output-escaping="yes"
select="DESCRIPTION" />
             </FONT>
             <FONT size="1">
               <I>
                 <xsl:text> Posted on </xsl:text>
                 <xsl:value-of disable-output-escaping="yes"
select="ENTRY_DATE"/>
               </I>
             </FONT>
           </P>
         </xsl:for-each>
       </TD>
      </TR>
     </TABLE>
   </HTML>
  </xsl:template>
</xsl:stylesheet>


HTML file source is

<HTML>
   <TABLE width="90%" cellpadding="4" border="0" cellspacing="0"
align="center">
      <TR valign="top" align="left">
         <TD>
            <P>
               <FONT face="arial" size="3">
                  <B>Oracle OpenWorld Technical Papers</B>
               </FONT>
               <BR/>
               <FONT size="2">Search and download the &#60;a href=
"http://openworld.oracle.com/oowdba-wwwprd-apps/plsql/oow_user.show_public?p
_event=3&#38;p_type=search ">Oracle OpenWorld 2000 technical papers and
presentations&#60;/a>, over 250 papers and presentations in total from
Oracle and partner companies.</FONT>
               <FONT size="1">
                  <I> Posted on 10-OCT-2000</I>
               </FONT>
            </P>
         </TD>
      </TR>
   </TABLE>
</HTML>




Reghu







 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]