N
news.hunterlink.net.au
(* note the escaped ampersand and the character reference have extra spaces
to avoid being converted when viewed)
I have a job that requires the following
<ThisElement>Here is some text & a m p ; here is a & # x E 2 ;
character</ThisElement>
to end up as
<ThisElement>Here is some text & a m p ; here is a & # x E 2 ;
character</ThisElement>
after it has been transformed using MSXSL3.0. There will be other parts of
the source XML that get changed but the heart of my problem is I want to
keep the escaped ampersand and the character reference as they are.
currently the escaped ampersand remains as is and the character reference
changes to
& a m p ; # E 2 ; with the single the first character getting escaped. If I
disable output escaping it remains intact but then the & character gets
converted to a single ampersand and create bad resulting XML.
I need some XSL code that will keep any currently escaped characters but not
escape any character references.
Any help would be great, I have read through the spec but not found the any
answers.
Thanks
to avoid being converted when viewed)
I have a job that requires the following
<ThisElement>Here is some text & a m p ; here is a & # x E 2 ;
character</ThisElement>
to end up as
<ThisElement>Here is some text & a m p ; here is a & # x E 2 ;
character</ThisElement>
after it has been transformed using MSXSL3.0. There will be other parts of
the source XML that get changed but the heart of my problem is I want to
keep the escaped ampersand and the character reference as they are.
currently the escaped ampersand remains as is and the character reference
changes to
& a m p ; # E 2 ; with the single the first character getting escaped. If I
disable output escaping it remains intact but then the & character gets
converted to a single ampersand and create bad resulting XML.
I need some XSL code that will keep any currently escaped characters but not
escape any character references.
Any help would be great, I have read through the spec but not found the any
answers.
Thanks