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

Re: accessing info outside current context

Subject: Re: accessing info outside current context
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Thu, 18 Oct 2001 16:03:32 +0100
servlet image outside context
Hi Rose,

> Discoverer uses a servlet to dynamically create the xml document I
> am processing. According to Oracle support, the document resides in
> memory only, so I don't think I can access it with a document
> command. The only way I can view the generated xml document is to go
> to an Oracle supplied URL. When I compare the xml document before
> and after executing a workbook, there are differences, but both
> workbooks are still listed, and should be accessible.

It seems likely that the 'differences' in the XML you get before and
after executing the workbook are causing the problems with the
stylesheet. Perhaps the document is structured slightly differently,
or perhaps the name attributes have spaces in them, or names are
capitalised differently or namespaces have been added. All of these
differences would mean that the same paths that worked with the
'before' XML wouldn't work with the 'after' XML.

What I suggest is that you post the relevant parts of the 'after' XML.
The relevant parts are all the ancestors of the workbook elements that
you're interested in, including any attributes (and namespace
declarations) that exist on them. The safest bet to get an accurate
picture of what the stylesheet is receiving is to use an identity
template:

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

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.