[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

how can i realise a "reference" in a xml-file?

Subject: how can i realise a "reference" in a xml-file?
From: "Silvia Liberto" <SLiberto@xxxxxx>
Date: Mon, 28 Aug 2006 12:29:58 +0200
asp runat
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.