Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Weird Results in XML >Thread Next - Re: Weird Results in XML Re: Weird Results in XMLTo: NULL Date: 2/2/2008 2:01:00 PM Sparky wrote: > I am getting a result via an XStream XML report that looks as follows: > <owner class="com.mrll.security.LoginVO" reference="../.."/> (Please > note the reference="../.." portion) > > If you follow the "../.." you end up in the previous node where the > information I need is in the XML. Is there any w2ay to get this > information out of this file using XSL? Well if you know that the reference is ../.. then you can use it as an XPath expression in your XSLT stylesheet. However dynamic XPath evaluation is not possible thus if you expect to take the reference attribute value and construct an XPath expression from it then that does not work with standard XSLT/XPath in one stylesheet. You could however process the document using one XSLT stylesheet that creates a second stylesheet, then you could apply that second stylesheet. -- Martin Honnen http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
