XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Steven VasquezSubject: How do you create a record increment tag
Author: Steven Vasquez
Date: 06 Jan 2010 10:50 AM
i need a tag to count/increment records as the are being converted with a total count at the end. please see example;

<patientrecords>
<patientrecord id="1">
<pat_name>Sample, Babyboy</pat_name>
<pat_address>123 Main st.</pat_address>
.ect
</patientrecord>

<patientrecord id="2">
<pat_name>Sample, Babyboy</pat_name>
<pat_address>123 Main st.</pat_address>
.ect
</patientrecord>

</patientrecords>
<trailer>
<total_records>2</total_records>
</trailer>

Posttop
Bob ChauvinSubject: How do you create a record increment tag
Author: Bob Chauvin
Date: 25 Jan 2010 04:32 PM
You can use <xsl:value-of select="position()"/> for you current record in the process. Perhaps a select="count(nodeset)" for the total, or just use the final value of position().


>i need a tag to
>count/increment records as the
>are being converted with a
>total count at the end. please
>see example;
>
><patientrecords>
><patientrecord id="1">
><pat_name>Sample,
>Babyboy</pat_name>
><pat_address>123 Main
>st.</pat_address>
>.ect
></patientrecord>
>
><patientrecord id="2">
><pat_name>Sample,
>Babyboy</pat_name>
><pat_address>123 Main
>st.</pat_address>
>.ect
></patientrecord>
>
></patientrecords>
><trailer>
><total_records>2</tot
>al_records>
></trailer>
SS2007r2 Build: 894m

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.