 |
 |
 |
Well Microsoft's XSLT processors don't support XPath 2.0.
--
Joe Fawcett (MVP - XML)
http://joe.fawcett.name
"rote" <naijacoder@h...> wrote in message
news:O0lSe7YIIHA.3356@T......
> Joe i actually want to use this in a sharepoint dataview webpart.
> And when i use <xsl:value-of select="replace(@Title,':','<br>')" />
> i get error replace is not a valis XSLT or XPATH function
> any workarounds?
>
>
> "Joe Fawcett" <joefawcett@n...> wrote in message
> news:ubMWCDSIIHA.5544@T......
>> "rote" <naijacoder@h...> wrote in message
>> news:%23%23LVmJRIIHA.4684@T......
>>> I know this is possible.
>>> i have users pasting too long titles on a webpart.
>>> What i want to do is to insert a <br>
>>>
>>> break line if it finds a semi colon like :
>>>
>>> So for example - THE BOY IS BIG : THE GIR IS SMALL
>>> will be become
>>>
>>> THE BOY IS BIG
>>> THE GIR IS SMALL
>>>
>>> Any ideas what to use ..as an xpath expression e.g contains() or maybe
>>> starts-with..
>>>
>>>
>>> Thanks in advance
>>>
>>>
>> There are a number of string-replace templates online, look at EXSLT for
>> example.
>> If you can use XSLT 2.0 then there are built-in features for this,
>> xsl:analyze-string and the replace function.
>>
>> --
>>
>> Joe Fawcett (MVP - XML)
>>
>> http://joe.fawcett.name
>>
>>
>
>
|
 | 

|  |
These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.
|  |
| |
 |
 |
 |