I'm not sure I've fully understood the context of the question being answered.
In an XSLT stylesheet, one would simply declare a namespace for the default namespace in the input document and use that in XPath expressions:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dft="http://mydomain/schemas" xmlns:gml="http://www.opengis.net/gml">
<xsl:output method="text" encoding="UTF-8"/>
<xsl:template match="/">
<xsl:value-of select="count(//dft:FeatureCollection/gml:featureMember)"/>
</xsl:template>
</xsl:stylesheet>
Wouldn't you be able to do that when using XPath expressions outside XSLT?
|