|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Need help rendering the HTML residing within the X
Hi Jeremy,
Welcome to XSLT. At 10:28 PM 8/11/2004, you wrote: First timer problem (couldn't find an exact answer in the archives): I have an XML file with a hundred plus nodes of which any number could at any time contain HTML tags such as the <b></b> tag in line 2.
So if you had: <author>Alexandre Dumas, <i>phre</i></author> this would be an element node, an 'author', with two children, a text node
("Alexandre Dumas, ") and another element, an 'i' with a text node child.The browser seems to like character entity equivalents such as in line 2 below and renders the <name> node in bold when I have disable-output-escaping set to "yes".
This is why you're liable to get scolded for using disable-output-escaping. Used like this it's a terrible hack that only happens to work in a single readily-available tool. but the chances of getting character entitiy equivalents into my XML file vs. brackets are slim to none.
Does this mean I'd have to write a query function within the XSL that goes through every node in my XML file looking for regular HTML tags? Wouldn't this take forever to parse considering I could have upwards of a hundred nodes in my XML? Is there something I'm missing? Does anybody know of an article or link that address my problem?
Please feel free to follow up with further questions. Cheers, Wendell
|
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
|

Cart








