473,382 Members | 1,710 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,382 software developers and data experts.

manage text and tag mixed in xml

Hi.

I've got an XML doc which looks like something like that :
<member name="F:Pssoft.Utilities.DB.EasyDB._orcPackagePref ix">
<summary>
The name of the package the procedure exists in in an oracle
database.
This is necessary because ref cursor parameters need to be
defined
in packages and are required for returning result sets.
Accessible via the <see
cref="P:Pssoft.Utilities.DB.EasyDB.OraclePackageNa me"/> property.
</summary>
</member>
and I would like, with a client XSL stylesheet to transform the "see" tag in
a "a href" tag...
But I'm unable to do it (the text which is after the "see" tag is ignored
when I use a xsl:value select="text()" on the "summary" tag...

Note : I can't change the input xml format...

Any idea ?

EB

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.556 / Virus Database: 348 - Release Date: 26/12/2003
Nov 12 '05 #1
1 1117

"Eric" <er**@nospam.com> wrote in message
news:40***********************@news.free.fr...
Hi.

I've got an XML doc which looks like something like that :
<member name="F:Pssoft.Utilities.DB.EasyDB._orcPackagePref ix">
<summary>
The name of the package the procedure exists in in an oracle
database.
This is necessary because ref cursor parameters need to be
defined
in packages and are required for returning result sets.
Accessible via the <see
cref="P:Pssoft.Utilities.DB.EasyDB.OraclePackageNa me"/> property.
</summary>
</member>
and I would like, with a client XSL stylesheet to transform the "see" tag in a "a href" tag...
But I'm unable to do it (the text which is after the "see" tag is ignored
when I use a xsl:value select="text()" on the "summary" tag...

Note : I can't change the input xml format...

Any idea ?

text()
selects all text-node children of the current node.

<xsl:value-of select="someNode-Set"/>

always outputs *the first* node only of the someNode-Set.

This is what happens in your case.
The solution is to use
xsl:copy-of

instead of

xsl:value-of

Then you'll have:

<xsl:copy-of select="text()"/>

Dimitre Novatchev.
FXSL developer, XML Insider,

http://fxsl.sourceforge.net/ -- the home of FXSL
Resume: http://fxsl.sf.net/DNovatchev/Resume/Res.html
Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Perttu Pulkkinen | last post by:
No questions, but just consider if this is useful to you:-) but of course feedback & corrections are welcome. function php_mixed_to_js_value($jsname, $mixed) { if(is_null($mixed)) { return "\n...
1
by: YGUEL | last post by:
I try to parse an indented xml file with dom xerces c++. the file is like that : <root> <child1> <field1> blabla </field1> <field2> blibli </field2> </child1> <child2> <field1> blabla...
0
by: Chishun Kwong | last post by:
Hi, I would like to use xsd to restrict the text in a mixed, complex-type element. My reading so far seems to say that it is not achievable, is this true? I find it hard to imagine. For...
8
by: Xamle Eng | last post by:
One of the things I find most unnatural about most XML APIs is that they try to abstract both elements and text into some kind of "node" object when they have virtually nothing in common. The...
4
by: marcelf3 | last post by:
Hello, I am a novice/moderate html programmer and I wonder how to tell the browser from which start point and to which end point in the text will each page be printed. In other words, I have a...
9
by: Edward Diener | last post by:
I received no answers about this the first time I posted, so I will try again. My inability to decipher an MSDN topic may find others who have the same inability and someone who can decipher and...
8
by: Edward Diener | last post by:
By reuse, I mean a function in an assembly which is called in another assembly. By a mixed-mode function I mean a function whose signature has one or more CLR types and one or more non-CLR...
3
by: Kevin Burton | last post by:
I have an XSD that is converted from a DTD that I am trying to clean up. There is a section in the XSD that looks like: <xs:element name="partnerID"> <xs:complexType mixed="true">...
2
by: Fabian Braennstroem | last post by:
Hi, I would like to delete a region on a log file which has this kind of structure: #------flutest------------------------------------------------------------ 498 1.0086e-03 2.4608e-04...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.