Count number of lines in XSLT

Roginonoiva

New Member
When transforming this XML, I need to count the number of line breaks in this XML node\[code\] <SpecialInstraction>OneTwoThreeFourFiveSixSevenEightNineTenEleventwelvethirteenfourteenfifteen</SpecialInstraction>\[/code\]Like above example have 14 line breaks. I tried to determine the number of occurrences of "\[code\]
\[/code\]" and "\[code\]
\[/code\]" but even if there is no change in above XML, the number of occurrences keep varying everytime this XML goes under serialization/deserialization.Anybody has any ideas how I can get the count of lines from value of an XML node in XSLT?
 
Back
Top