I don't know if any of you have played around with making it easier to
write HTML seeming at this point we need to use <TAGNAME> (that's
what I gathered from the replies). I tried something and it has made it
rather simple for me. Basically I put the major tags that I use into
variables, and just use concat and call the variables. Like this:
let $oTable := "<TABLE BORDER=0>"
let $cTable := "</TABLE>"
let $oTr := "<TR>"
let $cTr := "</TR>"
let $oTd := "<TD>"
let $cTd := "</TD>"
let $leftTd := "<TD VALIGN=TOP ALIGN=RIGHT>"
let $rightTd := "<TD VALIGN=TOP>"
let $pagehtml := concat(
$oTable,
$oTR,
$leftTd, "Title:",
$cTd,
$rightTd, $title,
$cTd,
$cTr,
$oTr,
$leftTd,
"Authors:", $cTd,
$rightTd, $authors,
$cTd,
$cTr,
$oTr,
$leftTd, "Ref:",
$cTd,
$rightTd, $ref,
$cTd,
$cTr,
$oTr,
$oTd, "Abstract:",
$cTd,
$oTd, $cTd,
$cTr,
$oTr,
"<TD
COLSPAN=2>", $newpage, $cTd,
$cTr,
$cTable
)
That way I could even format it kind of like I do HTML (with tabs
showing the outline of a tag and subtags). Hope this helps, or sparks
something interesting.
-Michael
On Thursday, December 5, 2002, at 02:42 PM, Ravi Pandya wrote:
> I was looking forward to using the XQuery constructed element notation
> to build HTML query results in Sherlock, but it looks like neither
> form listed in the 1.0 spec works (see
> http://www.w3.org/TR/xquery/#id-constructors).
>
> Is there a variant of this that works in Sherlock? Or do I just have
> to build strings? Thanks,
>
> Ravi
> ----------------------------------------
> Ravi Pandya
> IECommerce Inc
> 9249 NE 14th Street
> Bellevue, WA 98004
> Tel 425 688 9123
> Fax 425 699 0005
> www.iecommerce.com
> email@hidden
> _______________________________________________
> sherlock-channel-development mailing list |
> email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/sherlock-channel-
> development
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
sherlock-channel-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/sherlock-channel-development
Do not post admin requests to the list. They will be ignored.