This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Embedding HTML Select Lists in XSL ????
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Embedding HTML Select Lists in XSL ????
- From: "Julian F. Reschke" <julian dot reschke at gmx dot de>
- Date: Mon, 12 Feb 2001 22:02:12 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Joey Garcia
> Sent: Monday, February 12, 2001 9:28 PM
> To: 'XSL Mailing List'
> Subject: [xsl] 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.
No, it just knows that in well-formed XML, attributes must have values.
> 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/>.
The output element defines the desired output, not the input...
> 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"><</xsl:text>option
> value="<xsl:value-of select="guid"/>"<xsl:text
> disable-output-escaping="yes">></xsl:text><xsl:value-of select="name"/>
> </xsl:for-each>
> <!-- End - Transform to show ALL Packages -->
>
> </select>
> <BR/><BR/>
Stop trying to build elements by emitting strings. Try
<xsl:for-each select="/package_content_collection/packages/package">
<option value="{guid}"><xsl:value-of select="name" /></option>
</xsl:for-each>
instead.
> 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@mobilize.com
>
>
>
>
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list