Namespace declarations in xmlns don't really "point to" anything, the
URI is just a string identifying the namespace, it is never "looked up"
This is a FAQ. (see the faq for xsl-list for example)
"Andy" <si****@imagekiller.com> writes:
OK, I'm not sure what I'm missing here.
I'm working with this XML:
<?xml version="1.0" encoding="utf-8"?>
<GroupDataBlock xmlns="http://www.acme.com/data.dtd">
so that is the element with name consisting of local name
GroupDataBlock
and namespace
http://www.acme.com/data.dtd
(it's unusual to use a dtd uri as a namespace, but anything would do,
xmlns="data:,hello"
for example.) The Processor will not look at the dtd file anyway.
<xsl:value-of select="GroupDataBlock/GroupInfo/ProgramID" />
that selects an element GroupDataBlock in no-namespace (and similarly
GroupInfo and ProgramID
add xmlns:x="http://www.acme.com/data.dtd" to your xsl:stylesheet
element so x: is in scope for the whole stylesheet then you can use
<xsl:value-of select="x:GroupDataBlock/x:GroupInfo/x:ProgramID" />
to select elements from this namespace.
David