Hi all, In my XML file, there is a < image name="aa.jpg" width="100" length="100" /> element, in the corresponding XSLT, How can I put the above three attributs in HTML <img> tag like the following: <xsl: template ...> <img src="<xsl:value of select="attrname" /> " width="..." lenght="..." /> </xsl: template ...> Clara -- thank you so much for your help
U¿ytkownik "clara" napisa³ w wiadomo¶ci news:300395B4-1056-44FF-904F-746BF84B6F5A@microsoft.com... > Hi all, > > In my XML file, there is a < image name="aa.jpg" width="100" length="100" > /> > element, in the corresponding XSLT, How can I put the above three > attributs > in HTML <img> tag like the following: > > <xsl: template ...> > <img src="<xsl:value of select="attrname" /> " width="..." lenght="..." > /> > > </xsl: template ...> > > Clara > -- > thank you so much for your help <img src="{attrname}" width="{@attrname}" lenght="..." /> @ is a notation of attribute (abbreviation of attribute::*) -- td
Thank you Toudidel! Clara -- thank you so much for your help "TOUDIdel" wrote: > > U¿ytkownik "clara" napisa³ w wiadomo¶ci > news:300395B4-1056-44FF-904F-746BF84B6F5A@microsoft.com... > > Hi all, > > > > In my XML file, there is a < image name="aa.jpg" width="100" length="100" > > /> > > element, in the corresponding XSLT, How can I put the above three > > attributs > > in HTML <img> tag like the following: > > > > <xsl: template ...> > > <img src="<xsl:value of select="attrname" /> " width="..." lenght="..." > > /> > > > > </xsl: template ...> > > > > Clara > > -- > > thank you so much for your help > > <img src="{attrname}" width="{@attrname}" lenght="..." /> > > @ is a notation of attribute (abbreviation of attribute::*) > -- > td > > >