![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - replacing text [Thread Next] Re: replacing textTo: NULL Date: 2/4/2007 2:24:00 PM mat@m... wrote: > I've a huge problem understanding XSLT. I'm trying to replace the > contents of a element within a XML document, so that the time > information is removed. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <!-- Identity transform --> <xsl:template match="@*|node()"> <xsl:copy> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl:template> <xsl:template match="SomeInfo/Date/text()"> <xsl:value-of select="substring-before(.,'T')"/> </xsl:template> </xsl:stylesheet> -- Oleg Tkachenko [XML MVP, MCPD] http://blog.tkachenko.com | http://www.XmlLab.Net | http://www.XLinq.Net | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
