xsl-list
[Top] [All Lists]

Re: Retaining Entity refrence names in Output

2005-09-29 19:57:04
I see, but is there a way like creating a function
that would look up for all  string "ࣻஶ"
and change it to "&combo;"? I not that familliar with
creating custom functions in XSLT 2.0 but can this be
achieve using that?

-- UlyLee

--- David Carlisle <davidc(_at_)nag(_dot_)co(_dot_)uk> wrote:


No, XML entities are expanded by an XML parser, so
XSLT never sees the
entity reference it has already been replaced by its
replacement text
and the numeric character references have already
been replaced by the
referenced characters, before XSLT sees its input
tree.

However your definition of combo looks rather
starnge (unless it was
mangled by your mailer) with the numeric references
double escaped:
& a m p ; # x 2 1 9 9 ;
rather than
& # x 2 1 9 9 ;



David


________________________________________________________________________
This e-mail has been scanned for all viruses by
Star. The
service is powered by MessageLabs. For more
information on a proactive
anti-virus service working around the clock, around
the globe, visit:
http://www.star.net.uk

________________________________________________________________________


--~------------------------------------------------------------------
XSL-List info and archive: 
http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to:
http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--





        
                
______________________________________________________ 
Yahoo! for Good 
Donate to the Hurricane Katrina relief effort. 
http://store.yahoo.com/redcross-donate3/ 


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--