[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XSL checkbox

Subject: Re: XSL checkbox
From: "Adrian Popescu" <adrian@xxxxxxxxxxxx>
Date: Tue, 18 May 2004 17:33:38 +0300
xslt checkbox
I am newbie in XSL and I search ALL GOOGLE for an example:((

this is my XSL

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="uri:xsl">
  <xsl:template match="/">
    function change(title_id)
      var root = detailXSL.documentElement;
      var selectedElems =  root.selectNodes("//xsl:for-each");
      var ifStatement = selectedElems.item(0);
      ifStatement.attributes(0).text =
                      "@title_id[.='" + title_id + "']";

        <TD BGCOLOR="#C0C0C0"><B>Title</B></TD>
        <TD BGCOLOR="#C0C0C0"><B>Details</B></TD>
      <xsl:for-each select="titlelist/titles" order-by="@title">
          <TD VALIGN="top"><xsl:value-of select="@title"/></TD>
          <TD VALIGN="top"><INPUT>
            <xsl:attribute name="TYPE">checkbox</xsl:attribute>
            <xsl:attribute name="VALUE">c1</xsl:attribute>
            <xsl:attribute name="ONCLICK">



    <XML ID="titles" SRC="titles.xml"></XML>
    <XML ID="detailXSL" SRC="details.xsl"></XML>

----- Original Message ----- 
From: "Andrew Welch" <ajwelch@xxxxxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, May 18, 2004 5:24 PM
Subject: RE:  XSL checkbox

> > Hi!
> > I have a problem!
> > I have an XML like this:
> [snip]
> > and I want an XSL
> > which have for every row with the title from xml an checkbox
> > and when I check this checkbox the background color of row is
> > changed! thanks
> You're asking more html than xslt here - if you know the html you need
> but are having problems generating it using xslt, then post the html and
> the stylesheet you are using.  Otherwise you may as well just ask 'can
> someone do my work for me' :)

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.