PC Review


Reply
Thread Tools Rate Thread

Different XPath query behaviors when using xslCompiledTransform

 
 
wejiv
Guest
Posts: n/a
 
      26th Aug 2008
When I use xslCompiledTransform() or xslCompiledTransform(false) I find that
the XPath queries in my select query attributes do not recognize any
attributes inthe xml document. But when I enable debugging
-xslCompiledTransform(true)- everything works as it should.
for example:
<Root>
<test attr1="avalue" />
<test attr1="anothervalue" />
</Root>
doing a
<xsl:for-each select="/Root/test">
<xsl:sort select="@attr1" />
</xsl:for-each >
will sort using xslCompiledTransform(true) but not
xslCompiledTransform(false). The problem is the select="@attr1" returns
attribute values in debugging mode but not in run mode. I am using Visual
Studio 2005 with .NET Framework 2.0 SP1 for an IIS web solution on Windows XP
SP2.
 
Reply With Quote
 
 
 
 
Anthony Jones
Guest
Posts: n/a
 
      26th Aug 2008
"wejiv" <(E-Mail Removed)> wrote in message
news:12400D21-9BCD-4CA2-8FAF-(E-Mail Removed)...
> When I use xslCompiledTransform() or xslCompiledTransform(false) I find

that
> the XPath queries in my select query attributes do not recognize any
> attributes inthe xml document. But when I enable debugging
> -xslCompiledTransform(true)- everything works as it should.
> for example:
> <Root>
> <test attr1="avalue" />
> <test attr1="anothervalue" />
> </Root>
> doing a
> <xsl:for-each select="/Root/test">
> <xsl:sort select="@attr1" />
> </xsl:for-each >
> will sort using xslCompiledTransform(true) but not
> xslCompiledTransform(false). The problem is the select="@attr1" returns
> attribute values in debugging mode but not in run mode. I am using Visual
> Studio 2005 with .NET Framework 2.0 SP1 for an IIS web solution on Windows

XP
> SP2.


Please don't multipost.

I've answered in the XSL group.


--
Anthony Jones - MVP ASP/ASP.NET


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with XPath query =?Utf-8?B?RGlmZmlkZW50?= Microsoft ASP .NET 2 5th Mar 2007 05:06 PM
XPath query on XmlNode Claudio Microsoft C# .NET 2 26th Nov 2006 02:04 PM
Getting New Behaviors in Front Page 2003 Behaviors List =?Utf-8?B?Vmlja21uYzg0?= Microsoft Frontpage 1 25th Jul 2004 10:06 AM
Simple XPath query raheel Microsoft ASP .NET 0 4th Nov 2003 04:57 PM
xpath query with namespace dc Microsoft C# .NET 2 11th Jul 2003 08:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:08 PM.