Subject: Re: [xsl] XSLT2 - Schema root element to DTD root element From: David Carlisle <davidc@xxxxxxxxx> Date: Tue, 19 Jan 2010 16:48:35 GMT |
This is a very basic Faq, by adding a namespace you have changed the name of your input elements. <hov:template match="report"> matches report in no-namespace but your report is in "http://xml.smg-uk.com/schema/cases/report so it does not match. Either add xmlns:r="http://xml.smg-uk.com/schema/cases/report" to xsl:stylesheet and add r: prefix to all relevant patterns and xpath eg <hov:template match="r:report"> or, since you are using xslt 2, you could set the xpath-default-namespace="http://xml.smg-uk.com/schema/cases/report" again on xsl:stylesheet (or hov:stylesheet for you) David David
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSLT2 - Schema root eleme, Vyacheslav Sedov | Thread | RE: [xsl] XSLT2 - Schema root eleme, Selvaganesh |
Re: [xsl] XSLT2 - Schema root eleme, Vyacheslav Sedov | Date | Re: [xsl] Definite list of XSLT 2.0, Dimitre Novatchev |
Month |