Hi,

(Two part question)

How do I make sure the DOM tree held by the DOMResult object after transformation complies to an XML Schema? (e.g. to the eg.xsd schema below)

I have the following in xsl
<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
   version="1.0"
   xmlns:xalan="http://xml.apache.org/xslt";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
        exclude-result-prefixes="xmlns">

        <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/>
               <root xmlns="http://example";
                    xmlns:eg="http://example";
                    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
                    xsi:schemaLocation="http://example file:eg.xsd">
                 ...
               </root>
               ...
</xsl:transform>

Second part:
How do I use a grammar pool (preparsed schema) to have the DOMResult comply to.


Thanks,
Guy

_________________________________________________________________
Frustrated with dial-up? Get high-speed for as low as $26.95. https://broadband.msn.com (Prices may vary by service area.)




Reply via email to