I have downloaded the XSD from XML Schema of Aspose.PDF|Aspose.PDF for .NET and it seems that does not conform to the example you provide in the site. That means, that you provide an example that uses the attribute PageWidth=“11inch” but the XSD defines the value of it as float which in that case it does not validate if the inch keyword is entered. Also, I have noticed that the attributes WordsSpace, CharSpace are declared to have a value of int. Is this correct or it should be float?
Thanks for the reply. I use PageWidth and PageHeight attributes, but in the XSD the values of these attributes are set to be float. That means that the validator will alert if we add a value like “5cm”. Maybe, I have old XSD version.
Thanks for the reply.
I have used XMLSpy to create the XML to bind with Aspose PDF in order to create a simple PDF. When I’m trying to add a value to PageWidth or PageHeight (that happens and to other elements that normally accept a ‘16cm’ for example value) then the XMLSpy reports validation error since the XSD defines those values as float instead of string so when the ‘cm’ is appended to the number (like 16cm) then there is a validation error in XMLSpy. But the PDF is being build normally.
Thanks for your reply.
The example you provide contains PageWidth = “20cm”, but as you can see above in the attribute definition in the XSD its type is ‘xsd:float’!
So you get validation errors if you use the example PageWidth = “20cm”. Allowed values are numbers (floats) only without the ‘cm’.
Perhaps the XSD file should be updated?