kml2golfml Line 60 correction

22 views
Skip to first unread message

Sekar

unread,
Feb 18, 2010, 1:18:01 PM2/18/10
to Golf Markup Language
I am using kml2golfml using xslt task in ant-1.7.1 to convert a kml --
>golfml file. Line 60 errored out

xml/kml2golfml.xsl: line 60: You cannot call an attribute 'xmlns:xsi'
[xslt] : Fatal Error! Could not compile stylesheet
[xslt] Failed to process null

Commented out the line and the output golfml element seems to look ok
<golfml xmlns="http://code.google.com/p/golfml" xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://
code.google.com/p/golfml ../schemas/golfml.xsd" version="0.9">

Pierre M

unread,
Feb 19, 2010, 4:12:48 AM2/19/10
to Golf Markup Language
Line 60 just adds xsi namespace to generated golfml document.
I don't remember why you need xsi in golfml document. At worst, you
can add it by hand afterwards.
Pierre

On Feb 18, 7:18 pm, Sekar <shake...@yahoo.com> wrote:
> I am using kml2golfml  using xslt task in ant-1.7.1 to convert a kml --
>
> >golfml file. Line 60 errored out
>
> xml/kml2golfml.xsl: line 60: You cannot call an attribute 'xmlns:xsi'
>      [xslt] : Fatal Error! Could not compile stylesheet
>      [xslt] Failed to process null
>
> Commented out the line and the output golfml element seems to look ok

> <golfml xmlns="http://code.google.com/p/golfml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://
> code.google.com/p/golfml ../schemas/golfml.xsd" version="0.9">

Reply all
Reply to author
Forward
0 new messages