Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
ReneeC ReneeC is offline
external usenet poster
 
Posts: 8
Default Word 2003 - RTF - This is not a valid Style name

am doing a complex XML/XSLT tranform into RTF. Please don't confuse this
with an XLM/XSLT question because it's not. It's actually an RTF question.
The output product of this transform is an entire mental health directory in
Word 2003 RTF Format. For some of the formatting I have to create a table.

The XSLT template has paragraph style definitions, Table Style Definitions,
Font definitions, color definitions and page setup information. I obtained
this header for my template by simply setting a page the way I wanted and cut
and pasting Word RTF output. This has worked very well for the first half of
the directory. But now I have a problem as the second half requires a table
definition.

When I attempt to add a new table definition to the XSLT template, when Word
2003 reads the output RTF file, it reports: "This is not a valid Style Name"
in reference to the newly introduced table style.

What checks is Word making that produces this error? What conditions evoke
this error. Btw I've slept with the Word RTF 2003 spec. The answer is not in
there. I have created the table I want in word and output it in RTF and I've
inserted the new table style right from the Word Output. But Word is making a
check on the output document that I don't know about.




  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Bob Buckland ?:-\) Bob   Buckland ?:-\) is offline
external usenet poster
 
Posts: 2,073
Default Word 2003 - RTF - This is not a valid Style name

Hi Renee,

That little error box does popup from time to time when you open a document (.doc or .rtf) in Word when there is minor corruption in
the file (if you open it, use File=Save As and choose a new file name then close and open that new file do you still get the
error).

If so, if you then run a Compare from the Tools menu of your new saved file and your old one does Word find any differences between
the two?

What is the name of the Table style you're creating in Word?

You may also want to check the Tools=Options=Compatability settings in Word to see if they're set to Word 2003.

It can also occur depending a bit on the syntax from different versions of the RTF spec. (Word 2003 uses v1.8, for example).

====================
"ReneeC" wrote in message ...
am doing a complex XML/XSLT tranform into RTF. Please don't confuse this
with an XLM/XSLT question because it's not. It's actually an RTF question.
The output product of this transform is an entire mental health directory in
Word 2003 RTF Format. For some of the formatting I have to create a table.

The XSLT template has paragraph style definitions, Table Style Definitions,
Font definitions, color definitions and page setup information. I obtained
this header for my template by simply setting a page the way I wanted and cut
and pasting Word RTF output. This has worked very well for the first half of
the directory. But now I have a problem as the second half requires a table
definition.

When I attempt to add a new table definition to the XSLT template, when Word
2003 reads the output RTF file, it reports: "This is not a valid Style Name"
in reference to the newly introduced table style.

What checks is Word making that produces this error? What conditions evoke
this error. Btw I've slept with the Word RTF 2003 spec. The answer is not in
there. I have created the table I want in word and output it in RTF and I've
inserted the new table style right from the Word Output. But Word is making a
check on the output document that I don't know about.
--

Bob Buckland ?:-)
MS Office System Products MVP

*Courtesy is not expensive and can pay big dividends*





  #3   Report Post  
Posted to microsoft.public.word.docmanagement
[email protected] joeboon@yahoo.co.uk is offline
external usenet poster
 
Posts: 1
Default Word 2003 - RTF - This is not a valid Style name

Got it!!

The problem seems to be spaces between style definitions in the
\stylesheet element. I had my stylesheet entries on separate lines in
the XSLT file, which in the output RTF created spaces between the
elements instead of line breaks.

The fix is to put the whole stylesheet and all styles on one line in
the XSLT file. I also removed xsl:text.../xsl:text but that didn't
help to start with.

Word doesn't mind having styles on separate lines, but it does mind if
they have a space after the closing "}" brace of a style. Strange but
true.

Really hope this helps you.

Joe


On Nov 11, 5:23 am, ReneeC wrote:
am doing a complex XML/XSLT tranform into RTF. Please don't confuse this
with an XLM/XSLT question because it's not. It's actually an RTF question.
The output product of this transform is an entire mental health directory in
Word 2003 RTF Format. For some of the formatting I have to create a table.

snip

When I attempt to add a new table definition to the XSLT template, when Word
2003 reads the output RTF file, it reports: "This is not a valid Style Name"
in reference to the newly introduced table style.

snip

Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Word 97 in Windows XP to maintain formatting Charlie''s Word VBA questions Microsoft Word Help 22 May 20th 23 08:51 PM
Why dont MS just f**king re-write Word from scratch? Its dogsh*t Word Hater Microsoft Word Help 33 May 5th 23 02:52 PM
take yet another lesson from wordperfect "reveal codes" wordperfect is superior Microsoft Word Help 5 May 11th 09 07:58 PM
I am having difficulty with deleting headers and footers LHD New Users 5 July 24th 06 01:44 AM
linking and sequential numbering of tables xppuser Tables 26 July 13th 06 01:52 PM


All times are GMT +1. The time now is 11:51 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"