[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

xsl: help (urgent)

Subject: xsl: help (urgent)
From: "Reghu Krishna Pillai" <raghu.krishnapillai@xxxxxxxxxx>
Date: Tue, 10 Apr 2001 10:04:56 +0530
oracle xsl disable output escaping
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.