Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   XML (http://www.velocityreviews.com/forums/f32-xml.html)
-   -   Q: my mistake or theirs? (http://www.velocityreviews.com/forums/t602012-q-my-mistake-or-theirs.html)

Martin Honnen 03-26-2008 05:23 PM

Re: Q: my mistake or theirs?
 
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/

Malcolm Dew-Jones 03-26-2008 05:52 PM

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.



All times are GMT. The time now is 11:54 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.