xml,xslt and html help

A

Arun dudee

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.
 
A

Andy Dingley

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>
 
A

Arun dudee

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!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,008
Messages
2,570,268
Members
46,867
Latest member
Lonny Petersen

Latest Threads

Top