on 06-20-2007 7:05 AM
Hi Friends ,
I have an .txt file in has the format as
<TEST>
4564564545
56456444566
56465
How can i skip the first two Lines when i am writing the XSLT Mapping ?
That <TEST> and empty line shouldn't go the rfc .
How can i skip and sent to rfc using XSLT Mapping ?
Best Regards .,
V.Rangarajan
Hi Rangarajan,
you can skip lines in XSLT bei using condition with X-Path function position, for example:
<xsl:for-each select="//myStructure/*[position() > 1]"/>
<i>Select all subelements from myStructure except position of them is less than 2</i>
Regards,
Udo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you can avoid the empty lines in your File Content Conversion by defining offset.
<i>Under Document Offset, specify the number of lines that are to be ignored at the beginning of the document.
This enables you to skip comment lines or column names during processing. If you do not make an entry, the default value is zero lines.</i>
ref: http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
then the generated XML after FCC will not have the empty lines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
It is using Mail Sender Adapter . I have to read an attachement which contains the format which i have specified.
If File Sender Adapter then we can do by setting offset . But here i am using xslt mapping to convert the incoming line details from Mail Sender .
In XSLT is there is there any Option to skip if it is <TEST> like that ?
Regards .,
V.Rangarajan
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.