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

RE: generic method of getting element length

Subject: RE: generic method of getting element length
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Fri, 1 Jun 2001 08:51:04 +0100
element.length
> I have an element that is of type xsd:string  I want to test if it is
> longer than a given vale, say 35.

Then let me repeat my question: what do you mean by the length of an
element?

Or if that's too abstract for you, what do you consider to be the length of
the following element:

<a x="3">some text</a>

If you think the length of this is 9, (ie, by the "length of an element" you
mean "the length of its string-value") then you can get it using the
string-length() function.

Mike Kay
Software AG

>
> Michael Kay wrote:
> >
> > > Anyone know of a generic method og getting the length of
> an element
> > > within a transformation?
> >
> > What do you mean by "the length of an element"?
> >
> > Mike Kay
> > Software AG
> >
> >  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


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.