[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Fixed attribute problems on change from DTD to sch
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
|
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
|