This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Graphics
- To: xsl-list at mulberrytech dot com
- Subject: Re: Graphics
- From: "violet wright" <xsl9 at hotmail dot com>
- Date: Mon, 27 Mar 2000 22:42:00 GMT
- Reply-To: xsl-list at mulberrytech dot com
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@btg.com>
>Reply-To: xsl-list@mulberrytech.com
>To: "'xsl-list@mulberrytech.com'" <xsl-list@mulberrytech.com>
>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