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

Getting the value of an entity

Subject: Getting the value of an entity
From: Cesar Ignacio Garcia Osorio <cgosorio@xxxxxx>
Date: Mon, 02 Sep 2002 18:49:08 +0200
cesar ignacio garcia osorio
I want to know if using a XSLT stylesheet is possible to access
to the information associated to a entity. I explain it using
an example:

I have a document like this:

<?xml version="1.0"?>
<!DOCTYPE root [
   <!NOTATION GIF PUBLIC "+//ISBN 0-7923-1::Graphic Notation//NOTATION
Microsoft Windows bitmap//EN">
   <!ELEMENT root (include, txt)>
   <!ELEMENT txt (#PCDATA)>
   <!ELEMENT include EMPTY>
   <!ATTLIST include ref ENTITY>
   <!ENTITY mygif SYSTEM "draw.gif" NDATA GIF>
   ]>
<root>
  <include ref="mygif"/>
  <txt>
  Some text
  </txt>
</root>

And I want that my stylesheet generates something like this

<html>
<head><title>A title</title></head>
<body>
<a img="draw.gif"/>
Some text
</body>
</html>

And for that I need to access to the name of the gif file
("draw.gif" in the example) that is associated with the
entity mygif.

Thanks in advance

---------------------------------------------------------------------
César Ignacio García Osorio                  phone : +34 947 258989
Área de Lenguajes y Sistemas Informáticos            +34 947 258970
Escuela Politécnica Superior                 fax   : +34 947 258910
Universidad de Burgos.                       e-mail: cgosorio@xxxxxx
Av. Cantabria S/N
09006 - Burgos. Spain.
---------------------------------------------------------------------

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.