469,306 Members | 1,930 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,306 developers. It's quick & easy.

handling nested tags

4
Hi
I have problem fetching valuesof nested tags in xmlusing xsl stylesheet.
For eg.The xml Looks like this
<InputFields>
<AcctReq>
<CardNbrCnt length="3">001</CardNbrCnt>
<Acct>
<ReqCd length="3">001</ReqCd>
<TransSourceTxt length="3">EXP</TransSourceTxt>
</Acct>
<CardDtl>
<CardNbrLen length="2">15</CardNbrLen>
<CardNbr justify="left" length="19" padChar=" ">374398636381002 </CardNbr>
<CustId justify="left" length="5" padChar=" ">3752</CustId>
<VldCidType length="1">C</VldCidType>
</CardDtl>
</AcctReq>
</InputFields>

I cannot use any direct XPATH Expression like "InputFields/AcctReq" in my xsl because this xml is dynamic so tag names keep changing.Only <InputFields> tag remains same.

The actual output should be concatenation of all the nested tag values in a single line.

How to write an xsl for this.

Thanks
Arun
Feb 1 '07 #1
1 1140
dorinbogdan
839 Expert 512MB
Hi,
Did you succeed to solve the problem ?
If yes, please let me know, in order to close the thread.
Thanks,
Dorin.
Mar 21 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Ken in Melbourne Australia | last post: by
reply views Thread by Glen | last post: by
20 posts views Thread by MickeyBob | last post: by
reply views Thread by Gurpreet Sachdeva | last post: by
reply views Thread by Dean H. Saxe | last post: by
1 post views Thread by mlv2312 | last post: by
4 posts views Thread by Anirudha Vengurlekar | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.