Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old August 4th, 2006, 01:25 PM
polly.woodhouse@cefas.co.uk
Guest
 
Posts: n/a
Default System.Xml.Xsl.XslLoadException: XSLT compile error.

Hi,
I have created an xsl document containing html client side controls and
when I used my XSLCompileTransform class it successfully created an
xhtml page.

I then changed the client side controls to asp.net2 server side
controls and changed the xsl document accordingly. However now my
XSLCompileTransform class rejects the style sheet saying -

"System.Xml.Xsl.XslLoadException was caught
LineNumber=56
LinePosition=20
Message="XSLT compile error.""

It does not like the server side control

I have put my xsl code below and I would be really grateful if someone
could help me.

Many thanks in advance,

Polly Anna

<form id="frmFoo" runat="server" action ="SelectApplicant.aspx" method
="post" target ="_self" >

******* line 56 is the one below ********

<asp:ListBox ID="lstApplications" runat="server" CssClass="TextArea"
Style="z-index: 103">

<xsl:for-each select="NewDataSet/Table/AdviceId">

<asp:ListItem>
<xsl:attribute name="value">
<xsl:value-of select="."/>
</xsl:attribute>
<xsl:value-of select="."/>
- <xsl:value-of select="../AdviceDate"/>
- <xsl:value-of select="../Advisor_Name"/>
- <xsl:value-of select="../Advisor_Add1"/>
- <xsl:value-of select="../AppId"/>
- <xsl:value-of select="../Applicant_Name"/>

</asp:ListItem>
</xsl:for-each>
</asp:ListBox>

</form>

  #2  
Old August 4th, 2006, 01:55 PM
Martin Honnen
Guest
 
Posts: n/a
Default Re: System.Xml.Xsl.XslLoadException: XSLT compile error.



polly.woodhouse@cefas.co.uk wrote:

Quote:
I then changed the client side controls to asp.net2 server side
controls and changed the xsl document accordingly. However now my
XSLCompileTransform class rejects the style sheet saying -
>
"System.Xml.Xsl.XslLoadException was caught
LineNumber=56
LinePosition=20
Message="XSLT compile error.""
Quote:
<asp:ListBox ID="lstApplications" runat="server" CssClass="TextArea"
Style="z-index: 103">
Do you have a namespace declared for the prefix asp that you use here?


--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
  #3  
Old August 7th, 2006, 09:15 AM
polly.woodhouse@cefas.co.uk
Guest
 
Posts: n/a
Default Re: System.Xml.Xsl.XslLoadException: XSLT compile error.

Hi Martin,

I don't know how to add a namespace that is specific to the asp
control. At the top of my xsl style sheet I have a namespace added:-

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xsl:output method="html" encoding="iso-8859-1"
doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
<xsl:template match="/">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

Thank you for your help.

Kind regards,

Polly Anna


Martin Honnen wrote:
Quote:
polly.woodhouse@cefas.co.uk wrote:
>
>
Quote:
I then changed the client side controls to asp.net2 server side
controls and changed the xsl document accordingly. However now my
XSLCompileTransform class rejects the style sheet saying -

"System.Xml.Xsl.XslLoadException was caught
LineNumber=56
LinePosition=20
Message="XSLT compile error.""
>
Quote:
<asp:ListBox ID="lstApplications" runat="server" CssClass="TextArea"
Style="z-index: 103">
>
Do you have a namespace declared for the prefix asp that you use here?
>
>
--
>
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
  #4  
Old August 7th, 2006, 09:15 AM
polly.woodhouse@cefas.co.uk
Guest
 
Posts: n/a
Default Re: System.Xml.Xsl.XslLoadException: XSLT compile error.

Hi Martin,

I don't know how to add a namespace that is specific to the asp
control. At the top of my xsl style sheet I have a namespace added:-

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xsl:output method="html" encoding="iso-8859-1"
doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
<xsl:template match="/">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

Thank you for your help.

Kind regards,

Polly Anna


Martin Honnen wrote:
Quote:
polly.woodhouse@cefas.co.uk wrote:
>
>
Quote:
I then changed the client side controls to asp.net2 server side
controls and changed the xsl document accordingly. However now my
XSLCompileTransform class rejects the style sheet saying -

"System.Xml.Xsl.XslLoadException was caught
LineNumber=56
LinePosition=20
Message="XSLT compile error.""
>
Quote:
<asp:ListBox ID="lstApplications" runat="server" CssClass="TextArea"
Style="z-index: 103">
>
Do you have a namespace declared for the prefix asp that you use here?
>
>
--
>
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
  #5  
Old August 7th, 2006, 09:15 AM
polly.woodhouse@cefas.co.uk
Guest
 
Posts: n/a
Default Re: System.Xml.Xsl.XslLoadException: XSLT compile error.

Hi Martin,

I don't know how to add a namespace that is specific to the asp
control. At the top of my xsl style sheet I have a namespace added:-

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xsl:output method="html" encoding="iso-8859-1"
doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
<xsl:template match="/">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

Thank you for your help.

Kind regards,

Polly Anna


Martin Honnen wrote:
Quote:
polly.woodhouse@cefas.co.uk wrote:
>
>
Quote:
I then changed the client side controls to asp.net2 server side
controls and changed the xsl document accordingly. However now my
XSLCompileTransform class rejects the style sheet saying -

"System.Xml.Xsl.XslLoadException was caught
LineNumber=56
LinePosition=20
Message="XSLT compile error.""
>
Quote:
<asp:ListBox ID="lstApplications" runat="server" CssClass="TextArea"
Style="z-index: 103">
>
Do you have a namespace declared for the prefix asp that you use here?
>
>
--
>
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles