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

RE: when problem

Subject: RE: when problem
From: "ciaran byrne" <ciaran.byrne@xxxxxxx>
Date: Fri, 18 Aug 2000 14:47:57 +0100
RE: when problem
The <xsl:when> element always appears as a child of <xsl:choose>
Therefore, you need to have
<xsl:choose>
	<xsl:when>
		....
	</xsl:when>
</xsl:choose>

Hope it helps,
Ciaran.
-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of Eric Taylor
Sent: Friday, August 18, 2000 1:33 PM
To: 'XSL-List@xxxxxxxxxxxxxxxx'
Subject: xsl:when problem


<xsl:template match="link">
  <xsl:if test="@internal">
    <xsl:when test= ".[@internal = //bookmark/@name]">
      <A>
        <xsl:attribute name="href">#<xsl:value-of select="@internal"
/></xsl:attribute>
        <xsl:value-of select="@text"/>
      </A>
    </xsl:when>
    <xsl:otherwise>
      <xsl:value-of select="@text"/>
    </xsl:otherwise>
  </xsl:if>
</xsl:template>

when I try to open a file that uses this stylesheet with IE5, I get the
error "Keyword xsl:when may not be used here"  Anyone know why?.  (I am
still using old microsoft namespace
(xmlns:xsl="http://www.w3.org/TR/WD-xsl")--not sure if this is a factor,
though I know it's contributed to some of the other issues I haven't been
able to get to work).  Thanks once again.  Eric


 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

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.