[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] XSLT2 - Schema root element to DTD root element


Subject: RE: [xsl] XSLT2 - Schema root element to DTD root element
From: "Selvaganesh" <selvaganesh_t@xxxxxxxxxxxxxx>
Date: Wed, 20 Jan 2010 11:00:10 +0530

Dear Team,

Thank you so much, for the help.


-----Original Message-----
From: David Carlisle [mailto:davidc@xxxxxxxxx] 
Sent: Tuesday, January 19, 2010 10:19 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] XSLT2 - Schema root element to DTD root element



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



Confidentiality Notice:  This transmittal is a confidential communication.  If you are not the intended recipient, you are hereby notified that you have received this transmittal in error and that any review, dissemination, distribution or copying of this transmittal is strictly prohibited.  If you have received this communication in error, please notify this office immediately by reply and immediately delete this message and all of its attachments, if any.


Current Thread
Keywords