469,309 Members | 2,770 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

XML to Excel Conversion Problem

117 100+
guys i am selecting some data from SQL database and then handling it in XML and then exporting it into Excel file. i did it. but then again i included a new XML document in XSLT using

<xsl:variable name="ed" select="document('stu.xml')/data/room" />

and when i again run the code it does not select anything from "stu.xml" means from second document. but when i make a new application andpaste the same code over there then it runs fine why it is not running with the previous code.
Mar 4 '07 #1
3 1287
dorinbogdan
839 Expert 512MB
Be careful when writing XPaths for secondary sources.
It's easy to forget the root, but if you do, the XPath returns an empty node-set.
Mar 5 '07 #2
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 #3
sani723
117 100+
ya, i solved it
Mar 21 '07 #4

Post your reply

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

Similar topics

6 posts views Thread by Jeremy Langworthy | last post: by
1 post views Thread by Jan Agermose | last post: by
5 posts views Thread by Matthew Shaw | last post: by
1 post views Thread by schouwla | last post: by
9 posts views Thread by | last post: by
3 posts views Thread by George | last post: by
2 posts views Thread by madeleine | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.