You can have this handled, without needing a schema aware xslt
processor. You can pass saxon a parsed document from java to have the
fixed attribute recognized, e.g.:
SchemaFactory sf =
SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
dbf.setSchema(sf.newSchema(xsd));
DocumentBuilder db = dbf.newDocumentBuilder();
Document doc = db.parse(xml);
DOMSource ds = new DOMSource(doc);
FileInputStream fis = new FileInputStream(xsl);
StreamSource xs = new StreamSource(fis);
StreamResult sr = new StreamResult(System.out);
TransformerFactory tf = TransformerFactory.newInstance();
Transformer trans = tf.newTransformer(xs);
trans.transform(ds, sr);
Kendall
--~------------------------------------------------------------------
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>
--~--