[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Re: Graphics
Subject: Re: Graphics
From: "violet wright" <xsl9@xxxxxxxxxxx>
Date: Mon, 27 Mar 2000 22:42:00 GMT
|
There is an interesting article (recent) on displaying graphics in xml
documents by Kurt Cagle:
http://www.inquiry.com/techtips//xml_pro/answer.asp?pro=xml_pro&docID=4401
Violet
From: "Medina, Edward" <emedina@xxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxx
To: "'xsl-list@xxxxxxxxxxxxxxxx'" <xsl-list@xxxxxxxxxxxxxxxx>
Subject: Graphics
Date: Mon, 27 Mar 2000 14:59:06 -0500
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
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
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!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format
RSS 2.0 |
|
Atom 0.3 |
|
|