xslt - Problems with OpenXML 2.5 XSL Transformation Word 2013 C# -


can me out on problem? haven't done openxml before , has me stumped!

i have word document invoice. in document, have usual headers etc, plus 'fields' need populated data xml dataset sqlserver.

i took copy of word/document.xml docx , made recommended changes file convert xslt file.

<?xml version="1.0" encoding="utf-8" standalone="yes"?> 

becomes

<xsl:stylesheet version="1.0"                 xmlns:xsl="http://www.w3.org/1999/xsl/transform"                 xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"                 xmlns:xs="http://www.w3.org/2001/xmlschema"                 xmlns:n2="urn:hl7-org:v3"             exclude-result-prefixes="n2 xs xsi xsl"> <xsl:output method="xml" encoding="utf-8" indent="yes"/> <xsl:template match="/"> 

and file terminated

</xsl:template> </xsl:stylesheet> 

then, changed of 'fields' show wanted data merged.

all , good......

when ran it, got new file looked ok not open in word 2013. pulled document.xml out of docx , tried open that. gave me unspecified error line 1 column 1257.

i have since tried sorts of things, including creating xslt no merge fields, headers , footers set up, , same thing.

i have tried several different headers differing complexity , same error.

when trace error, in tag line

<w:document xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:wpc="http://schemas.microsoft.com/office/word/2010/wordprocessingcanvas" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officedocument/2006/relationships" xmlns:m="http://schemas.openxmlformats.org/officedocument/2006/math" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingdrawing" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingdrawing" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessinggroup" xmlns:wpi="http://schemas.microsoft.com/office/word/2010/wordprocessingink" xmlns:wne="http://schemas.microsoft.com/office/word/2006/wordml" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingshape" mc:ignorable="w14 w15 wp14"> 

which finishes column 1257:

mc:ignorable="w14 w15 wp14">

i have checked namespaces declared cannot see, or understand, going wrong

any ideas? thanks


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

css - Can I use the :after pseudo-element on an input field? -