Subject: Re: [xsl] empty namespace declaration being generated From: David Bertoni <david.bertoni@xxxxxxxxx> Date: Wed, 24 Jan 2007 00:12:36 -0800 |
First, you're right about Xalan (1.1; the xerces c++ library is 2.7.0).
Second, I hear what you are saying. What I don't understand is why ALL of the tags that pulled data from the no-namespace xml file didn't also have the xmlns="". In the original xsl, I pull 20 some odd data tags from the original xml file and the only one that caused the xmlns="" was this one.
<?xml version="1.0" encoding="UTF-8"?> <stocks xmlns="http://www.fred.com/something"> <security xmlns="" exchange="NASDAQ" ticker="BMET"> <example-child-element/> </security> <security xmlns="" exchange="NYSE" ticker="JNJ"/> </stocks>
What I want is that all of the elements, attributes, etc. in the output xml file are under the www.fred.com/something namespace.
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.fred.com/something">
Can someone point me to an FAQ or tutorial article that explains the affect of different placements of the namespace declaration?
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] empty namespace declarati, Scott Smith | Thread | RE: [xsl] empty namespace declarati, Michael Kay |
RE: [xsl] empty namespace declarati, Scott Smith | Date | [xsl] Output multiple files with di, Trevor Nicholls |
Month |