This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Microsoft XML > March 2004 > CSharp Script into XSL -> Outputting XML





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author CSharp Script into XSL -> Outputting XML
Laurent Lequenne

2004-03-30, 10:15 pm

Hello there,

I would like to generate some XML from an inline Csharp function into an XSL
file. Unfortunately when I return a string from the procedure, the XML is
HTML Encoded. Is there a way to generate XML from a script ?

Thanks

Laurent


Oleg Tkachenko [MVP]

2004-03-30, 10:15 pm

Laurent Lequenne wrote:

> I would like to generate some XML from an inline Csharp function into an XSL
> file. Unfortunately when I return a string from the procedure, the XML is
> HTML Encoded. Is there a way to generate XML from a script ?


Sure. But you should return XPathNodeIterator (represents node-set) or
XPathNavigator (represents result-tree fragment), not string.

--
Oleg Tkachenko [XML MVP, XmlInsider]
http://blog.tkachenko.com
Laurent Lequenne

2004-03-30, 10:15 pm

Wooo!!! Great :-) I already tryed NodeCollections, XML Documents... All of
those strips completely the Tags ! I'll give a try to it :-)

Thanks
Laurent


"Oleg Tkachenko [MVP]" <oleg@NO!SPAM!PLEASEtkachenko.com> wrote in message
news:%23%236EECkFEHA.3064@tk2msftngp13.phx.gbl...
> Laurent Lequenne wrote:
>
XSL[color=darkred]
is[color=darkred]
>
> Sure. But you should return XPathNodeIterator (represents node-set) or
> XPathNavigator (represents result-tree fragment), not string.
>
> --
> Oleg Tkachenko [XML MVP, XmlInsider]
> http://blog.tkachenko.com



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews