forward slash problem in xsl ams xsql
Posted
by Peter Kaleta
on Stack Overflow
See other posts from Stack Overflow
or by Peter Kaleta
Published on 2010-05-18T23:49:27Z
Indexed on
2010/05/18
23:50 UTC
Read the original article
Hit count: 405
Hi
I have simple xsql
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="zad1.xsl" ?>
<page xmlns:xsql="urn:oracle-xsql" connection="java:comp/env/jdbc/mondialDS">
<xsql:query max-rows="-1" null-indicator="no" tag-case="lower" rowset-element="continents">
select name as continent
from mondial_user.Continent
order by 1
</xsql:query>
</page>
which gives me a list of continents with "australia/oceania" among them
i use XSL on above xsql :
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- Root template -->
<res>
<xsl:template match="/continents">
<xsl:for-each select="row">
<re>
<xsl:value-of select="continent"/>
</re>
</xsl:for-each>
</xsl:template>
</res>
</xsl:stylesheet>
ANd firefox throws error : on wrong formated xml document with :
AfricaAmericaAsiaAustralia/OceaniaEurope
-----------------------------------^
Help apreciated
© Stack Overflow or respective owner