[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: error: data-type on xsl:sort must be 'text' or 'n
Yes, these attributes are AVTs. Presumably the run-time value of $keys/k[1]/@type is neither "text" nor "number". Michael Kay http://www.saxonica.com/ > -----Original Message----- > From: Angela Williams [mailto:Angela.Williams@xxxxxxxxxxxxxxxxxx] > Sent: 01 May 2007 17:29 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: error: data-type on xsl:sort must be 'text' or 'number' > > Saxon 8b, xslt 2, Oxygen 8.1 > > I thought data-type and order attributes were attribute value > templates? > I don't know if this error is generated by Saxon or by > Oxygen, but if the error is valid, what do I have wrong? > > <xsl:sort select="if ($keys/k[1]/@val) then > sax:evaluate($keys/k[1]/@val) else 'foo'" > data-type="{$keys/k[1]/@type}" > order="{$keys/k[1]/@order}"/> > > Thanks! > Angela Williams > Software Developer > The 401k Company, A Charles Schwab Company > 98 San Jacinto Blvd. ~ Suite 1100 ~ Austin, TX 78701 > Office: 512.344.1547 ~ Fax: 512.397.6656 > Angela.Williams@xxxxxxxxxxxxxxxxxx
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|