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 March 4th, 2004, 05:49 PM
Registered User
 
Join Date: Mar 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default XSL and Referencing Entities

I am trying to create an XSL stylesheet to display XML documents in browsers as HTML.

My graphic URIs are stored in entities (see below).

<!ENTITY graphic1 SYSTEM "\\test\supportknowledgebase\images\KB-01940_1.jpg" NDATA jpeg>
<!ENTITY graphic2 SYSTEM "\\test\supportknowledgebase\images\KB-01940_2.jpg" NDATA jpeg>
<!ENTITY graphic3 SYSTEM "\\test\supportknowledgebase\images\KB-01940_3.jpg" NDATA jpeg>

<Graphic entityref = "graphic1"/>

How would I get the URI from the entity to my XSL template(see below):
 <xsl:template match="Graphic">


        <img src="?????" alt="{@alt}" />


 </xsl:template>

Can anyone help?

Thanks





Similar Threads
Thread Thread Starter Forum Replies Last Post
referenced entities bcogney XML 7 April 21st, 2006 11:04 AM
referenced entities bcogney XSLT 0 April 20th, 2006 02:37 PM
Entities safin XSLT 1 November 7th, 2005 04:59 AM
REferencing xsl sheets in firefox lincsimp XSLT 0 September 11th, 2005 07:04 AM
Help in referencing xml element in xsl using ("")? klipss XSLT 2 July 28th, 2005 03:38 AM





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