Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 2nd, 2007, 09:54 AM
Authorized User
 
Join Date: Oct 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default characters method splits the value of tag

Hi ,

i have an issue regarding charaters method spliting the value of Tag.
characters(char[] ch,int start,int length)


In the first chunk i am getting the splited value of Style tag(DSSKU)
which is actually DSSKU023 but it is returning as DSSKU.

SequenceNumber>1</SequenceNumber><SKUDefinition><Company/><Division/><Season/><SeasonYear/><Style>DSSKU

offset is 2043
len is 5


In the next chunk it is returning 023

023</Style><StyleSuffix/><Color/><ColorSuffix/><SecDimension/><Quality/><SizeRangeCode/><SizeDesc/></SKUDefinition><SubSKUFields><InventoryType>F</InventoryType></SubSKUFields><StoreDistroFields><Shipment/><MerchType/><MerchGroup/><StoreDepartment/><RetlPrice/><InstoreDate/><RequiredQty>20</RequiredQty><StatusCode>00</StatusCode><MiscField1/><MiscField2/><MiscField3/><MiscField4>STORE1</MiscField4><MiscNum1/><MiscNum2/><CustomRecExpansionField/><Function>1</Function><CtnBreakAttrib/><InnerPackQt

Actually i need that in single chunk like DSSKU023

Please help me in this issue.

thanks and regards,
Selvakumar




 
Old January 2nd, 2007, 10:59 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

It's part of the specification of the SAX ContentHandler interface that the parser can split the character content over a number of calls. This is designed to minimize the need to move character data between buffers. If you need the data in a single chunk you have to assemble it yourself, processing the buffer when you get to the next start tag, end tag, comment, or PI.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
 
Old January 2nd, 2007, 11:15 AM
Authorized User
 
Join Date: Oct 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I got the idea .Thanks for your reply






Similar Threads
Thread Thread Starter Forum Replies Last Post
Datagrid splits debbiecoates Pro VB 6 1 September 9th, 2008 12:00 PM
HTML tag from C# or ASP.NET tag from javascript angshujit ASP.NET 2.0 Basics 3 February 16th, 2007 10:07 AM
characters method splits the value of tag ksskumar XML 0 January 2nd, 2007 10:38 AM
The "Meta Refresh Tag" method nancy HTML Code Clinic 5 October 28th, 2004 04:43 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.