View Single Post
 
Old 03-12-2019, 07:37 PM
Guessed's Avatar
Guessed Guessed is offline Windows 10 Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,977
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

Not so trivial if the style name is not a valid xml element name. For instance you can't have a space in the name so "Heading 1" will need to become "Heading1". If your styles include potentially problematic characters like &* or begin with a number or underscore then you might also run in to problems.

You might need to include a function to ensure only xml valid names get in the tags.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote