This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Problem with attributes


sorry, 
i think i made a little mistake 
try it with
<xsl:stylesheet version='1.0'
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>

perhaps that helps ?!?
but i get strange errormessages too, if i try to use your code ??
but i try to solve the problem

cu goose

-----Original Message-----
From: Seema [mailto:2kseema@sun20.datamatics.com]
Sent: Friday, May 25, 2001 5:21 PM
To: xsl-list@lists.mulberrytech.com
Subject: Re: [xsl] Problem with attributes


Hi !!

I just tried out the xsl with the new namespace you had referred to, but
again it gives me problems.
Right now, my links do not appear in the page and it just gives me :
                XMLGenServlet1?num=
in place of them.
I am using ie5.5 for the same.
Will there be any specific xml parser version I may have to download and
install ?
Please help me with this.
My current xsl looks like this :

?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
<xsl:template match="/">
<xsl:for-each select="volume">

    <a>
     <xsl:attribute name="href">
       XMLGenServlet1?num=<xsl:value-of select="@no" />,
    <xsl:value-of select="name" />
     </xsl:attribute>
<xsl:value-of select ="title"/><br/>
   </a>
</xsl:for-each>
</html>
</xsl:template>
</xsl:stylesheet>




Regards,
Seema Kumar
Datamatics Technologies Ltd.,
(Tel: 8290829 (Ext:619))
----- Original Message -----
From: "Student1 ASCO-ELK (RBJE/ELK)" <Student1.ASCO-ELK@jp.bosch.com>
To: <xsl-list@lists.mulberrytech.com>
Sent: Thursday, May 24, 2001 5:57 AM
Subject: RE: [xsl] Problem with attributes


> 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@sun20.datamatics.com]
> Sent: Wednesday, May 23, 2001 7:55 PM
> To: xsl-list@lists.mulberrytech.com
> Subject: Re: [xsl] 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
>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]