ASP Error: 70
Description: Permission denied
Source: Microsoft VBScript runtime error

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

question regd. xsl translation...

Subject: question regd. xsl translation...
From: xsl user <zeelium@xxxxxxxxxxx>
Date: Wed, 02 Jul 2003 09:39:58 -0700
xslt translation

Hi All,


 I'm new to the mailing list and I'm facing problems with the
 html generation using xsl. following is the snippet of the xsl
 template that behaves differently under different translators:

  <xsl:template match="xxxx">
    <xsl:element name="pre">
      <xsl:variable name="report" select="."/>
      <xsl:value-of select="$report"/>
    </xsl:element>
  </xsl:template>

Following is the snippet of the data that works with saxon
and generates the right html.

  <message><xxxx>
      1.    isctmp1
      1.1.    FastEthernet1/0/0  ---  10.2.2.161
      1.2.    FastEthernet3/1/1  ---  10.2.3.97
      6.22.    FastEthernet1/1  ---  10.2.3.86
  </xxxx></message>

but the jsp page i'm trying to modify uses jdk packages for
xsl translation and it does not generate the html when i
pass the above data, but when the following data is passed
it processes the templates and generates the html right.

data-set-that-works-with-jdk

  <message>&lt;xxxx&gt;
      1.    isctmp1
      1.1.    FastEthernet1/0/0  ---  10.2.2.161
      1.2.    FastEthernet3/1/1  ---  10.2.3.97
      6.22.    FastEthernet1/1  ---  10.2.3.86
  &lt;/xxxx&gt;</message>

I think saxon is doing the right thing as i remember
reading from your FAQ that entity references are for
parser's convenience only, and they are not xml elements.

Could you experts clarify it for me please ?

Also, which component is the source of the above behavior ?
is it SAX parser or xslt processor ?

Is anyone aware of a workaround i could use to fix the problem
without having to use a different processor like saxon ?
(the jsp page is pat of a common component that affects many)

the jsp page uses the jdk 1.4 packages:

org.xml.sax.*
javax.xml.transform.TransformerFactory
javax.xml.transform.Transformer
javax.xml.transform.Source
javax.xml.transform.stream.StreamSource
javax.xml.transform.stream.StreamResult

Thanks in advance. I appreciate your help.

//rick


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.