![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: xml paths in xsl [Thread Next] Re: xml paths in xslTo: NULL Date: 8/1/2006 2:23:00 AM Hi Martin , i am just curious and want to know. what should i do to use it with template? im a new in xsl. Thanks "Martin Honnen" wrote: > > > Gabi wrote: > > > > <td> > > <xsl:value-of select="NamedParams/Param/@Value"/> > > </td> > > > my problem is : > > how can i get the value from the xml file and write it in my xsl file: > > <Param Name="2" Value="ii@l..."/> > > the first line working fine (<Param Name="1" Value="ll@l..."/>) > > In the end you will find that having just one template and some > xsl:for-each is rather cumbesome compared to writing templates matching > the different elements and making sure with xsl:apply-templates that > child or descendants are processed. So while a quick fix for the problem > might be to replace the above quoted snippet with > <xsl:for-each select="NamedParams/Param"> > <td> > <xsl:value-of select="@Value" /> > </td> > </xsl:for-each> > you should look into a different approach with some more but easier > templates. > > > -- > > Martin Honnen --- MVP XML > http://JavaScript.FAQTs.com/ > | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
