I have the following lines in my .xml file
<metadataObject ID="measurementFrameSet" classification="DESCRIPTION" category="DMD">
<metadataWrap mimeType="text/xml" vocabularyName="SAFE" textInfo="Frame Set">
<xmlData>
<safe:frameSet>
<safe:frame>
<safe:footPrint srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">
<gml:coordinates>43.838726,8.275868 44.232952,11.408423 42.557594,11.770112 42.163200,8.725094</gml:coordinates>
</safe:footPrint>
</safe:frame>
</safe:frameSet>
</xmlData>
</metadataWrap>
I'm able to read the entire node
<xsl:for-each select="//metadataSection/metadataObject/metadataWrap/xmlData/safe:frameSet/safe:frame/safe:footPrint" >
<xsl:value-of select="gml:coordinates" />
</xsl:for-each>
but I would like to extract only the following numeric values in the "gml:coordinates" node in a separate way: 43.838726,8.275868 42.557594,11.770112 because in my final xml they will be inserted in to separate field.
Is there a way with xslt to obtain a substring from that node ? the final xml should look like this:
<gmd:eastBoundLongitude>
<gco:Decimal>
43.838726
</gco:Decimal>
</gmd:eastBoundLongitude>