troubleshooting Question

Can I use XQuery directly from an ASP page?

Avatar of tom_burkhardt
tom_burkhardtFlag for United States of America asked on
Web Languages and StandardsASP
9 Comments1 Solution1502 ViewsLast Modified:
Hi, after years of using VBScript/ASP/SQL coding, I'm boldly venturing into the XML arena.

Am beginning to grok how XML, XSLT, and XPath work. Now I'm looking at XQuery.

Right now I'm using the Saxon XQuery Processor to apply
a text file(test1.xquery) with an XQuery
to an XML page(test1.xml).

The test1.xquery file looks like this:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<html>
<head><title>Tom's First XQuery</title></head>
<body>
<ol type="1">
{
for $x in doc("test1.xml")/tomForm1/elementOne
order by $x/subelementOne
return <li>{$x/subelementOne/text()}</li>
}
</ol>
</body>
</html>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

When I set Saxon to direct this to an output file, I end up with a great HTML file.

Is there a way I can do this to the test1.xml page from an ASP page, using VBScript?   Or is this too bleeding edge??

Any help would be immensely appreciated here ....
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 9 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros