> Hi Dave,
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Sent: 2005. janu�r 7. 21:57
> > To: [email protected]
> > Subject: Re: FW: Command line parameters patch + XSD validation 
question
> > 
> > > Hi All,
> > >
> > > Anyone cares to comment on my previous message (attached below)? I
> > > haven't received any replies since I've sent it...
> > 
> > The patches for handling schema files from the command line would be
> > great.  If you could create a Jira report, and attach the patches, 
that
> > would be great.
> 
> As soon as I get some pointers on how to do that... (Sorry, I'm still 
new
> to this list.) What information do I need to acces Jira? Where do I 
access it?

Go to http://xml.apache.org/xalan-c and click on "Bugs" in the left 
browser, and follow the links.  Once you've created a Jira report, you can 
attach the diff files for your patch.  Make sure you answer the ownership 
questions, or we won't be able to use your patch.

> > The change for the document() is more problematic, because it changes
> > long-standing behavior, which we cannot really do.  It would be nice 
to
> > have switches for the various recover options that XSLT allows for 
these
> > sorts of errors, but that's a much more complicated thing.
> 
> Yes, I thought that this solution would not be correct this way. I think 
the
> correct solution would be to add a command line switch (which I have 
done),
> and based on the value of that switch rethrow a fatal error exception in 
the
> document function handler.

You can do this in a processor-independent fashion by using the 
xsl:message instruction:

<xsl:variable name="docURL" select="'theDocumentDoesNotExist.xml'" />
<xsl:variable name="foo" select="document($docURL)" />
<xsl:if test="not($foo)">
    <xsl:message terminate="yes">Error: Couldn't load document 
'<xsl:value-of select="$docURL" />'</xsl:message>
</xsl:if>

I think that's a far better solution than depending on a 
processor-specific command line switch.

Dave

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to