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

Q: my mistake or theirs?

Some literal text in my style sheet is not being output, I'm not sure why.
I'm using the Oracle xml routines.
declare
xmlclob varchar2(4000);
xslclob varchar2(4000);
the_xml XMLType;
the_xsl XMLType;
the_doc XMLType;
begin

xmlclob := '<top><w>this_one</w><w>that_one</w></top>';

xslclob :=
'<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">

<xsl:template match="w">
<xsl:copy>
BEFORE
<xsl:apply-templates select="@*|node()"/>
AFTER
</xsl:copy>
</xsl:template>

<xsl:template match="@*|node()">
<xsl:copy><xsl:apply-templates select="@*|node()"/></xsl:copy>
</xsl:template>
</xsl:stylesheet>';

the_xml := XMLType.createXML(xmlclob);
the_xsl := XMLType.createXML(xslclob);
the_doc := the_xml.transform(the_xsl);
:docclob := the_doc.getCLOBval();
end;
/
print docclob

<top>
<w>this_one
AFTER
</w>
<w>that_one
AFTER
</w>
</top>
Why is the word BEFORE not included in the output?

Feedback appreciated.
Thanks.

Mar 26 '08 #1
1 1400
Malcolm Dew-Jones wrote:
Some literal text in my style sheet is not being output, I'm not sure why.
I'm using the Oracle xml routines.
Why is the word BEFORE not included in the output?
I don't see a problem with your stylesheet so you might want to raise
the issue on an Oracle support forum or mailing list.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Mar 26 '08 #2

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

Similar topics

3
by: Deltones | last post by:
Hi all, I'm just getting into Python/wxPython/Pythoncard and I'm trying the tutorial from this page: http://pythoncard.sourceforge.net/walkthrough1.html Is it me who's totally dense or...
27
by: wooks | last post by:
http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&item=5206943952
3
by: E. Robert Tisdale | last post by:
Something that calls itself Paul Fame wrote: > In my University course teaching Java, my lecturer just claimed that > operator overloading in C++ was a mistake and that > Java's lack of operator...
43
by: Mr.Tickle | last post by:
// Run this code and look for his obvious error by the compiler namespace FlagCheck { using System; enum SomeFlags {
41
by: Greenhorn | last post by:
Hi, We see that C is a bit liberal towards non-standard syntax, for e.g. when i tried <printf("string1", "string2 %d", v1);> in Dev-C++, it printed string1 and no error was raised, is this the...
2
by: Martin | last post by:
Isn't it a mistake for XmlSiteMapProvider to use the url as the node key? What if you want to change the url? The node and the url should be decoupled, via a distinct key which does not change. ...
3
by: Deven Oza | last post by:
Hello everybody, I need your help to write the following procedure. I did it but dont get the out put so please help me that where I made mistake. I written the procedure just after the...
3
by: MIUSS | last post by:
Hi! I am modifying some part of source code and I now I am suspended by one thing I really don't understand and I got no one experience with it. I got fully working source code (it reports no...
3
by: Jeff Kish | last post by:
Hi. I deleted a stored procedure (one I had written) out of the master database. I thought I had accidentally put it there, then I got to thinking.. what if it is normally reflected there, and...
7
by: CuTe_Engineer | last post by:
hii, can you tell me plzz why my programme doesn`t work ,i don`t have any errors and every thing is fine but i don`t know why it`s not working , soo plz can you help me un finding my mistake i...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...

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.