Asjad Rizvi
Asjad Rizvi

Reputation: 1

transforming online from xml to xsl

<?xml version="1.0" encoding="UTF‐8"?>
<student>
<firstName>Faysal</firstName>
<lastName>Abshar</lastName>
<id>112233</id>
<plan>
<courses year="2">
<course>
<name> Database Management System </name>
<shortName>DBMS</shortName>
<record>
<grade>A+</grade>
<percentage>85</percentage>
<date>27-03-2017</date>
</record>
</course>
<course>
<name>Oracle</name>
<shortName>O</shortName>
</course>
</courses>
</plan>
</student>

I'm getting this error when converting it to xsl SXXP0003: Error reported by XML parser: Premature end of file.

Upvotes: 0

Views: 227

Answers (1)

michael.hor257k
michael.hor257k

Reputation: 117103

I am getting a different error, caused by the "UTF‐8" part in the opening XML declaration. The character is a HYPHEN (&#2010;). Replacing it with a HYPHEN-MINUS (&#45;) solves the problem.

Upvotes: 1

Related Questions