cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Cordes <mcord...@maine.edu>
Subject Re: how to put non well-formed html within xsl?
Date Tue, 07 Nov 2000 15:24:46 GMT
A better solution is CDATA blocks.  Or disable-output-escaping
in your stylesheet.

-matt

On Tue, Nov 07, 2000 at 11:47:43AM +0530, Sinvhal,  Swapnil wrote:
> Harris, 
> 
> I can help you with the first part of your problem.
> 
> Netscape understands <BR /> (put a blank before the /)
> 
> For part 2, have you tried using the <xsl:attribute> tags ?
> 
> - Swapnil
> 
> > -----Original Message-----
> > From:	Harris Rappaport [SMTP:harris@undereternity.net]
> > Sent:	Tuesday, November 07, 2000 11:09 AM
> > To:	cocoon-users@xml.apache.org
> > Subject:	how to put non well-formed html within xsl?
> > 
> > Hi -
> > I have what I hope is a simple question:
> > 
> > How do I put non well-formed html within an xsl stylesheet without Cocoon 
> > giving me an error?
> > 
> > For example:
> > 
> > 1. I want to put break tags - <br> - and
> > well-formedness requires that tag to be <br/>
> > but netscape doesn't understand <br/> as a break, it only understands <br>
> > 
> > 2. I want to put dynamic content in an 'onLoad=alert("...")', which goes 
> > within the <body> tag - so I want to put:
> > 
> > <body onLoad="alert('<xsl:value-of select="@message"/>')" >
> > 
> > but then I get the error message:
> > Element type "body" must be followed by either attribute specifications, 
> > ">" or "/>".
> > 
> > 
> > Any help?
> > 
> > Thanks.
> > Harris.
> > 
> > 
> > ---------------------------------------------------------------------
> > 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