xsl-list
[Top] [All Lists]

Re: xml and xslt to html attribute problems

2003-10-29 02:24:33
Emmanuil Batsis (Manos) wrote:

Thats not  XML. But


<topic name="Mygreatlongword&lt;br&gt;onabeautifulmorning">

is OK and using


<td>    <xsl:value-of select="@name"/>
</td>



will produce


<td>
   Mygreatlongword
   <br>
   onabeautifulmorning
</td>


You may want to read about predefined XML entities.

Well, it would produce

<td>
   Mygreatlongword&lt;br>onabeautifulmorning
</td>

Lesson: don't put markup into text content.

Julian


--
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760


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