Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 26th, 2003, 04:33 PM
Registered User
 
Join Date: Jun 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Hi. Question regarding physical paths in XSL.

Hi Guys,

I can't seem to find any literature regarding this problem.

I need to look for an occurrence of an image in a folder in an xsl page <xsl:attribute name="SRC">images/providers/<xsl:value-of select="PS600_MID" />.jpg</xsl:attribute> and if there is no occurrence of the image use an default image <xsl:attribute name="SRC">images/providers/default.jpg</xsl:attribute>.

How do you check a folder (images/providers) to see if there is a pic with a member # <xsl:value-of select="PS600_MID" /> -- this is a number that is held in a xml map.

Can <xsl:attribute name="SRC">images/providers/<xsl:value-of select="PS600_MID" />.jpg</xsl:attribute> be used as a variable and then referenced later?

Thank you for your time and expertise - it is greatly appreciated,
Mike





Similar Threads
Thread Thread Starter Forum Replies Last Post
xsl question for new user MHTL XSLT 4 May 13th, 2008 10:01 PM
xsl question bluisana XSLT 7 September 15th, 2005 01:34 AM
xsl:sort Question kwilliams XSLT 6 July 18th, 2005 08:39 AM
xsl:if question rdavisiii XSLT 2 March 30th, 2005 01:40 PM
XSL processing question.. eladner XSLT 1 August 24th, 2004 07:58 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.