Steve,
It is easy to output a doctype from XQuery, but the technique may not be
obvious. I think the first discussion on this list was in 2004
(http://markmail.org/message/hgnbp7hxvaumzqdx): simply treat the doctype
as a string.
xquery version "1.0";
'<!DOCTYPE...>',
<HTML>....</HTML>
http://www.w3.org/TR/xquery/#id-xq-serialization-parameters tells us
that "an XQuery implementation may (but is not required to)" provide
options for serialization. At this time, we do not provide those options.
-- Mike
Steve Mallen wrote:
Hi Rob,
I would also really appreciate some control over output serialization in
Mark Logic.
I recently wanted to output some xhtml with a DOCTYPE, but this seems to
be impossible without using an XSLT stylesheet.
As I understand it, the serialization options should apply equally to
XQuery and XSLT... but I can't find any info about this in the Mark
Logic dev guide...
-Steve
Robert Koberg wrote:
On Aug 27, 2008, at 6:43 PM, Ian Small wrote:
Our fastest-moving customers do it this way when they can, because they
can build websites on top of their content sets faster this way than any
other. (Often, MarkLogic users don't start out this way, because they
are looking for the least disruptive way to introduce MarkLogic into
their development environments. By the time a couple of years pass,
they've figured out that the way they develop all their internal
proofs-of-concept could be the way they develop applications.) A few
folks take a bolder step, embracing the full "X" stack: XML -> XQuery
-> XHTML from the start.
Why not have an XHTML output method like XSLT 2.0 has?
http://www.w3.org/TR/xslt-xquery-serialization/#serparam
best,
-Rob
p.s. The X stack would greatly benefit by having XSLT 2.0 in there... :)
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general