[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: remove tags + CDATA tag out of big xml file
On 29/01/2010 11:02, bw wrote:
Hello, XSLT has no access to any tags in the input file, they are all resolved by an XML parser before XSLT sees the input. So your input is <content> <p>The<strong>keyword</strong> is nice to have but is not needed to include in a solr feed</p><p><table cellspacing="2" cellpadding="2" border="1" width="100%"><tbody><tr><td>Étape 1 :</td></tr> </content> The best way to get from such a string to an XML element tree is to parse the string. saxon and some other systems havve extensions to do that <xsl:copy-of seelct="saxon:parse(content)"/> for example. Otherwise as a deprecated and non portable alternative you may be able to get away with <xsl:value-of disable-output-escaping="yes" select="content"/> which doesn't create the element nodes, but just makes the appearance of them in the serialised reult. david ________________________________________________________________________ The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom. This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. ________________________________________________________________________
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|