[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Getting useful data from this XML

Subject: RE: Getting useful data from this XML
From: "G.Wenden@xxxxxxxxxxxxxxx" <G.Wenden@xxxxxxxxxxxxxxx>
Date: Wed, 27 Apr 2005 12:22:52 +0100
RE:  Getting useful data from this XML
Thanks Michael.

I'm trying to do this using Oracle so I haven't got access to Saxon. I'm just
trying to find out if I can call an equivalent Oracle command but Google keeps
pointing me to
http://www.oracle.com/XSL/Transform/java/oracle.xml.parser.v2.Extensions which
doesn't seem to exist any more. I really wish they'd stop messing about with
their site.

-----Original Message-----
From: Michael Kay [mailto:mike@xxxxxxxxxxxx]
Sent: 27 April 2005 11:02
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  Getting useful data from this XML

They call this an XML feed?

I struggled with this at first, until I realized that they have not only
committed the crime of escaping the nested markup so that < is written as
&lt;, they have actually double-escaped it so that it is written as &amp;lt;
This must be the most perverse XML document I have seen for a long time.
Using disable-output-escaping will compensate for a single level of
unnecessary escaping in the input, but it won't compensate for two levels.

If your project allows you to use Saxon, I would suggest

        <p>1) <xsl:value-of select="saxon:parse(concat('&lt;d&gt;',
@description, '&lt;/d&gt;'))"
                              disable-output-escaping="yes"
xmlns:saxon="http://saxon.sf.net/"/></p>

which does the trick. Horrible input sometimes demands a horrible stylesheet.

Michael Kay
http://www.saxonica.com/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.