Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Recursion within documentElement.transformNode ???

From: Martin Honnen <mahotrash@-----.-->
To: NULL
Date: 9/10/2009 1:01:00 PM
Jack Maclean wrote:

> <thread>
> 
> 	<threadentry id="1760434" img="a.jpg" text="Start New Thread">
> 
> 
> 		<threadentry id="1760440" img="a.jpg" text="First Reply">
> 		</threadentry>
> 
> 		<threadentry id="1760445" img="b.jpg" text="Second Reply">
> 
> 			<threadentry id="1760440" img="c.jpg" text="Reply to the reply.">
> 			</threadentry>
> 
> 		</treadentry>
> 
> 	</threadentry>
> 
> </thread>

> the simplest XSL that I can get to work looks like this. Its not doing
> what I want, it just outputs the root elements, no child elements.
> 
> 
> <div xmlns:xsl="http://www.w3.org/TR/WD-xsl">

XSLT 1.0 has been standardized in 1999 and the namespace of XSLT is 
http://www.w3.org/1999/XSL/Transform.
The namespace http://www.w3.org/TR/WD-xsl you are using is that of a 
predecessor of XSLT 1.0 that only old versions of MSXML (3.0 and 
earlier) support.
Unless you have legacy code I would strongly suggest not to use that 
namespace anymore but use XSLT 1.0.

As for your question, if you post the HTML output you want to generate 
for the XML input sample you have posted then we can help with an XSLT 
1.0 stylesheet.

-- 

	Martin Honnen --- MVP XML
	http://msmvps.com/blogs/martin_honnen/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent