[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: replacing < > in template

Subject: Re: replacing < > in template
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Sat, 18 May 2002 12:29:49 +0200
Re:  replacing <  > in template
Have a look at http://skew.org/xml/, you can find a HTML tree viewer there: http://skew.org/xml/stylesheets/treeview/html/. Another possibility is to use the MSXML internal one: res://msxml.dll/defaultss.xsl.

Either you use one of these stylesheets or copy some interesting code snippets out of it.

Joerg

Mattias Konradsson schrieb:
Ok, this one is funky, doubt it can be done but it doesn't hurt asking :)

Say that I have some XML like this

   <example>
       <menu id="t1" pageid="menu1" >
            <submenu id="t3" label="File">
                 <menuitem id="t4"  label="Quit" doFunction="window.close()"
/>
            </submenu>
      </menu>
   </example>

What I'd want is that all the code withing example should be shown, so the
tags needs to be replaced with
 entities, my question is if you in xslt can do a template for example so
that all tags within it regardless of whether they have templates elsewhere
get's their "<" ,">", "&"  etc replaced by html entities? Possible?

best regards
---
Mattias Konradsson


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.