SgDotNet
Singapore Professional .NET User Group -For Cool Developers

problem with XSL

rated by 0 users
This post has 3 Replies | 1 Follower

Top 75 Contributor
Posts 27
melvin77 Posted: 05-09-2006 10:29 AM

Hi guys,

I have this problem where I would like to transform <br/> in html to xsl.

Any idea? Thanks!

Top 25 Contributor
Posts 176
are you refering to "<br/>" as data? if it is, did you try to use &lt; intead of "<" and same for ">"
my development sketch book my personal blog
Top 500 Contributor
Posts 3

Hi

I assume u mean something like this...

<xsl:element name="br" />

This is the XSL equivalent for <br/>. You can do the same for <hr/> or any HTML elements.

For attributes, 

<xsl:element name="input">

   <xsl:attribute name="type">button</xsl:attribute>

   <xsl:attribute name="value">Press Me!</xsl:attribute>

</xsl:element>

This is equivalent to <input type="button" value="Press Me!"/>.

Hope it's of help.

Top 100 Contributor
Posts 17

html to xsl.

Do you mean transforming xsl to html or xsl to html. 

Page 1 of 1 (4 items) | RSS
Copyright SgDotNet 2004-2008
Powered by Community Server (Commercial Edition), by Telligent Systems