[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: EXCEPTION: javax.xml.transform.TransformerExcepti
This problem has already been reported on the Saxon list, though I think this is a slightly different incarnation of it. The problem usually occurs when a tree is generated from a DOMSource, generating it using sql:query is exhibiting the same issue. The bug was actually present in earlier releases, but has become more visible because there are more operations now that attempt to determine the typed value of a node. Michael Kay > -----Original Message----- > From: Wolpert, Jake [mailto:JWolpert@xxxxxxxxxxx] > Sent: 22 June 2004 01:45 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: EXCEPTION: > javax.xml.transform.TransformerException: Unknown type > annotation (NULL) in document instance > > > after upgrading to saxonb8, I started getting > EXCEPTION: > javax.xml.transform.TransformerException: Unknown type > annotation (NULL) in > document instance on my for-each after a sql:query > > It fails for all similar for-each's on sql:query's. > > Any suggestions, Mike? > > > ----------------------------------------- > > <xsl:variable name="where" > select="concat('match(xml,keywords) > against (''',$query,''' in boolean mode)')" /> > <xsl:comment><xsl:value-of > select="$where" > /></xsl:comment> > <xsl:variable name="result"> > <sql:query > connection="$connection" > column="name,filename,{$where} as score" table="xmls" row-tag="tr" > column-tag="td" where="{$where}" /> > </xsl:variable> > <!-- this copy-of works --> > <xsl:copy-of select="$result/tr" /> > <!-- this for-each does not --> > <xsl:for-each select="$result/tr"> > <xsl:sort select="td[3]" > data-type="number" order="descending"/> > <xsl:comment><xsl:value-of > select="td[3]" /></xsl:comment> > <nobr> <a target="main" > href="{substring-before(substring-after(td[2],'cs/q/'),'.xml')}"> > > <xsl:value-of disable-output-escaping="yes" > select="normalize-space(td[1])" /> > </a> > </nobr> > <br /> > </xsl:for-each> > > > --+------------------------------------------------------------------ > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/ > or e-mail: <mailto:xsl-list-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx> > --+-- > >
|
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
|