|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: XQuery -- Reinventing the Wheel?
Jonathan Robie wrote:
> <$tagname>
> <description> $d </description> ,
> <price> $p </price>
> </$tagname>
>
>This is an element constructor, not an XML literal. It does
>not need to be valid XML, even though it looks kind of like
>an XML element.
>
>However, I think it might be easier for people if we *do*
>make our element constructors virtually identical to normal
>XML. There would have to be a way to include dynamic parts of
>a query, which probably requires a syntax not 100% compatible
>with XML.
Well, it might not require that. Maybe you could do something like this?
<xq:element name="{$tagname}">
<description><xq:copy-of select="$d"/></description>
<price><xq:copy-of select="$p"/></price>
</xq:element>
Just a thought,
Evan
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








