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

RE: Embedding HTML Select Lists in XSL ????

Subject: RE: Embedding HTML Select Lists in XSL ????
From: Joey Garcia <JGarcia@xxxxxxxxxxxx>
Date: Mon, 12 Feb 2001 14:21:26 -0700
joey garcia
Thanks, that was exactly correct!!!!  Here is what I replaced it with and
now it all works perfectly.  Thanks again Maurice!!  

<xsl:element name="select">
  <xsl:attribute name="name">lstPackage</xsl:attribute>
  <xsl:attribute
name="onChange">showContent(this.selectedIndex)</xsl:attribute>
    <option value="top">Select Package</option>
    <xsl:for-each select="/package_content_collection/packages/package">
      	<xsl:text disable-output-escaping="yes">&lt;</xsl:text>option
value=&quot;<xsl:value-of select="guid"/>&quot;<xsl:text
disable-output-escaping="yes">&gt;</xsl:text><xsl:value-of select="name"/>
    </xsl:for-each>	
<br/><br/>
</xsl:element>



-----Original Message-----
From: Gilles Maurice [mailto:GMaurice@xxxxxxxxxxx]
Sent: Monday, February 12, 2001 2:04 PM
To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
Subject: RE:  Embedding HTML Select Lists in XSL ????


Joey,

I inserted the following statements into one of my XSL files:

	<select name="lstPackage"
onChange="showContent(this.selectedIndex)">
	</select>

And had no problem with it. My <xsl:stylesheet> statement is the same as
yours. I am using the Sablotron XSLT processor.
I bet it fails on the name attribute - try calling it nam= just to see if it
fails.

As an alternative, try this:

      <element name="select">
        <attribute name="name">lstPackage</attribute>
        <attribute
name="onChange">showContent(this.selectedIndex)</attribute>

		[more stuff]

      </element>

Gilles

-----Original Message-----
From: Joey Garcia [mailto:JGarcia@xxxxxxxxxxxx]
Sent: Monday, February 12, 2001 3:28 PM
To: 'XSL Mailing List'
Subject:  Embedding HTML Select Lists in XSL ????


I am having a terrible time trying to get past a transformation error, I am
trying to build a select list on the fly and the error says that my "select"
attribute needs to have an "=" after it.  Obviously, it thinks this is an
XSL Select rather than an HTML select.

I am using the <xsl:output method="html"> but that doesn't seem to be
working since it was barking about a <BR> tag until I changed it <BR/>.
I've also tried using the <xsl:text  disable-output-escaping="yes"> element.

Here is the snippet that is causing my problems, it is the <select ...> that
is causing my error messages.


<span class="myTitle">Packages</span><BR/>
<select name="lstPackage" onChange="showContent(this.selectedIndex)">
<option value="top">Select Package</option>

<!-- Begin - Transform to show ALL Packages -->
      <xsl:for-each select="/package_content_collection/packages/package">
      	<xsl:text disable-output-escaping="yes">&lt;</xsl:text>option
value=&quot;<xsl:value-of select="guid"/>&quot;<xsl:text
disable-output-escaping="yes">&gt;</xsl:text><xsl:value-of select="name"/>
      </xsl:for-each>	
<!-- End - Transform to show ALL Packages -->

</select>
<BR/><BR/>




Also, I'm not sure if I am using this correctly since it is not working
correctly but here is how I am using the <xsl:output method="html"> even
though it is not working.  The <xsl:stylesheet is line 1.

<xsl:stylesheet 
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
	version="1.0">
<xsl:output method="html">
	

-- Joey


		Joey Garcia 	
		Web Design Engineer
		5475 Mark Dabling Blvd Colorado Springs, CO
		Phone: (719) 593-9890 x-322	Fax: (719) 532-0165
		Email: mailto:jgarcia@xxxxxxxxxxxx






 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.