|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: matching templates without attributes
It should be xmlns not xmns. Then you have to create a namespace to match that in the xsl. -Tim -----Original Message----- From: Venkateshwar Bommineni [mailto:vbommineni@xxxxxxxxxx] Sent: Monday, July 08, 2002 11:29 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: matching templates without attributes Hi, I am new to XSLT. I am trying to match an element through XSLT as follow. Input XML is like: <shipment xmns="http://www.foo.com/namespaces/v"> .... .... </shipment> in XSLT, i have: <xsl:template match="/"> <xsl:apply-templates select="shipment"/> </xsl:template> <xsl:template match="shipment"> .. do some thing .... </xsl:template> In above case i dont get any transformed output. And if comment out xmns from <shipment> element it results proper output. So How to specify in XSLT to ignore xmns attribute for shipment template to get output? thanks VENKAT XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list 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
|

Cart








