File: Data.xml
xmlns:blue="http://www.rntsoft.com/blue">
From Book IV
line 1
line 2
line 3
line 4
File: Transform.xslt
xmlns:red="http://www.rntsoft.com/red"
xmlns:blau="http://www.rntsoft.com/blue" version="1.0">
Namespace nodes:
Found a blue verse. name
local-name
namespace-uri
contents
Found a red node: name
local-name
namespace-uri
contents
Found a verse element from the default namespace: name
local-name
namespace-uri
contents
Output:
Namespace nodes:
xml blue red
Found a red node: name
red:title
local-name
title
namespace-uri
http://www.rntsoft.com/red
contents
From Book IV
Found a blue verse. name
blue:verse
local-name
verse
namespace-uri
http://www.rntsoft.com/blue
contents
line 1
Found a red node: name
red:verse
local-name
verse
namespace-uri
http://www.rntsoft.com/red
contents
line 2
Found a blue verse. name
blue:verse
local-name
verse
namespace-uri
http://www.rntsoft.com/blue
contents
line 3
Found a verse element from the default namespace: name
verse
local-name
verse
namespace-uri
contents
line 4