This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Getting the value of an entity


This is what the function unparsed-entity-uri() is for.

Nice to know that someone wants it.

Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com 

> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com 
> [mailto:owner-xsl-list@lists.mulberrytech.com] On Behalf Of 
> Cesar Ignacio Garcia Osorio
> Sent: 02 September 2002 17:49
> To: XSL-List@lists.mulberrytech.com
> Subject: [xsl] Getting the value of an entity
> 
> 
> 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@ubu.es
> Av. Cantabria S/N
> 09006 - Burgos. Spain.
> ---------------------------------------------------------------------
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]