[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: regarding xsl:script
Depends on what you are doing. XSLT does not have the xsl:script, but you can use the msxsl:script if you include the namespace. Snippets of XSLT transformation using msxsl namespace: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:bitmask="http://www.truequote.com/quote/bitmasknamespace"> <msxsl:script language="VBScript" implements-prefix="bitmask"> Function DeCode(objAttr, intCode) If (objAttr.Item(0).Text and intCode) > 0 Then DeCode = "H000000FF" Else DeCode = "" End If End Function </msxsl:script> ... <xsl:for-each select="@*"> <xsl:attribute name="{concat('Attr', position())}"> <xsl:value-of select="bitmask:DeCode(parent::OT/@ChangeBitMask, 32)"/> </xsl:attribute> </xsl:for-each> .... There are other options depending on where the transformation has to take place. In my case I can rely on the users/client running IE 5.x, so I don't have the compatibility worries that go with running on multiple client browsers. -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Rosa I-Ting Cheng Sent: Tuesday, February 13, 2001 5:46 PM To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx' Subject: regarding xsl:script can anyone please tell me whether xsl:script is processed during transformation or the chunk between the xsl:script tags are only copied directly into the HTML so that its just like having the script written between <SCRIPT> HTML tags? if it's the former, is there any special declarations we must put at the top of the code? cos I have tried using xsl:script, but the browser don't seem to undestand it. Thanx! Rosa XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|