niallok Posted July 24, 2014 Share Posted July 24, 2014 (edited) Hi thereI'm not a programmer, but need some help to find a way of displaying text in the CDATA section of an XML file using XSL. Or if there is an alternative to using XSL then I'm all ears (eyes?). Take, for example, the following line of my XML file: <property id="instruction1" media="screen"><![CDATA[<p>Select the <span class="bold">option</span> you think is correct.</p>]]></property> I ONLY want to display the text between the 'p' tags, i.e. "Select the option you think is correct." The formatting 'span' tag can be included if necessary, just as long as the 'p' tags are not displayed. Is this possible? Edit: I should clarify that I would like to create an XSL to use to display the XML content in a browser window. The full XML file is attached if required. Thanks a lotNiall 01_01_005.xml Edited July 24, 2014 by niallok Link to comment Share on other sites More sharing options...
L8V2L Posted July 24, 2014 Share Posted July 24, 2014 http://www.xqib.org/ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now