[xquery-talk] optional attributes via function?
Per Bothner
per at bothner.com
Tue Sep 28 19:57:38 PDT 2004
Dmitri.Colebatch at toyota.com.au wrote:
> my query (which is really just xslt in xquery's clothing) currently looks
> something like:
>
> <widgetspecifications>
> {
> for $spec in $this//SPEC
> return
> <widgetspecification
> validFrom="myfn:transformDate($spec/VALIDFROM)"
> validTo="myfn:transformDate($spec/VALIDTO)">
I assume you mean:
<widgetspecification
validFrom="{myfn:transformDate($spec/VALIDFROM)}"
validTo="{myfn:transformDate($spec/VALIDTO)}">
Notice the curly braces.
--
--Per Bothner
per at bothner.com http://per.bothner.com/
More information about the talk
mailing list