Jump to content

Embed XQuery Code in html


rcccubs
 Share

Recommended Posts

Today, you can't. You can embed HTML in an XQuery document, but not XQuery in an HTML document.It may sound like there's no difference, but there is - you need an XQuery processor, not an HTML user agent. The XQuery processor then needs to do its thing, and maybe output some HTML. It is that resulting HTML that you can then give to browsers or other user agents.What XQuery processor you'd use depends on your working environment. On the browser, no one has native support for it, and AFAIK, there aren't plug-ins that let you do that either. If you use a .NET language or JAVA, there's SAXON and AltovaXML. For PHP, there's Zorba.[edit]I now saw Zorba also has a browser plug-in for IE and Firefox... maybe that's what you need to embed XQuery in HTML. This of course requires your users to install the plug-ins. Personally, I wouldn't install that plug-in, unless maybe it was packed with a lot of other features (XSLT 2.0 for example).[/edit]

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...