Subject: Re: [xsl] xml and xslt to html attribute problems From: Michael Olszynski <m.olszynski@xxxxxxxxxxxxx> Date: Wed, 29 Oct 2003 10:58:05 +0100 |
Michael,
Will there always be exactly one <br> in the topic/@name attribute?
If so, you could use the XPath substring-before() and substring-after() functions:
<td> <xsl:value-of select="substring-before(@name, '<br>')" /> <br /> <xsl:value-of select="substring-after(@name, '<br>')" /> </td>
Don't forget also that <br /> is an empty element and, according to XHTML specs it must have a closing slash ;-)
Another thing would be to have multiple attributes in the <topic> element...
Cheers, Richard
Hello, I want to use sth. like
<topic name="Mygreatlongword<br>onabeautifulmorning">
with following xslt code
<td> <xsl:value-of select="@name"/> </td>
to get this html code
<td> Mygreatlongword <br> onabeautifulmorning </td>
But I can´t use a <br> in the quotes in my xml file. Is there any other solution?
Thanks Take care Michael
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
-- Michael Olszynski Dipl.-Ing.(FH) Software Engineer
___ |X__________________________________________________________ X|
eXXcellent solutions gmbh In der Wanne 55
e | m.olszynski@xxxxxxxxxxxxx t | +49 [0]731-55026-39 f | +49 [0]731-55026-99 i | www.exxcellent.de ________________________________________________________________
Geschäftsführer: Dr. Martina Maier, Wilhelm Zorn, Gerhard Gruber Sitz der Gesellschaft: Ulm, Registergericht: Ulm HRB 4309
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] xml and xslt to html attr, Richard Lewis | Thread | Re: [xsl] xml and xslt to html attr, Emmanuil Batsis (Man |
Re: [xsl] xsl:element name value wi, Arvind Bassi | Date | Re: [xsl] How to compare the attrib, Mukul Gandhi |
Month |