Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


xml:stylesheet use in document with multiple stylesheet options

From: "David Blickstein" <db@--.--->
To: NULL
Date: 8/2/2005 10:26:00 AM
Hi,

I have a Schema and a number of different XSLT stylesheets to translate to
different things.  One stylesheet translates it to HTML.

I'd like to generate the XML files such that when loaded by a browser they
are automatically translated into XML and I've accomplished that by
inserting the following processing instruction when I generate the file:

       <?xml:stylesheet type="text/xsl" href="toHtml.xslt" version="1.0"?>


However I would also like to arrange things such that I can use OTHER XSLT
stylesheets on the XML file by manually invoking XSLT.

However, when I try to use another stylesheet on an XML file with that
processing instruction I get the following error msg from XALAN:

file:///extra/blickstein/user_150_GIRML/CLO/Components/JAVA_HOTSPOT/Src/build/hp-ux/hp-ux_ia64w_compiler3/debug/girml.xml;
Line #2; Column #6; XSLT Error (javax.xml.transform.TransformerException):
The processing instruction target matching "[xX][mM][lL]" is not allowed.

Is there a way to have a sort of "default" stylesheet specified via a
processing instruction without making the file unuseable with a different
stylesheet?




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent