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

MSXML Script Enable, syntax for child of chil of paren

Subject: MSXML Script Enable, syntax for child of chil of parent of parent that has same name and has some attribute
From: Nathan Zhou <nazhou_2000@xxxxxxxxx>
Date: Mon, 27 Aug 2001 09:39:30 -0700 (PDT)
msxml script
Hi:
1)  I am trying to translate the xml data to html in a
table format.  The xml data format is something like
<cell rpos="1" cpos="1"></cell>
<cell rpos="1" cpos="2"></cell>
<cell rpos="2" cpos="1"></cell>
<cell rpos="2" cpos="2"></cell>

and would like the final html format to render the
html to appear correctly.  

I am trying to use the MXSML:SCRIPT tag and use my own
user space, as in the example posted by microsoft.

<?xml version='1.0'?>
<xsl:stylesheet version="1.0"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      xmlns:msxsl="urn:schemas-microsoft-com:xslt"
      xmlns:user="http://mycompany.com/mynamespace">

<msxsl:script language="JScript"
implements-prefix="user">
   function xml(nodelist) {
      return nodelist.nextNode().xml;
   }
</msxsl:script>

<xsl:template match="/">
   <xsl:value-of select="user:xml(.)"/>
</xsl:template>

</xsl:stylesheet>

but the browser is complaining that user namespace
doesnot have the function.  Can anyone help?
2) What is the syntax to refer to the child of child
of parent of parent of the current node that has the
same name as the current node but has a certain
attribute?

for example:
<sec>
<meta>
<a isSquare='Y'>
<b>
<c>
</meta>

<data>
<a>
<b>
<c>
</data>
<sec>
Let's the current node is <a> in <data>, how do I
write my (xsl:when> expression based on <a> in
<meta>'s attribute equal to something?  

thanks in advance.



__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

 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.