This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: counting characters in an XML document


> Does anyone know how I can use XSL to count the number of
> characters in an
> XML document.

If you're only interested in characters within text nodes, then

count(string-length(/))

If you're also interested in characters within attributes, comments, etc,
then it's harder.

Mike Kay


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]