[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: XML /XSLT Namespace problem

Subject: RE: XML /XSLT Namespace problem
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 22 Aug 2007 22:24:28 +0100
RE:  XML /XSLT Namespace problem
This is a very common question, googling for "XSLT default namespace" will
give you lots of posts on the subject. In XSLT 1.0, you need to change all
your references to the elements to use a prefix, for example
select="x:NewDataSet" where the xsl:stylesheet (typically) says
xmlns:x="MyFeed".

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: Waqar Ali [mailto:waqarali_pk@xxxxxxxxxxx] 
> Sent: 22 August 2007 21:46
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  XML /XSLT Namespace problem
> 
> My XML file looks like
> 
> <?xml version="1.0" encoding="utf-8" ?>
> <NewDataSet>
> ....
> </NewDataSet>
> 
> When I transform this into a text file using XSLT, it works 
> perfectly ok.
> 
> But when I add a namespace to the XML file, the XSLT produces nothing.
> 
> <?xml version="1.0" encoding="utf-8" ?>
> <NewDataSet xmlns="MyFeed">
> ....
> </NewDataSet>
> 
> What changes do I need to make to the XSLT to make it work 
> with the namespace addition.
> 
> Thank you.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.