Subject: Fw: XSL questions From: "Frank Boumphrey" <bckman@xxxxxxxxxxxxx> Date: Tue, 3 Nov 1998 14:34:11 -0500 |
This is a multi-part message in MIME format.
I was recently asked this question. Can anyone help? Frank ----- Original Message ----- From: Anita Wong <bingjohn@xxxxxxxxxxxxxxxx> To: <Bckman@xxxxxxxxxxxxx> Cc: <anita.wong@xxxxxxxx>; <edward.hieatt@xxxxxxxx> Sent: Monday, November 02, 1998 1:28 PM Subject: XSL questions name is Anita Wong. I have been experimenting with Koala's XSL processor. I work with a team developing a 100% Java commercial application called wyzdom (www.wyzdom.com). We are very interested in XML/XSL. We are attempting to convert one of our XSL style sheets which was orginally written to follow the XSL rule syntax ("old style" ) found in Microsoft's MSXSL tutorial to work Koala's which is more w3c compliant ( "new style" ). We have had success with about 85% of the style sheet ( basic rule and ancestor matching works great !) but we have three areas that we don't know how create XSL rules for: 1) <empty/> tag - Action syntax used to supress processing of elements that succesfully match a rule. We need to supress display of certain elements depending on different style sheets. Example: <xsl:template match="orderID | manufacturer | product | version | partNumber | quantity | qtyOrdered | qtyPending | qtyAccepted"> <empty/> </xsl:template> (2) <eval> tag - Action syntax used to navigate XML DOM Example: <xsl:template match="wyzItem"> <TR> <TD VALIGN="TOP" ALIGN="LEFT"> <DIV font-size="10pt" font-weight="bold" text-align="center"><eval>formatNumber(childNumber(this), "1")</eval></DIV> </TD> <TD VALIGN="TOP" > <DIV font-size="10pt" text-align="center"><eval>this.children.item("orderID",0).text</eval></DIV> </TD></TR> <xsl:template/> (3) embedded Javascript in XSL stylesheet - We expect this script to be used by the style sheet not to be passed along to the output HTML Example: <define-script><![CDATA[ function getLogo(e) { return e.parent.children.item("Logo",0).text; }]]> </define-script> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Msxsl... table... colspan.., Ana Heitor | Thread | XSL questions, keshlam |
Re: Ugh! accessing current value i, Aneel Nazareth | Date | wish list - consistent use of {}, Lawton, Scott |
Month |