Hello all,
I need some help with creating an XSL stylesheet for a SensorML document in which the elements include namespace prefixes.
After I modify the SensorML document to reference my XSL stylesheet and try to view the document in Firefox, I get the following error message:
XML Parsing Error: not well-formed
Location: file:///C:/SensorML/DescribeTaskingResponse.xml
Line Number 2, Column 6:
in which line 2 is the line that references the XSL stylesheet.
Here's what I have in the XSL stylesheet so far:
<?xml version="1.0" ?>
<xsl:stylesheet xmlns:xsl=" version="1.0"
xsi:schemaLocation=" spsDescribeTaskingRequestResponse.xsd"
xmlns=" spsDescribeTaskingRequestResponse.xsd"
xmlns:sps=" xmlns:xsi=" xmlns
ws=" xmlns:gml=" xmlns:xlink=" xmlns:swe=" >
<xsl:template match="/">
<xsl:for-each select="sps
escribeTaskingRequestResponse/sps:taskingDescriptor">
<class>
<record>
<xsl:value-of select="sps:sensorID"/>
</record>
</class>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
And here's part of the SensorML document I'm working with:
<?xml version="1.0" encoding="UTF-8"?>
<?xml:stylesheet type="text/xsl" href="DescribeTaskingResponse.xsl" ?>
<sps
escribeTaskingRequestResponse
xsi:schemaLocation=" spsDescribeTaskingRequestResponse.xsd"
xmlns=" spsDescribeTaskingRequestResponse.xsd"
xmlns:sps=" xmlns:xsi=" xmlns
ws=" xmlns:gml=" xmlns:xlink=" xmlns:swe=" >
<sps:taskingDescriptor>
<sps:sensorID>urn:x-ogc
bject:sensor:OGC::ROVER_DRT_1202_SN2015</sps:sensorID>
...
I need some help with creating an XSL stylesheet for a SensorML document in which the elements include namespace prefixes.
After I modify the SensorML document to reference my XSL stylesheet and try to view the document in Firefox, I get the following error message:
XML Parsing Error: not well-formed
Location: file:///C:/SensorML/DescribeTaskingResponse.xml
Line Number 2, Column 6:
in which line 2 is the line that references the XSL stylesheet.
Here's what I have in the XSL stylesheet so far:
<?xml version="1.0" ?>
<xsl:stylesheet xmlns:xsl=" version="1.0"
xsi:schemaLocation=" spsDescribeTaskingRequestResponse.xsd"
xmlns=" spsDescribeTaskingRequestResponse.xsd"
xmlns:sps=" xmlns:xsi=" xmlns
<xsl:template match="/">
<xsl:for-each select="sps
<class>
<record>
<xsl:value-of select="sps:sensorID"/>
</record>
</class>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
And here's part of the SensorML document I'm working with:
<?xml version="1.0" encoding="UTF-8"?>
<?xml:stylesheet type="text/xsl" href="DescribeTaskingResponse.xsl" ?>
<sps
xsi:schemaLocation=" spsDescribeTaskingRequestResponse.xsd"
xmlns=" spsDescribeTaskingRequestResponse.xsd"
xmlns:sps=" xmlns:xsi=" xmlns
<sps:taskingDescriptor>
<sps:sensorID>urn:x-ogc
...