[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XSL & Entities

Subject: XSL & Entities
From: c p <bugs75il@xxxxxxxxx>
Date: Tue, 1 Mar 2005 15:53:58 -0800 (PST)
converting sgml to xml
Hello All,

I am converting SGML to XML.  After the XML is
created, it has several 
elements/attributes that point to external entities
that are stored in 
an .ent file.  For example:  images.

In my XML file the image element would look something
like this:
-----------------------------------------------------------------------------------------------------
<image imagename="CorporateLogo" width="100mm"
height="100"/>
-----------------------------------------------------------------------------------------------------


I am including the external entity file with following
notation at the 
top of the xml file:
-----------------------------------------------------------------------------------------------------
<?xml version="1.0"?>
<!DOCTYPE servinfo SYSTEM "my_xml.dtd"
[
<!ENTITY % images SYSTEM "my_images.ent">
%images;
]>
-----------------------------------------------------------------------------------------------------


Here is a snippet of the my_images.ent file:
-----------------------------------------------------------------------------------------------------
<?xml version='1.0' encoding='UTF-8' ?>
<!ENTITY CorporateLogo SYSTEM
"images\corporateLogo.gif">
-----------------------------------------------------------------------------------------------------

I am using XSL to transform the XML using Xalan
transformer.  I am 
wondering, if at all possible, how can I get to the
file path for that 
image that is stored in the entity file from the XSL?

I can do something like <xsl:value-of 
select="xpath-to-the-image-node"/> but thats going to
return the string: "CorporateLogo" instead I want 
it to return "images\corporateLogo.gif".

I looked up some info on "unparsed-entity-uri" and
tried using that but 
its just returning the same thing or a null string.

Any help would be appreciated. 

Thanks,
C.


	
		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we. 
http://promotions.yahoo.com/new_mail

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.