Hi,
        a possible solution is:

<xsl:template match="img">
    <fo:external-graphic src="{@src}">
      <xsl:apply-templates/>
    </fo:external-graphic>
</xsl:template>

this works for XSL-FO, for HTML will became:

<xsl:template match="img">
    <img src="{@src}">
      <xsl:apply-templates/>
    </img>
</xsl:template>

                                        Fabio

PS: if you write <xsl:template match="//img"> this will transform all the
img tags inside your document into anchors or fo:external-graphics

-----Original Message-----
From: rajeev nair [mailto:[EMAIL PROTECTED]]
Sent: 14 September 2001 10:11
To: [EMAIL PROTECTED]
Subject: Extracting image embeddede in XMLfile using XSL????????


hi,
the question is some what out of group.
any way please help me.
I want to extract the image that i embedded in xml
file using the img element using xsl stylesheet.
that is, if my xml file is: 
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="a.xsl"
<root>
<img src="a.gif"/>
</root>
How my a.xsl would be,so that i get image in browser.
i don't want to write 
<img src="a.gif"/> in my xsl also.
what is the right way to extract.
any help will be greately appreciated.
regards
rajiv

__________________________________________________
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to