Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 10th, 2007, 03:38 AM
Friend of Wrox
 
Join Date: Jan 2007
Posts: 115
Thanks: 2
Thanked 0 Times in 0 Posts
Default Change Drop down Border style

Hi, Please I need help!

I have xslt file which i have no clue but html skills, the xslt file is used by our flowcentric application. I wanted to change the dropdowns border style but this can't be done in HTML - so is saw i link where I want the drop down style but it's not in html.

How do i incorporate the following code into my existing Flowcentric xslt file?

[u]Example i got from net - i want to incorporate this to xslt file</u>
<?xml version="1.0" encoding="utf-8"?>

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="middle" backgroundColor="white">

    <mx:Style>
        .myComboBoxDropdown {
            dropShadowEnabled: true;
            shadowDistance: 3;
            shadowDirection: "right";
            cornerRadius: 5;
        }
    </mx:Style>

    <mx:ComboBox dropdownStyleName="myComboBoxDropdown">
        <mx:dataProvider>
            <mx:String>one</mx:String>
            <mx:String>two</mx:String>
            <mx:String>three</mx:String>
            <mx:String>four</mx:String>
            <mx:String>five</mx:String>
        </mx:dataProvider>
    </mx:ComboBox>
</mx:Application>


[u]Flowcentric xslt file: </u>

<xsl:when test="$Object/@type[.='drop down' or .='lookup' or .='team select']">
<xsl:call-template name="ListValueType">
<xsl:with-param name="Name" select="$Object/@name" />
<xsl:with-param name="Attributes" select="$Object/Attributes" />
<xsl:with-param name="Options" select="$Object/Options" />
<xsl:with-param name="Value" select="$Object/Value" />
</xsl:call-template>
</xsl:when>

<xsl:template name="ListValueType">
<xsl:param name="Name" />
<xsl:param name="Attributes" />
<xsl:param name="Options" />
<xsl:param name="Value" />
<xsl:element name="asp:dropdownlist">
<xsl:attribute name='id'><xsl:value-of select='$Name' /></xsl:attribute>
<xsl:attribute name='runat'>server</xsl:attribute>
<xsl:for-each select="$Attributes/Attribute">
<xsl:attribute name='{@name}'><xsl:value-of select='.' /></xsl:attribute>
</xsl:for-each>
<xsl:for-each select='$Value/Options/Option'>
<xsl:element name="asp:ListItem">
<xsl:attribute name='Value'><xsl:value-of select='.' /></xsl:attribute>
<xsl:if test="@selected[. = 'true']"><xsl:attribute name='selected'>true</xsl:attribute></xsl:if>
<xsl:value-of select='.' />
</xsl:element>
</xsl:for-each>
</xsl:element>
</xsl:template>

Please Anyone, Help!!!

Regards,
Ismail



 
Old December 10th, 2007, 05:26 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

I think you need to get help from someone who understands the Adobe mxml vocabulary. It's too specialist an area for this list.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
 
Old December 10th, 2007, 07:25 AM
Friend of Wrox
 
Join Date: Jan 2007
Posts: 115
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by mhkay
 I think you need to get help from someone who understands the Adobe mxml vocabulary. It's too specialist an area for this list.

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






Similar Threads
Thread Thread Starter Forum Replies Last Post
Change border color for every cell of a table jdang67 CSS Cascading Style Sheets 10 May 6th, 2010 12:21 AM
Incorporate HTML Code in XSLT (Drop down border) ismailc XSLT 3 January 14th, 2008 09:18 AM
Different Font Style For Elements in Drop Down Box kunal_kishan HTML Code Clinic 1 July 11th, 2006 09:01 AM
How to avoid jumpings when change border style liliarum BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 0 October 11th, 2005 04:44 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.