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

Fw: XSL questions

Subject: Fw: XSL questions
From: "Frank Boumphrey" <bckman@xxxxxxxxxxxxx>
Date: Tue, 3 Nov 1998 14:34:11 -0500
anita wong
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

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.