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

Re: Specifying the src attribute for <fo:externalgraph

Subject: Re: Specifying the src attribute for <fo:externalgraphic>
From: bharathi kongara <bharathikongara@xxxxxxxxx>
Date: Sun, 21 Aug 2005 23:03:35 -0700 (PDT)
bharathi kongara
Hi Colin

I'm not sure why, but it worked this way even if the
src is a file name! Thanks for your help.

Thanks
Bharathi

--- Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx> wrote:

> >>>>> "Bharathi" == bharathi kongara
> <bharathikongara@xxxxxxxxx> writes:
> 
>     Bharathi> Sorry the last mail was sent by
> mistake my xml is:
> 
>     Bharathi> <CoverPage>
> <Graphics>C:\baby.bmp</Graphics>
>     Bharathi> <Title>Cover Page</Title> </CoverPage>
> 
>     Bharathi> my xsl is:
> 
>     Bharathi> <xsl:template match="CoverPage">
> <fo:block
>     Bharathi> break-after="page">
> <xsl:apply-templates
>     Bharathi> select="Graphics"/>
> <xsl:apply-templates
>     Bharathi> select="Title"/> <xsl:apply-templates
>     Bharathi> select="CoverPageText"/> </fo:block>
> </xsl:template>
> 
>     Bharathi> <xsl:template match="Graphics">
> <fo:block>
>     Bharathi> <fo:external-graphic src=""
> height="40mm" width="40mm"/>
>     Bharathi> </fo:block> </xsl:template>
> 
>     Bharathi> My problem is how to refer to the
> graphic location
>     Bharathi> specified in the xml, in the src
> attribute of
>     Bharathi> fo:externalgraphic of xsl stylesheet(I
> left it blank).
> 
> Well, the first thing to note is that the src
> attribute must take a
> URI, not a file name.
> 
> So, assuming you can correct your xml file to
> specify a url rather
> than a file name, you can then use xsl:element plus
> xsl:attribute 
> (instead of coding fo:external-graphic as a literal
> result element).
> 
> Within the xsl:attribute for the src attribute, you
> can specify
> select="CoverPage/Graphics/text()".
> -- 
> Colin Adams
> Preston Lancashire
> 
> 


Bharathi Kongara,
Graduate Student,
Department of Computer Science,
Utah State University,
Logan,UT 84321

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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.