[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Transforming an XML document linked to a XML schem
"Purnima Fernando" <Purnima.Fernando@xxxxxxxxxxxxxxxxxxx> wrote: > The problem is that if apply the style sheet to the document with the Schema > information in it. It does not perform the transformation. But once I remove > the schema information it works fine. That's most likely a namespace problem, not directly related to the fact that you have a schema associated: > <bpxml version="1.0" xmlns="http://www.todaysystems.com.au" ^^^^^^ This puts all unqualified elements in a namespace. If you have something like <xsl:template match="bpxml"> in you style sheet, it won't match anything, even if you have copied the namespace declaration into your stylesheet. In order to match or select elements from your document, you have to prefix them in the style sheet: <xsl:stylesheet version="1.0" xmlns:xsl="..." xmlns:d="http://www.todaysystems.com.au" ...> ... <xsl:template match="d:bpxml"> ... ... select="/d:bpxml[...]"... HTH J.Pietschmann 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
|