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 December 1st, 2003, 07:12 PM
Registered User
 
Join Date: Dec 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Generating aspx pages with xml and xslt

I am trying to generate aspx pages by transforming an xml document that looks like

<SelectionPaneData xmlns="http://tempuri.org/SelectionPaneData.xsd">
  <SelectionPane Columns="4" Name="" />
  <Controls ID="sTextBox1" Label="Text Box 1" Type="TextBox" />
 </SelectionPaneData>

However when I try to generate the <asp: tag from my template I get a namespace error. Has anyone been able to generate the text for the asp.Net controls using an xsl template?

 
Old December 2nd, 2003, 01:44 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 147
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to armmarti
Default

You give us only an opportunity to guess :) Please send your XSLT code and we'll try to help you. Probably there is a problem with namespace declarations.

Regards,
Armen
 
Old December 2nd, 2003, 04:53 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

See the archive http://p2p.wrox.com/topic.asp?TOPIC_ID=1342
 
Old December 2nd, 2003, 01:29 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Maybe you need to encode the : in the <asp:...> tag so the XSLT transformation doesn't get confused and assume that it needs to match that to some namespace.

Peter
------------------------------------------------------
Work smarter, not harder.
 
Old December 3rd, 2003, 05:27 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

The difficulty arises because asp.net pages are not xml. They don't declare the asp prefix/namespace uri. The asp.net processor has this hardcoded into it but this spoils it when you try to create pages via xslt. I remember seeing a solution on another xml list and I will try to find a link to that for you.

Joe (MVP - xml)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Generating ASPX on the fly sandeepbhutani304 ASP.NET 2.0 Basics 0 September 16th, 2008 12:49 AM
Generating a comma-delimited data in XSLT dude153 XSLT 2 November 30th, 2007 12:12 PM
generating a table w. xslt, newbie problem themuffinman_swe XSLT 5 November 26th, 2005 01:05 PM
Add XSLT transformed XML (html) on an aspx page humour XSLT 2 September 30th, 2004 05:13 AM
Generating reports from web pages badgolfer ASP.NET 1.0 and 1.1 Basics 1 September 28th, 2004 04:11 AM





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