[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: xsl:apply-templates - Specifying patterns
Ganesh Suriyanarayanan wrote:
Iam trying to write an XSL to get a XML Instance of a XSD schema file, how to write a generic patten match expression to handle this namespaceWhat do you mean as namespace is really just namespace prefix the only meaning of which is to point out at namespace URI. So, you'd better declare schema namespaces in your stylesheet and use your own favorite prefix. <xsl:stylesheet ... xmlns:xsd="http://www.w3.org/2001/XMLSchema"> ... <xsl:template match="xsd:complexType//xsd:sequence" Such kind of pattern will match sequence elements in "http://www.w3.org/2001/XMLSchema" namespace despite of their namespace prefixes in the source document.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|