Problem with Xml & XSL Transformation in VB.NET, Please HELP

  • Thread starter Thread starter Tiraman
  • Start date Start date
T

Tiraman

Hi,



I m working in VB.NET in front of ASP.Net and I would like to

Transform Xml with XSL and I would like to get the Html results as string
into one of my string params.



How can I do that?



10x in advance
 
Do you understand how XSL works?

your asking a pretty loaded question, in which case, I would recommend
learning XSL a little better before doing this. Reason, once you know about
XSL, creating HTML will be a breeze.

(BTW, XSL is XML... as XSD is XML, and XML is nothing and XML is everything.
the irony of it all eh?)

-CJ
 
Hi Tiraman,

First of all, I would like to confirm my understanding of your issue.
From your description, I understand that you want to know how to transform
a xml document to html by using xslt.
Have I fully understood you? If there is anything I misunderstood, please
feel free to let me know.

Here is a link you may take a look.
XslTransform.Transform Method
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemxmlxslxsltransformclasstransformtopic.asp

Please apply my suggestion above and let me know if it helps resolve your
problem.


Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
Hi Peter,
Here is a link you may take a look.
XslTransform.Transform Method
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemxmlxslxsltransformclasstransformtopic.asp

Please apply my suggestion above and let me know if it helps resolve your
problem.

In my opinion it is always right to give an OP an answer, but your answer is
in no way related to VB.net, should that not mean giving an answer, tell the
OP in which newsgroup he can get better answers about this subject, and
absolutly not asking for an reply in this newsgroup?

Just my thought about this?

Cor
 
Hi Peter ,

1st of all 10x for your response .

I probably didn't explained my needs well :-) so I will try again ,

I knew how to do the transformation by using the xslTransform.Transform
Method
but I didn't Knew how to take the html result and put is into some string
param .

after looking in few more groups i got a link to an article in Microsoft
that explain me how to use
the StringWriter method which can be use in the transform method .

so now i am fixed :-)

this was the missing part :

Dim writer As StringWriter = New StringWriter()
xslTran.Transform(xmlDoc, Nothing, writer)
sHTMLoutput = writer.ToString()

once again ,
10x for your response :-)
 
yes i am .

10x for your advise .

bye

CJ Taylor said:
Do you understand how XSL works?

your asking a pretty loaded question, in which case, I would recommend
learning XSL a little better before doing this. Reason, once you know about
XSL, creating HTML will be a breeze.

(BTW, XSL is XML... as XSD is XML, and XML is nothing and XML is everything.
the irony of it all eh?)

-CJ
 
Back
Top