473,414 Members | 1,964 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

Using xsl:value-of.

Using <xsl:value-of in XSL


Expand|Select|Wrap|Line Numbers
  1.  
  2. XML file
  3.  
  4. <i:Details>
  5.   <i:Stra>
  6.        <stra:Desc>ABC</stra.Desc>
  7.   </i:Stra>
  8. </i:Details>
  9.  

If i use XSL value of

Expand|Select|Wrap|Line Numbers
  1. <xsl:value-of select="i:Details/i:Stra/stra:Desc)"/>     
  2.  
ERROR:Namespace prefix 'stra' is undeclared.'

How can I get the value of ABC
Jun 20 '07 #1
1 1245
Verify if it has anything to do with your parser not recognizing ":"
Try to use underscore "_" instead of ":" in your tags and check to see if it works.

Is that the only place that the value-of doesn't work or is it all through your file?
Jun 20 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Christian Roth | last post by:
Hello, when using this "identity" processing sheet: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" encoding="iso-8859-1" /> ...
4
by: Kevin Dean | last post by:
I'm trying to create an XSL transformation that will strip out development-specific attributes from deployment descriptors and other XML files. I have already successfully done so with web.xml but...
2
by: Christoph Niemann | last post by:
Hello, I want to output an element with an attribute. The attribute's value shall contain a entity reference. Is that possible at all? I use this source-XML and xsl-stylesheet: <?xml...
2
by: Beniamin Tecar | last post by:
Hi, I have an xml : <DataRecords> <Point Alias='A' Value='1' Status='0' /> <Point Alias='B' Value='2' Status='0' /> </DataRecords> I have needed by an XSL to insert a node between...
0
by: Ganesh Kolappan via .NET 247 | last post by:
Hi I am trying to populate a <asp:dropdownlist> in a XSLT file withdatasource pointing to a C# codebehind file method which returnsa dataview. I am using XSLT extension object. But I am...
11
by: ajikoe | last post by:
Hello, I used Visual C# Standard Edition. I want to comment my program using xml commentary method, I don't know why if I use value and example tag, it is not working / showed in the html...
6
by: Kourosh | last post by:
I can't figure out how to do this because the tags have to be properly nested... and I dont have much XSL experience. Say I'm generating an HTML tag in my XSL file, and for one of it's attributes,...
0
by: vaibhavk | last post by:
Hi, I am trying to transform a XML file into another XML using XSL (XSLT1.0): Original XML: <pfe-traffic-statistics> <pfe-input-packets>5678</pfe-input-packets>...
4
by: Ronald S. Cook | last post by:
Is there a way in ASP/IIS that I can communicate this link: http://www.tournama.com/tournament.aspx?number=29384732 As this instead: http://www.tournama.com/tournament.aspx/29384732 In...
1
by: Scadhasini | last post by:
Hi , i am using value which is selected in combo box. here i am using combo box array.i declared like that <select name="typeOfThreshold" size="1" > <option value="First" >First</option>...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.