[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: HEP


Subject: Re: HEP
From: "Russell Allen" <rallen@xxxxxxxxxxxx>
Date: Thu, 8 Jul 1999 10:02:27 -0500

In addition to the other comments already posted...

I had a similar problem when using the same notation under IE5.  I
discovered that IE5 does not support the { } notation yet.  I used the
following workaround:

<xsl:element name="INPUT">
  <xsl:attribute name="NAME">FJKAFJVASJD</xsl:attribute>
  <xsl:attribute name="TYPE">SUBMIT</xsl:attribute>
  <xsl:attribute
name="VALUE"><xsl:eval>substring-after("abcd","b")</xsl:eval></xsl:attribute
>
</xsl:element>

Actually I needed a value-of command, but you get the idea.  I don't know if
this is any help or not, but I thought a different approach altogether might
be useful.  I'm new to this stuff too, so ignore if this is useless  ;-)

good luck,
Russell Allen
Software Engineer
ComFrame Software Corp.


----- Original Message -----
From: <Marco.Mistroni@xxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxx>
Sent: Thursday, July 08, 1999 5:59 AM
Subject: HEP


HI all,
      i have a problem: with the following stylesheet, the xslprocessor
always gives me an error at the line
<INPUT NAME ="FJKAFJVASJD"  TYPE="SUBMIT"
VALUE="{substring-after("abcd","b")"} />

What's wrong in it?????
and how can i do the same thing by giving to the substring function the
name's attribute of a node???


<?xml version = "1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/XSL/Transform/1.0"
xmlns="http://www.w3.org/TR/REC-html40" result-ns=""indent-result="yes">
<xsl:import href="Example3.xsl"/>
<xsl:template match="service">
<HTML>
<FORM>

  <xsl:apply-templates/>

<INPUT NAME = "{./@NAME}" TYPE="SUBMIT" VALUE="{./@name}" />
</FORM>
</HTML>
</xsl:template>


<xsl:template match="command">
<xsl:element
<INPUT NAME ="FJKAFJVASJD"  TYPE="SUBMIT"
VALUE="{substring-after("abcd","b")"} />
</xsl:template>



<xsl:template match="attribute">
<INPUT NAME="{./@name}" TYPE="TEXT" VALUE="{./@name}"  />

</xsl:template>
</xsl:stylesheet>


Please reply me soon
marco


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


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



Current Thread