Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XSLT
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 27th, 2006, 08:38 AM
Registered User
Join Date: Jun 2006
Location: , , .
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:pPr><w:jc w:val="right" /></w:pPr>
                            <w:rFonts w:ascii="Arial" w:h-ansi="Arial" w:cs="Arial"/>
                            <wx:font wx:val="Arial"/>
                                <xsl:attribute name="w:val">16</xsl:attribute>
                              <w:sz-cs w:val="16" />
                              <w:color w:val="000080" />
                          <w:t><xsl:value-of select="."/></w:t>

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????


Reply With Quote
  #2 (permalink)  
Old June 27th, 2006, 09:09 AM
mhkay's Avatar
Wrox Author
Points: 18,438, Level: 59
Points: 18,438, Level: 59 Points: 18,438, Level: 59 Points: 18,438, Level: 59
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
Posts: 4,954
Thanks: 0
Thanked 290 Times in 285 Posts

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
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
Reply With Quote
  #3 (permalink)  
Old June 27th, 2006, 09:18 AM
Registered User
Join Date: Jun 2006
Location: , , .
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts


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

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 06:35 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.