xsl-list
[Top] [All Lists]

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

2010-01-19 23:25:49
Dear Team,

Thank you so much, for the help.


-----Original Message-----
From: David Carlisle [mailto:davidc(_at_)nag(_dot_)co(_dot_)uk] 
Sent: Tuesday, January 19, 2010 10:19 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



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.


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>