Subject: [xsl] how can i realise a "reference" in a xml-file? From: "Silvia Liberto" <SLiberto@xxxxxx> Date: Mon, 28 Aug 2006 12:29:58 +0200 |
Hello all, i have a docbook file with questions and answers. The questions are inside of a <para>-tag and the solutions are inside of a <section> with role="answer" and a <programlisting>-tag. At the moment i have to put the programcode at the right place in the xml-file. Now i want realise that the programcode is in a seperate file like code1.aspx in a file named "code" for example and the questions are also seperated. But i donB4t know how can i realise that the right solution is joined with the right question in the xml-file!? have someone an idea? Thanks for helping! kind regards, Silvia here is my xml-file: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd"> <article role="excerises"> <title>Page of exerices</title> <abstract> <para>here is a detailed description of <emphasis role="bold"> exercise</emphasis></para> </abstract> <section> <title>title</title> <para>Here is the text of the question</para> <section role="answer"> <title>Solution:</title> <programlisting><script language="C#" runat=server> void Page_Load() { Label1.Text=Textbox1.Text; } </script> <HTML> <body> <form method="get" runat="server"> <asp:TextBox ID="Textbox1" Runat="server" /><BR> <asp:Button ID="Button1" Runat="server" Text="senden" /><BR> <asp:Label ID="Label1" Runat="server" /> </form> </body> </HTML></programlisting> </section> </section> <section> <title>title</title> <para>Next question</para> <section role="answer"> <title>Solution:</title> <programlisting><%@ Page language="c#" Codebehind="WebControlTextBox2.aspx.cs" AutoEventWireup="false" Inherits="CS.WebControlTextBox2" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > <HTML> <body> <form method="get" runat="server" ID="Form1"> <asp:TextBox ID="Textbox1" Runat="server" /><BR> <asp:Button ID="Button1" Runat="server" Text="senden" /><BR> <asp:Label ID="Label1" Runat="server" /> </form> </body> </HTML> Hinterlegter Code (Auszug): private void Page_Load(object sender, System.EventArgs e) { // Put user code to initialize the page here } private void Button1_Click(object sender, System.EventArgs e) { Label1.Text=Textbox1.Text; }</programlisting> </section> </section> </article> -- "Feel free" b 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSL cant check if "File e, Mukul Gandhi | Thread | [xsl] Saxon8: XML to XML transforma, Marco Pehla |
Re: [xsl] XSL cant check if "File e, Mukul Gandhi | Date | [xsl] Saxon8: XML to XML transforma, Marco Pehla |
Month |