XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Scott BakerSubject: Removing all HTML tags from my content
Author: Scott Baker
Date: 06 Sep 2005 09:07 PM
I'm trying to remove all HTML tags from a node. such as <br> <br> <node><br> This is the <script language="javascript> (code goes here) </script> there would be more text <b> with </b> more tags <i>popping up</i>.<br> </node><br> <br> I want all HTML removed. Can I use <br> <xsl:value-of select="replace()" somehow? <br> <br> Thanks in advance, <br> <br> Scott.<br>

Posttop
Tony LavinioSubject: Removing all HTML tags from my content
Author: Tony Lavinio
Date: 16 Sep 2005 02:34 PM
Not really being sure of what your source document looks like in its
entirety, did you just try
<xsl:value-of select=".">
That will return the strings within the current element and its children,
without the tags.

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.