Mark Wilson I am the creator of TopXML. I am available for international and local (Australia) contracts. I am a Solution Architect/Business Analyst. I have worked in IT in several countries (NZ, Australia, South Africa, UK) building and training teams for government and very large non-governmental organizations. I am ex-Microsoft Consulting Services. I wrote the first book on Microsoft XML published in 2000 called XML Programming with VB and ASP. Most recently I have been building tools for the SEO industry. Ask me for a 37 point SEO health-checkup for your website.
The transformNode() method applies a stylesheet to the current
Node and its child Nodes. It returns this data in a string, which
is very useful for when you want to pass your data back as HTML
(which means that your XSL file needs to convert your XML data to
HTML):
The string strValue will contain the contents to transform the
Node into the required string. For more information, see chapter
5, "XSL-adding style to XML."
Example
The following example shows the string from the transformed
Node being passed back using the transformNode() method. We use
people2.xml to demonstrate the transformNode() method.
<TD>1143 Winners Lane, London, United
Kingdom</TD>
<TD>(++94) 17 12345</TD>
<TD>++94) 17 12345</TD>
<TD>Lorrin Maughan@somewhere.com</TD>
</TR>
<TR>
<TD>Steve Rachel</TD>
<TD>90210 Beverly Hills, California, United States of
America</TD>
<TD>(++1) 2000 12345</TD>
<TD>(++1) 2000 12345</TD>
<TD>Steve Rachel@somewhere.com</TD>
</TR>
</TABLE>
</BODY>
</HTML>
This manuscript is an abridged version of a chapter from the
Manning
Publications book XMLProgramming with VB and ASP. This chapter
looks at the Microsoft DOM objects. NOTE: Most images have been
removed to increase speed and many of the code comments have also
been removed for presentation. Please purchase the book to enjoy
the full experience of all the chapters with images and code
comments!