Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 27th, 2006, 08:38 AM
Registered User
 
Join Date: Jun 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default error XTDE0410 (from saxon generator)???

Hi all

I am trying to develop an html2doc generator.
I made an xslt that generates microsoft word xml doc file.
my source data is an xhtml file, and I am using saxon under microsoft .NET.
I am generating XSLT 2.0.
I am in the middle of the road and it looks cool till now.

I tryed to add an attribute using xsl:attribute and I get an error.

here is a part of my xslt:
----------------------------------

<w:p>
                        <w:pPr><w:jc w:val="right" /></w:pPr>
                        <w:r>
                          <w:rPr>
                            <w:rFonts w:ascii="Arial" w:h-ansi="Arial" w:cs="Arial"/>
                            <wx:font wx:val="Arial"/>
                              <w:sz>
                                <xsl:attribute name="w:val">16</xsl:attribute>
                              </w:sz>
                              <w:sz-cs w:val="16" />
                              <w:color w:val="000080" />
                          </w:rPr>
                          <w:t><xsl:value-of select="."/></w:t>
                        </w:r>
                      </w:p>

as you can see I am trying to add the attribtue w:val to the w:sz element.

here it the full error that i get:
-----------------------------

Error at attribute constructor w:val="{...}" on line 45 of file:///C:/html2word.xsl:
  XTDE0410: An attribute node (w:val) cannot be created after the children of the containing element
Transformation failed: Run-time errors were reported

I tryed to add some other attributes to other elements and I am getting the same error.


is some one undestand????

Roni.


 
Old June 27th, 2006, 09:09 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Is it possible that your stylesheet uses xml:space="preserve"? In that case, whitespace text will be added to the w:sz element before the attribute is added.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
 
Old June 27th, 2006, 09:18 AM
Registered User
 
Join Date: Jun 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

THANX!!!!

it is the problem.
I removed this tag from my code, amd it is working now.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Memory Error:using saxon with option java -Xmx1024 manish_jaiswal XSLT 4 January 29th, 2008 12:08 PM
Saxon - run-time error during processing entity ROCXY XSLT 1 June 29th, 2007 04:39 AM
what is this error generated by saxon processor? muki XSLT 8 February 12th, 2007 03:57 PM
error on saxon 8.8 rjonk XSLT 1 October 24th, 2006 09:03 AM
XPST0081: XPath syntax error ... with Saxon markus2000 XSLT 3 June 22nd, 2006 09:53 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.