Click here to Skip to main content
14,636,672 members
Home » Discussions » XML / XSL
   

XML / XSL

 
Questionwriting to xml file Pin
Farraj8-Jun-10 17:17
MemberFarraj8-Jun-10 17:17 
AnswerRe: writing to xml file Pin
Stuart Dootson9-Jun-10 2:13
professionalStuart Dootson9-Jun-10 2:13 
GeneralRe: writing to xml file Pin
Farraj9-Jun-10 4:39
MemberFarraj9-Jun-10 4:39 
AnswerRe: writing to xml file Pin
Estys9-Jun-10 5:22
MemberEstys9-Jun-10 5:22 
GeneralRe: writing to xml file Pin
Farraj9-Jun-10 8:42
MemberFarraj9-Jun-10 8:42 
QuestionHow to access xml file simultaneously at runtime Pin
Raghu_M21-May-10 5:12
MemberRaghu_M21-May-10 5:12 
QuestionUsing SAX and PHP Pin
vho12318-May-10 20:22
Membervho12318-May-10 20:22 
QuestionXSLT and asp.NET mixture Pin
ceviz16-May-10 13:02
Memberceviz16-May-10 13:02 
Hello there.
My question is kinda hard to explain, I know. But I'll give it a shot. Hope it worksSmile | :)
I have a page(product.aspx) with is formed by an xslt and this xslt gets the values from product.xml.

protected void Page_Load(object sender, EventArgs e)
{
    string bebek = Request.QueryString["id"];

    XmlDocument xdoc = new XmlDocument();

    xdoc.Load(Server.MapPath("product.xml"));

    XslCompiledTransform xsltran = new XslCompiledTransform();

    xsltran.Load(Server.MapPath("pdetail.xsl"));

    xsltran.Transform(xdoc, null, Response.Output);



Not, somehow I managed to link the products with a link like detail.aspx?id={product id, lets say 2}.

Now I created a page named detail.aspx, getting the id of the product and trying the same method to construct the sheet.

Here is my code at pdetail.xsl which need some aidSmile | :)
<xsl:for-each select="root/product/pid="'id'">
i tried
<xsl:for-each select="root/product/pid="{id}">
but i wont work.

I will sort the data with the id which I aim to retrieve by the link. Some of you might say, "dont be a noob, just use asp.net facilities to make it." Smile | :) you might be right but I am not that hard coder here.
phew...hope I made it clearConfused | :confused:

ps: I use C# for .Net.
AnswerRe: XSLT and asp.NET mixture Pin
Not Active16-May-10 17:08
mentorNot Active16-May-10 17:08 
AnswerRe: XSLT and asp.NET mixture Pin
Atwind27-Jun-10 23:42
MemberAtwind27-Jun-10 23:42 
Questionlanguage localization using XML in VC++ (MFC) Pin
punyah20108-May-10 9:03
Memberpunyah20108-May-10 9:03 
QuestionSuppress Xmlns in InnerXML / Rename an XML node in DOM Pin
Ger Hayden6-May-10 11:37
MemberGer Hayden6-May-10 11:37 
AnswerRe: Suppress Xmlns in InnerXML / Rename an XML node in DOM Pin
Ger Hayden8-May-10 7:24
MemberGer Hayden8-May-10 7:24 
QuestionParsing RSS Pin
Aljaz1116-May-10 3:37
MemberAljaz1116-May-10 3:37 
AnswerRe: Parsing RSS Pin
Stuart Dootson6-May-10 23:24
professionalStuart Dootson6-May-10 23:24 
QuestionXSLT to HTML Pin
vho12329-Apr-10 21:46
Membervho12329-Apr-10 21:46 
AnswerRe: XSLT to HTML Pin
Stuart Dootson6-May-10 1:00
professionalStuart Dootson6-May-10 1:00 
QuestionCan anyone give me a hand with this? Pin
ajweber27-Apr-10 19:20
Memberajweber27-Apr-10 19:20 
AnswerRe: Can anyone give me a hand with this? Pin
Not Active28-Apr-10 0:54
mentorNot Active28-Apr-10 0:54 
GeneralRe: Can anyone give me a hand with this? Pin
ajweber28-Apr-10 5:59
Memberajweber28-Apr-10 5:59 
GeneralRe: Can anyone give me a hand with this? Pin
Not Active28-Apr-10 6:10
mentorNot Active28-Apr-10 6:10 
GeneralRe: Can anyone give me a hand with this? Pin
ajweber28-Apr-10 6:17
Memberajweber28-Apr-10 6:17 
GeneralRe: Can anyone give me a hand with this? Pin
Not Active28-Apr-10 6:31
mentorNot Active28-Apr-10 6:31 
GeneralRe: Can anyone give me a hand with this? Pin
ajweber28-Apr-10 6:52
Memberajweber28-Apr-10 6:52 
QuestionDesperate seeking answer to simple problem Pin
Axiom70m27-Apr-10 5:45
MemberAxiom70m27-Apr-10 5:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.