|
Subject: I figured it out(was: no subject (sorry 'bout that)) From: mestdagh@xxxxxxxxxx Date: Thu, 8 Jul 1999 10:37:59 -0600 |
I found a sample by viewing the xsl source on one of the MS pages.
Here's what I did in case anyone's interested.
<xsl:template match="graphic">
<embed>
<xsl:attribute name="type">application/x-isoview</xsl:attribute>
<xsl:attribute name="src"><xsl:value-of
select="@BOARDNO"/></xsl:attribute>
<xsl:attribute name="border">1</xsl:attribute>
<xsl:attribute name="width">400</xsl:attribute>
<xsl:attribute name="height">300</xsl:attribute>
<xsl:attribute name="view">Start</xsl:attribute>
</embed>
</xsl:template>
have a good day,
steve
---------------------- Forwarded by Steve Mestdagh/Boulder/IBM on 07/08/99 10:31
AM ---------------------------
From: Steve Mestdagh on 07/08/99 09:55 AM
To: xsl-list@xxxxxxxxxxxxxxxx
cc:
From: Steve Mestdagh/Boulder/IBM@IBMUS
Subject:
Hi,
I'm attemping to grab the value of an attribute and stuff it into a embed/src
statement to display
in IE5 but haven't figured a way to make it happen. I've searched in the archive
and read
that xsl:variable isn't supported in IE5. I tried anyway to no avail. My last
attempt is using the
{} syntax for value-of which didn't give me an error but didn't display my cgm
files. The cgm
does display if I put it directly in the src, like src="123.cgm", so I know the
embed is working.
Any help would be greatly appreciated by this budding novice.
Here's the XML snip:
<graphic BOARDNO="00018.cgm"></graphic>
Here's the XSL snip:
<xsl:template match="graphic">
<div align="center">
<embed type="application/x-isoview" src={@BOARDNO} border="1" width="400"
height="300" view="Start"/>
<!--
^^^^^ problem ^^^ -->
<xsl:apply-templates/>
</div><p/>
</xsl:template>
have a good day,
steve
motd: "One of the surest signs that life exists in outer space is that none of
it has tried to contact us yet."
- Normandy Alden
ph: 303.924.1522
mail: mestdagh@xxxxxxxxxx
notes: Steve Mestdagh/Boulder/IBM@IBMUS
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [no subject], mestdagh | Thread | XSL-WG solicits comments on FO Draf, Stephen Deach |
| Passive TeX: using TeX to format XS, Sebastian Rahtz | Date | RE: entity expanding in MSIE5, David White |
| Month |