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

RE: [XSL] Declaring datatypes for Attributes

Subject: RE: [XSL] Declaring datatypes for Attributes
From: "Bernard Granier" <b.granier@xxxxxxxxx>
Date: Thu, 10 May 2001 12:22:18 +0200
bernard granier
Hi,


I knew that the type declaration was possible using schema
but I thought that there was no tool which manage schema.

I was wrong ?

Bernard Granier
Mr Ted
115 rue du Fbg Poissonniere
75009 Paris
www.MrTed.com
Tel : 33 1 55 31 02 65
mail : b.granier@xxxxxxxxx


-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Jeni Tennison
Sent: jeudi 10 mai 2001 10:41
To: Peter Tsantes
Cc: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  [XSL] Declaring datatypes for Attributes


Hi Peter,

> Is it possible to declare a datatype for a set of attributes using:
> xmlns:dt="urn:schemas-microsoft-com:datatypes"
> xmlns="urn:schemas-microsoft-com:xml-data"
>
> I'm displaying and ordering the attributes, but they don't order
> numeric. I know that datatypes can be set on element values, but
> what about attributes. Do they inherit?

You can define the data type of elements and attributes within a
schema but not, as far as I know, by using XDR within an instance XML
document.

But to answer the XSLT question, you can declare that a sort should be
based on a numeric value rather than alphabetic, you can use the
data-type attribute on xsl:sort:

  <xsl:sort select="@orderqty" data-type="number" />
  <xsl:sort select="@price" data-type="number" />

I hope that helps,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/



 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.