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

RE: Problem with attributes

Subject: RE: Problem with attributes
From: "Student1 ASCO-ELK (RBJE/ELK)" <Student1.ASCO-ELK@xxxxxxxxxxxx>
Date: Thu, 24 May 2001 02:27:16 +0200
rbje
hi,
if you have the problem with "unkown function" then you should
change your namespace delaration at the start of your xsl document.
i think you have something like:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">

this one is obsolete,but ie5 uses it (thx to microsoft),
but to use the name() function you should have:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

so just change it,and if you are using the ie5 as your browser, then you
should perhaps go to www.microsoft.com and look for msxml to get the latest
update on their xml/xsl parser.
your code seems to be correct, so i think ( and mike kay too ;) ) the
problem is the namespacedeclaration.

hope i could help you 
regards goose

-----Original Message-----
From: Seema [mailto:2kseema@xxxxxxxxxxxxxxxxxxxx]
Sent: Wednesday, May 23, 2001 7:55 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  Problem with attributes


Hi !

Thanks for your solution. It worked !!
One more help please...
If I also want to pass the name of the current node, such as 'volume' or
'chapter', how do I do it in my xsl ?
I tried using the name() function, but it gave me an error saying
"Unknown function".
This is the code I used :

<xsl:for-each select="volume">
  <a>
     <xsl:attribute name="href">
       XMLGenServlet1?num=<xsl:value-of select="@no" />,
                                 node=<xsl:value-of select="name()" />
     </xsl:attribute>
    <xsl:value-of select ="title"/><br/>
   </a>

Thanks in advance.

Regards,
Seema Kumar

 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.