| View previous topic :: View next topic |
| Author |
Message |
AmeliaR
Joined: 31 May 2006 Posts: 142
|
When reading XSL using javascript. If im trying to get a tag like <m:name>Joe</m:name> Would i just do a getElementsByTagName?
Tagname being m:name |
| |
|
|
|
|
jomanda
Joined: 19 May 2006 Posts: 70 Location: Germany
|
no
You'd need to use a getElementByTagNameNS
And hope that the XSL document had the right content-type |
| |
|
|
AmeliaR
Joined: 31 May 2006 Posts: 142
|
interesting. thanks
re XSL |
| |
|
|
jomanda
Joined: 19 May 2006 Posts: 70 Location: Germany
|
There's not much to learn
There's only a couple of things you can do with XML that you can't with the HTML DOM
There's only a couple of things you can do with XML that you can't with the HTML DOM
For example, namespaces |
| |
|
|
AmeliaR
Joined: 31 May 2006 Posts: 142
|
What are name spaces?
I noticed that in the dom
Do you reference it using? <?xml-stylesheet type='text/xsl' href='rss.xsl' version='1.0'?>
Or is it where the validator points to |
| |
|
|
|
|