Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Creating hyperlinks with arguments from XML data by using XSL transformation

From: "msnews.microsoft.com" <fwr>
To: NULL
Date: 5/3/2004 12:30:00 PM
Thanks for the answer. I really appreciate that.

Sincerely,

"Oleg Tkachenko [MVP]" <oleg@NO!SPAM!PLEASEtkachenko.com> schrieb im
Newsbeitrag news:uk1peQgLEHA.1156@T......
> Muhammed Inam wrote:
>
> > Suppose I have the following recurring XML data:
> > <sgv>
> >     <items>
> >         <item id="5400" ugl_nr="1122" description="....."> </item>
> >         <item id="5420" ugl_nr="112222" description="....."> </item>
> >         <item id="5421" ugl_nr="1332" description="....."> </item>
> >     </items>
> > </sgv>
> >
> > And, I like this XML data to be converted into:
> >
> > .. HTML Tags ..
> >     <table>
> >     <tr>
> >         <td><a href="bes:desc?id=5400&ugl_nr=1122"> {description}
</a></td>
> >         <td><a href="bes:desc?id=5420&ugl_nr=112222"> {description}
> > </a></td>
> >         <td><a href="bes:desc?id=5421&ugl_nr=1332"> {description}
</a></td>
> >    </tr>
> > </table>
> >
> >
> > ´Don't worry about "bes:desc" protocol which si being handled by the
client
> > app. Client app uses MSXML4SP2.
> >
> > So, how can I do this? (Especially, link portion)
>
> <xsl:template match="item">
>    <td><a href="bes:desc?id={@id}&ugl_nr={@ugl_nr}"><xsl:value-of
> select="@description"/></a></td>
> </xsl:template>
>
> -- 
> Oleg Tkachenko [XML MVP, XmlInsider]
> http://blog.tkachenko.com




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