Subject: Graphics From: "Medina, Edward" <emedina@xxxxxxx> 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: Another Beginner's Question, Kay Michael | Thread | Re: Graphics, violet wright |
Another Beginner's Question, Laurie Mann | Date | Re: Validating XML Document......, David Carlisle |
Month |