Jump to content

Recommended Posts

Posted

Hi everyone,

Apologies if this is off-topic..

 

I am writing an XSLT where I want to pass an XPath statement in as a parameter.* Like so:

 

 

 

Note the single quotes around the XPath - the param is a string literal, not a node set.

 

I then want to go:

 

 

 

 

But ASP.Net doesn't like this at all, in fact my web server crashes as soon as it attempts the transform. XMLSpy doesn't like it either. It works fine when I declare the param like this:

 

 

 

Can anyone tell me if there's a way to get it to do what I want, or a workaround?

 

As background, I'm doing this because I need to calculate the XPath on the fly based on the current URL. It's basically a kind of URL rewriter - I'll convert /mypages/mypage.htm to /pagegroup[@title=mypages]/page[@title=mypage]

 

 

More...

 

View All Our Microsoft Related Feeds

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...