Sublime Forum

Sublime 2 Snippet XML error

#1

Hi,
I’m actually doing a snippet for creating headers with your name, email … And I would like to add the time and the date when the project start and when the last save was done.

I tryed to include :

<xs:element name="startdate" type="xs:dateTime"/>

With

<xs:simpleType name="dateTime" id="dateTime"> <xs:restriction base="xs:anySimpleType"> <xs:whiteSpace value="collapse" fixed="true"/> </xs:restriction> </xs:simpleType>
But Sublime Text 2 returns me : “Unrecognised plis element xs:restriction”

Here is my code :

[code]

<?xml version="1.0" encoding="UTF-8"?>

<xs:simpleType name=“dateTime” id=“dateTime”>
<xs:restriction base=“xs:anySimpleType”>
<xs:whiteSpace value=“collapse” fixed=“true”/>
</xs:restriction>
</xs:simpleType>

name Globals scope settings shellVariables name TM_TIME value uuid 0ef292cd-943a-4fb0-b43d-65959c5e6b06 [/code] I took the
<xs:simpleType name="dateTime" id="dateTime">

here : docstore.mik.ua/orelly/xml/schem … ch16-77031

Any idea what I’m doing wrong?

Sorry for my bad english, french … :smiley:

0 Likes