xsl-list
[Top] [All Lists]

Re: [xsl] instance-of schema-element

2008-03-14 11:31:52
Andrew Welch wrote:

<xsl:variable name="foo" as="document-node(schema-element(foo))">
  <xsl:document validation="strict">
    <foo/>
  </xsl:document>
</xsl:variable>

...that won't cause the transform to fail, but allow me to test
whether $foo is valid.

  Ok, I see.  Interesting question.  I think this is not possible, but
I can't tell for sure.  What could be interesting to have is something
like:

    <xsl:variable name="foo" as="document-node(schema-element(foo))?">
       <ex:error-safe>
          <ex:try>
             <xsl:document validation="strict">
                <foo/>
             </xsl:document>
          </ex:try>
          <ex:catch error="err:XTTE1510"/>
       </ex:error-safe>
    </xsl:variable>

  I should check if this work, but I'm not on the computer I have a
Saxon license for right now.

  Anyway I am curious to find in the REC the answer to your question...

  Regards,

--drkm
























      
_____________________________________________________________________________ 
Envoyez avec Yahoo! Mail. La boite email la plus appreciée au monde. 
http://mail.yahoo.fr


--~------------------------------------------------------------------
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(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--