p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

xslt thread: BR POSITION


Message #1 by "Pallone, Claudio [KMR-SPC]" <Claudio.Pallone@k...> on Tue, 10 Jul 2001 17:54:42 +0100
Sorry, Claudio, I think you need to do some reading. These questions suggest
you haven't started to understand how XSLT works, and I don't think that
raising questions like this is an efficient way for you to learn.

Mike Kay
Software AG

> -----Original Message-----
> From: Pallone, Claudio [KMR-SPC] [mailto:Claudio.Pallone@k...]
> Sent: 10 July 2001 17:55
> To: P2P_XSLT
> Subject: [xslt] BR POSITION
>
>
> So, instead of using ASP to write the links how can I use
> > XSLT to pick up
> Hi Mike,
>
> Please could you help me with those 3 questions?
>
> 1 - Where do I put my HTML tags when I have two templates
> like in the code
> you sent me?
>
> 2 - where would I put a <BR> tag so the links display in
> different lines?
>
> 3 - Can use this code in one HTML page that I have already created?
>
> Looking forward to your reply.
>
> Cheers,
>
> Claudio
>
>
>
> > all the values from the XML file and insert them into my
> > links in the order I want?
>
> That's easy (except that I'm not sure what order you want):
>
> <xsl:template match="relatedLinks">
>   <xsl:apply-templates select="link"/>
> </xsl:template>
>
> <xsl:template match="link">
>   <a href="{@url}" target="{@target}"><xsl:value-of select="."/></a>
> </xsl:template>
>
> Mike Kay
> >
> > > This is my xml file
> > >
> > > <?xml version="1.0"?>
> > >
> > > <relatedlinks>
> > >   <link url="default.htm" target="_self">Front Page</link>
> > >   <link url="news.htm" target="_self">News Section</link>
> > >   <link url="sports.htm" target="_self">Sports Section</link>
> > >   <link url="weather.htm" target="_self">Weather Page</link>
> > > </relatedlinks>
>
>
> BMRB International
> http://www.bmrb.co.uk +44 (0)20 8566 5000
>
> ____________________________________________________________
> This message (and any attachment) is intended only for the
> recipient and may
> contain confidential and/or privileged material. If you have
> received this
> in error, please contact the sender and delete this message
> immediately.
> Disclosure, copying or other action taken in respect of this
> email or in
> reliance on it is prohibited. BMRB International Limited accepts no
> liability in relation to any personal emails, or content of
> any email which
> does not directly relate to our business.
>
> ---
> When you work at Microsoft, you don't have to wait for the
> latest technologies to be released. You'll create them ? with
> XML, SOAP, and C# -- and help decide what happens next.
> Find out where your career can take you: take a look at our
> software design engineer opportunities at
> http://www.microsoft.com/jobs.
>


  Return to Index