Template styles 'do not match'

Using them, Making them, Finding them
Post Reply
TAB
Posts: 283
Joined: Sun Feb 24, 2008 5:04 am

Template styles 'do not match'

Post by TAB »

Under New/TemplateAndDocs/Templates, select a template,click Edit, get 'The styles.. do not match your current styles. Should your current styles be applied...'
Puzzling; If I just opened a template, does it not set my 'current styles'? How can they 'not match'?
esperantisto
Volunteer
Posts: 578
Joined: Mon Oct 08, 2007 1:31 am

Re: Template styles 'do not match'

Post by esperantisto »

Possibly, your template is based on another template.
AOO 4.2.0 (of 2015) / LO 7.x / Win 7 / openSUSE Linux Leap 15.4 (64-bit)
TAB
Posts: 283
Joined: Sun Feb 24, 2008 5:04 am

Re: Template styles 'do not match'

Post by TAB »

esperantisto wrote:Possibly, your template is based on another template.
What does that mean? When editing the template, I see no field 'Based on:...'
I am sending the template for you to examine.
Attachments
Examen.ott
template with 'mismatch' styles
(9.26 KiB) Downloaded 807 times
User avatar
bobban
Volunteer
Posts: 535
Joined: Sat Nov 01, 2008 3:12 pm
Location: Australia

Re: Template styles 'do not match'

Post by bobban »

I do not get the error when trying to edit this.
Possibly, your template is based on another template.
I tried to create the error by doing this but cannot either. A 'child' template doesn't seem to care if its parent template's styles were modified. Only a child document of a template gives me this error, when the parent template's styles were changed since last save...
OOo 3.1.1 on Ms Windows XP
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: Template styles 'do not match'

Post by acknak »

Actually, it looks like the template is based on itself. Here is it's template link:
<meta:template ... xlink:href="../Examen.ott" .../>

A "normal" link for a document created from one of my templates looks like this:
<meta:template ... xlink:href="../../.openoffice.org/3/user/template/MyTestTemplate.ott" .../>

If I start a new document from "MyTestTemplate", then save that using File > Templates > Save, giving it a new name, then the new "child" template has a template link like yours. If I try to edit the child template (File > Templates > Edit), then I get the message as you described.

Do you remember how you created this template?

The template link will be removed if you answer "No" to the update prompt. You should not see the prompt again.
AOO4/LO5 • Linux • Fedora 23
TAB
Posts: 283
Joined: Sun Feb 24, 2008 5:04 am

Re: Template styles 'do not match'

Post by TAB »

bobban wrote:I do not get the error when trying to edit this.
I downloaded the template, and opened it immediately, got an untitled doc without error. OK. This may be what you did.
Then, I downloaded again the template, saved it as Tst.ott, clicked File/Templates/Edit, got Tst.ott (not Untitled.odt) with the do-not-match message.
Why? What are my 'current styles' when I open a template for editing?
Only a child document of a template gives me this error, when the parent template's styles were changed since last save...
This is what I expect. But the error reported above is not for a child document.
User avatar
bobban
Volunteer
Posts: 535
Joined: Sat Nov 01, 2008 3:12 pm
Location: Australia

Re: Template styles 'do not match'

Post by bobban »

I downloaded the template, and opened it immediately, got an untitled doc without error. OK. This may be what you did.
Then, I downloaded again the template, saved it as Tst.ott, clicked File/Templates/Edit, got Tst.ott (not Untitled.odt) with the do-not-match message.
Why? What are my 'current styles' when I open a template for editing?
I cannot reproduce this. Could you make your steps a little clearer? :?

acknak has found the critical clue in the odt file about this situation. Are saying that you downloaded this file yourself?
OOo 3.1.1 on Ms Windows XP
TAB
Posts: 283
Joined: Sun Feb 24, 2008 5:04 am

Re: Template styles 'do not match'

Post by TAB »

bobban wrote:
Could you make your steps a little clearer?
From the Forum, click Examen.ott (to download it)
dialog window offers to open or save file
choose save
save file in template folder as TestOL.ott
In Writer, click File>Templates>Edit
Choose TestOL.ott
Message window opens:
OpenOffice.org 3.0
'The styles in this document do not match your current styles...'
Are saying that you downloaded this file yourself?
Not sure what you mean. I repeated the above steps (instead of using the file I originally uploaded) to ensure we are using the same data.
Post Reply