[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [office] Feedback on ODF 1.2 documents - broken default value extraction from part 1
Patrick, On 27.02.2012 14:49, Patrick Durusau wrote: Svante,Seems I did not frame the problem precisely. The scenario: It is possible to extract the default values from the ODF 1.2 specification into an XML file with XSLT. The extraction is useful as sometimes applications just quickly need a list of the default values, which are all over the document. The extraction is possible as the spec uses a certain pattern to annotate these default values. For instance, the default values had been marked/tagged with certain styles to be recognizable for the XSLT script. In the following I wanted to explain that sometimes these styles are missing, so the XSLT script to extract the values does not work properly. This XSLT style sheet should be already somewhere in the ODF Toolkit Apache Incubator project. Perhaps I can create you there a test environment for the future. You got two easy options to see the error: 1) open the XML of the spec 2) Or open the spec with an ODF application. I suggest you open the specification with the Open|LibreOffice. You search for he default value for this attribute is "*" You press F11 to open the "Styles and Formatting" window usually on the right corner and choose in the frame of the dialog the character styles (letter a), by default only the paragraph styles are shown. If you than move your cursor on the * you just found, you will see a default style is set. If you than move your cursor on the application/x-www-form-urlencoded
of the following attribute, you will notice the character
style "Attribute Value Instance" has been set.The * was not set correctly, so it is not being correctly tagged as a default value to be extracted by my XSLT script - Sorry for the confusion, I meant a style being of style:family="char" Same as above. Either in the XML files of the spec or the F11 style pane of Open|LibreOffice. Same to you, Svante
|
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]