XSL Transformation - Dynamic Generation of XML Content

H

Hugo Ferreira

Hi all,

I'm having a problem here, to which I hope someone to be able to help me :)

I need to apply a XSLT transformation to the output of all my ASPX webpages.
I've recently found the tag <asp:xml> which allows me to point out a
transformation document, and put inline XML. The problem is: I cannot mix
logic in this XML. A simple example:

<asp:xml TransformSource="XslDemo.xslt" runat="server">
<test>
<main>
<%=TestClass.Title%>
</main>
</test>
</asp:xml>

This gives me a Parser Error, saying that the '%' character cannot begin
with a name.

There are some points here:
-> I need to generate dynamic XML from aspx pages
-> The transformation must be server-side!!!!! (This is because I won't be
outputing HTML)
-> Escaping all the output to string and then transforming it is also pretty
confusing in terms of layout.

This is kind of urgent to know ;)

Thanks in Advance,

Hugo Ferreira
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top