Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > xml,xslt and html help

Reply
Thread Tools

xml,xslt and html help

 
 
Arun dudee
Guest
Posts: n/a
 
      04-10-2007
i have make a webpage on which i have t makes some hyerlinks on left
of page and then on main page i have have a image on top of page and
then below it some text.
what i ahve to do is that these hyperlinks and image should come from
an xml then using xslt show it on page.
my question is how to put hyperlinks and image or image path in xml
file so that pasring parsing it everyyhingh on page comes from xml.

its urgent please help.

 
Reply With Quote
 
 
 
 
Andy Dingley
Guest
Posts: n/a
 
      04-10-2007
On 10 Apr, 08:28, "Arun dudee" <arundu...@gmail.com> wrote:

> my question is how to put hyperlinks and image or image path in xml
> file so that pasring parsing it everyyhingh on page comes from xml.


Read up on the use of xsl:attribute, then use something a bit like
this

<a>
<xsl:attribute name="href" ><xsl:value-of
select="./foo/bar/@href-attribute-source" /></xsl:attribute>
<xsl:value-of select="./foo/bar/@link-text-attribute-source" />
</a>


 
Reply With Quote
 
 
 
 
Arun dudee
Guest
Posts: n/a
 
      04-10-2007
On Apr 10, 2:44 pm, "Andy Dingley" <ding...@codesmiths.com> wrote:
> On 10 Apr, 08:28, "Arun dudee" <arundu...@gmail.com> wrote:
>
> > my question is how to put hyperlinks and image or image path in xml
> > file so that pasring parsing it everyyhingh on page comes from xml.

>
> Read up on the use of xsl:attribute, then use something a bit like
> this
>
> <a>
> <xsl:attribute name="href" ><xsl:value-of
> select="./foo/bar/@href-attribute-source" /></xsl:attribute>
> <xsl:value-of select="./foo/bar/@link-text-attribute-source" />
> </a>


okie!!

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
firefox html, my downloaded html and firebug html different? Adam Akhtar Ruby 9 08-16-2008 07:55 PM
Need help with HTML coding for Index.html background image James O'Riley HTML 4 05-05-2006 02:28 AM
Help on HTML server control vs HTML control =?Utf-8?B?c2VyZ2UgY2FsZGVyYXJh?= ASP .Net 5 09-15-2005 07:51 PM
Need help appending html code to many html files. Tom HTML 7 09-08-2004 11:55 PM
help! javascript inline of an HTML to open an HTML in a target window Lucy Javascript 6 01-01-2004 07:07 PM



Advertisments