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]

XSL

Subject: XSL
From: "Jagan K V" <Jagan_Kamavarapu@xxxxxxxxxxx>
Date: Mon, 5 Apr 2004 14:25:43 +0530
barcode generate
Hello everyone,

I am new to xsl.
I have to display both an image and a barcode on a
pdf file using xsl-fo.
I am pasting the code of the xsl file below the body of this mail.
When I remove the block code related to the image from xsl file,
I am able to display the barcode alone on pdf.
Similarly, when I remove the code related to the barcode generation,
I am able to display the image alone on pdf.

However, if I don't remove any code and use the below xsl for displaying both
image and barcode,
 I get a pop-up saying "Some files may harm your computer. If teh file
information looks suspicious,
or you fully do not trust the source, do not open or save this file" I clicked
on Open
button and I get a message that "Internet explorer cannot download from
localhost".

Kindly, let me know on how to ressolve this problem.

Thanks and regards,

Jagan



<xsl:stylesheet version="1.1" xmlns:xsl="
http://www.w3.org/1999/XSL/Transform" xmlns:fo="
http://www.w3.org/1999/XSL/Format"
xmlns:barcode="org.krysalis.barcode.xalan.BarcodeExt" xmlns:common="
http://exslt.org/common" xmlns:xalan=" http://xml.apache.org"
exclude-result-prefixes="barcode common xalan">
  <xsl:output method="xml" version="1.0" omit-xml-declaration="no"
indent="yes"/>

 <!--  variable holding Copyright text for the footer  -->

  <xsl:template match="Bundle">
   <xsl:apply-templates select="bundleName"/>
  </xsl:template>

  <xsl:template match="Bundle">
   <fo:root xmlns:fo=" http://www.w3.org/1999/XSL/Format">
    <fo:layout-master-set>

    <fo:simple-page-master master-name="simpleA4" page-height="59.7cm"
page-width="31cm"
      margin-top="2cm" margin-bottom="2cm" margin-left="2cm"
margin-right="2cm">
     <fo:region-body/>
    </fo:simple-page-master>
   </fo:layout-master-set>
   <fo:page-sequence master-reference="simpleA4">
    <fo:flow flow-name="xsl-region-body">
     <fo:block space-after="75mm">
      <fo:external-graphic src="testImage.bmp" />
     </fo:block>
     <fo:block font-size="16pt" font-weight="bold" space-after="5mm">Bundle
Information
     </fo:block>
     <fo:block font-size="10pt">
      <xsl:value-of select="bundleName"/>
     </fo:block>

     <xsl:variable name="barcode-cfg">
         <barcode>
            <upc-a/>
         </barcode>
       </xsl:variable>

       <fo:block space-after="75mm">
         <fo:instream-foreign-object>
           <xsl:copy-of select="barcode:generate($barcode-cfg,
'71078710112')"/>
         </fo:instream-foreign-object>
       </fo:block>
   </fo:flow>
   </fo:page-sequence>
   </fo:root>
  </xsl:template>
</xsl:stylesheet>
--+------------------------------------------------------------------

Current Thread
  • XSL
    • Jagan K V - Mon, 5 Apr 2004 04:58:39 -0400 (EDT) <=

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.