cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thangadurai <du...@siptech.co.in>
Subject <option> tag in xsl
Date Tue, 04 Sep 2001 06:50:07 GMT
Hi All,
  I am new to cocoon.... i have  problem while using  html <option>tag
in my xsl.
 Please see the following xsp and xsl files

*********My xsp page ****************

<?xml version="1.0"?>
<?xml-stylesheet href="option.xsl" type="text/xsl"?>
<?cocoon-process type="xslt"?>

<xsp:page language="java"
   xmlns:xsp="http://www.apache.org/1999/XSP/Core">

 <page>

 </page>

</xsp:page>

************My xsl(option.xsl)*****************

<?xml version="1.0"?>

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

  <xsl:template match="page">

   <select name="audience" size="1">
           <option value="PL1">PL</option>
           <option selected="true" value="ALL">ALL</option>
          </select>
 </xsl:template>

</xsl:stylesheet>

************I got the following result (Note that the option tags are
not closed)**********

<select name="audience" size="1"><option value="PL1">PL<option selected
value="ALL">ALL</select>

*************************

I couldn't find the reason for, why the option tags are not closed...
Do you know..?




---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message