Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: xml paths in xsl

From: Gabi@-----------.---------.---
To: 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/
> 


transparent
Print
Mail
Digg
delicious
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