p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   XSLT (http://p2p.wrox.com/forumdisplay.php?f=86)
-   -   xsl links to target iframe (http://p2p.wrox.com/showthread.php?t=46358)

dragonkeeper August 9th, 2006 10:50 PM

xsl links to target iframe
 
I have an xml document that is rendered using xsl which forms a table full of html links.
This is loaded into an iframe of a HTML document. I am trying to target a second iframe on the page from the links created from the xml document. This is what I have, but it is not working any help figuring it out will be greatly appreciated. "front" is the name and id of the iframe that I am attempting to target. I'm only concerned with this working in IE.

<table border="1">
  <xsl:for-each select="movielist/movie">
     <tr>
        <td WIDTH="300">
         <xsl:element name="a">
        <xsl:attribute name="href"><xsl:value-of select="coverfront"/></xsl:attribute>
        <xsl:attribute name="target">front</xsl:attribute>
        <xsl:value-of select="title"/>
         </xsl:element>
    </td>
   <td WIDTH="120" align="center"><xsl:value-of select="mpaarating/displayname"/></td>
    <td WIDTH="84" align="center"><xsl:value-of select="runtime"/></td>
     </tr>
  </xsl:for-each>
</table>


mhkay August 10th, 2006 12:28 PM

Do you know what HTML you want your transformation to generate? If you do, then post the source XML and the required HTML, and tell us where you're having difficulty getting from one to the other.

If you don't know what HTML you're trying to generate, then you shouldn't be writing any XSLT code until you do.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference


All times are GMT -4. The time now is 04:12 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.