OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   sequenceExpr use in XQueryX statement ( ex: ("foo", "bar") )

[ Lists Home | Date Index | Thread Index ]
  • To: xml-dev@lists.xml.org
  • Subject: sequenceExpr use in XQueryX statement ( ex: ("foo", "bar") )
  • From: Benjamin Shrom <bshrom@yahoo.com>
  • Date: Tue, 17 May 2005 11:20:50 -0700 (PDT)
  • Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=gpokLRx/CQtQBnehSxQoFsrZgycXSYJx+atqhEld+VOf1oBzzGJbbR4epnhVY2uIMPRD1jCROvdEqNHtEmWrm5ai5ogWOQ7q5zv+h9uA8mOffWcYTWDfItgW/w3IheMjelaACDE4vkS0gtDnVuRaMciLZNwQwHRJMmVdLCmalSM= ;


What would be a correct XQueryX statement for the
following XQuery:
("FOO", "BAR")

According to the XQueryX schema this is valid

            <xqx:expr xsi:type="xqx:pathExpr">
					<xqx:expr xsi:type="xqx:sequenceExpr">
						<xqx:expr xsi:type="xqx:stringConstantExpr">
						<xqx:expr xsi:type="xqx:stringConstantExpr">


However, if you run XQueryX->XQuery stylesheet
transformation it will produce: (FOO)(BAR).
In the recent release of the stylesheet new for-each
cycle have been added to the template for
sequenceExpr, that breakes the conversion. 

    <xsl:for-each select="*"> <!-- NEW -->
      <xsl:call-template name="paranthesizedList">
        <xsl:with-param name="delimiter"
    </xsl:for-each>  <!-- NEW -->

Is it a bug or I'm missing something here, below I
provided AST in the XML form:


Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS