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

Graphics

Subject: Graphics
From: "Medina, Edward" <emedina@xxxxxxx>
Date: Mon, 27 Mar 2000 14:59:06 -0500
restrict image size in span
Hello again!

I've been able to figure out how to display images, 
and have even been able to display them where I want (occassionally).

However, I've encountered a problem.  

If I use 

<xsl:template match="image">


			<SPAN style="
				 font-size: 10pt;
				 font-style: normal;
				 font-weight: bold;
				 vertical-align: center;
				 margin-right: 3pc;
				 width: 300;
				 height: 100">

			<p>
			<IMG >
			<xsl:attribute name="SRC" >
			<xsl:value-of select="@reference"/>
			</xsl:attribute>
			</IMG>
			</p>

			<xsl:value-of />
			<xsl:apply-templates />
			<p></p>

			</SPAN>
</xsl:template>

	

The images will display only wherever I placed them in the XML (in other
words XML would hold some of my style).

But if I do this
<xsl:template match="packet" >
		<p></p>
		<p></p>
		<SPAN style="
			margin-left: 3pc;
			margin-right: 3pc;
			width:100%;
			font-weight: normal;
			font-size: small">
			<table  border="1" cell-padding="1"  align="left">
				<tbody align="center">
					<tr>
				     	<td bgcolor="lightblue">
				     	<SPAN style="
				     		font-weight: bold;
				     		font-size: medium" >
						  <xsl:value-of
select="../packet/para/title"/>
						(<xsl:value-of
select="//title/@secur.classif"/>)
					</SPAN>
					</td>
					</tr>
				</tbody>
			</table>
			<br></br>
			<br></br>	
		<SPAN style="
			width: 100%">
			<p>
			<IMG >
			<xsl:attribute name="SRC" >
			<xsl:value-of select="@reference"/>
			</xsl:attribute>
			</IMG>
			</p>
			<br></br>
		</SPAN>

		<xsl:apply-templates />
		</SPAN>
</xsl:template>

They don't display, and are only able to display if I do 


		<SPAN style="
			width: 100%">
			<p>
			<IMG >
			<xsl:attribute name="SRC" >
			<xsl:value-of
select="//packet/illust/image/@reference"/>
			</xsl:attribute>
			</IMG>
			</p>
			<br></br>
		</SPAN>

but then the problem is the same graphics is displayed everytime there is a
new "packet" in the
XML, and its always the same graphics.  I have been able to display only
one, by controlling the 
XML and doing some other things.  I want to display a graphics (banner)
above the document title
that I'm producing as well as wherever there may be a need to display, but I
want to restrict people
with the DTD not to place graphics above the title.  How can I do that?  Or
can I do that at all?



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


Current Thread
  • Graphics
    • Medina, Edward - Mon, 27 Mar 2000 14:59:06 -0500 <=
      • <Possible follow-ups>
      • violet wright - Mon, 27 Mar 2000 22:42:00 GMT

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.