This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: accessing info outside current context


We just upgraded to a newer version of Discoverer.  The old version had a
bug in the "Show XML" feature, so the document I thought I was processing
was not correct at all.  After a workbook is executed the xml no longer
contains the workbook names.  However, I can view the contents of the
original xml document containing the workbook names by going to URL:

http://hbcora59/psr/Viewer?_but=Connect&db=dwbspt11&nlsl=en-us&in=dwb&_in=dw
b&lc=false&us=rpekarek&fm=xml&ac=rpekarek

Is there any way to use the document command using a URL instead of a
directory path?

Thanks,

Rose

-----Original Message-----
From: Jeni Tennison
To: Pekarek, Rose (MN10)
Cc: xsl-list@lists.mulberrytech.com
Sent: 10/18/01 10:03 AM
Subject: Re: [xsl] accessing info outside current 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]