XSL Fragment into HTML via Client-Side Transform

I am designing a site for a school. I searched and found the
post here from July 25, and I have also read the Dreamweaver
help file till I'm blue in the face. They talk all around the
answer but never definitively say if it's possible to do this.
Dreamweaver help mentions:
-- Workflow for performting client-side xsl transformations
Do one of the following:
In your Dreamweaver site, create an entire XSLT page. See
Creating entire XSLT pages.
Convert an existing HTML page to an entire XSLT page. See
Converting HTML pages to XSLT pages.
All the online tutorials show server-side transforms but I'm
not skilled in that...nor do I know if the hosting entity will
provide that level of access to their .NET server.
---- ok. that's the background of the situation. Now to my
problem. ---
We plan to have two mutually exclusive areas on the home
page, such as news & events, that will be updated by a single
school employee. The plan is to create two XML text files that one
teacher can update.
The XMLfiles will be manually uploaded to the web site and
the home page will read that data into properly formatted
information on the home page. I would greatly prefer to keep the
entire process as a client-side procedure.
I have created and linked XSL fragments to the XML data.
If I try to copy and paste code from the XSL fragment into
the index HTML page, I get nothing.
Success comes only after converting the home page into an
XSLT 1.0 file using Dreamweaver and copying and pasting the code
fromt he XSL file into the newly created XSLT file.
Hence my questions:
1 Can I bring these XSL fragments into an HTML home page or
do I have to convert it to XSLT?
2. If I must convert the HTML file to an XSLT file, can
people still type the website address in as www dot site dot com
and the XSLT file will open without anyone knowing the difference?
3. Can I even do this with a client-side transform?
4. Is it possible for one page to reference two separate XSL
fragments pointing to the two separate respective XML files?
Thank you very much for your help.

Hi Eric,
these are the cache control headers of the request that serves the XSLT:
GET http://www.carsten-leue.de/test/iframe_xslt/xslt.php HTTP/1.1
Accept: */*
Referer: http://www.carsten-leue.de/test/iframe_xslt/xslt.php
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko
Host: www.carsten-leue.de
DNT: 1
Connection: Keep-Alive
There does not seem to be a header involved that prevents caching.
You mention the "legacy ActiveX" control. In which sense is this control involved in the usecase? In my scenario I am pointing the browser to the XML document that has an associated stylesheet and the browser automatically executes the transform.
I am not explicitly triggering the transform via some script in the page.
Does the ActiveX control still play a role in this scenario?
Carsten

Similar Messages

  • Dynamic binding of jsf component to html on client side?

    Hi,
    I am developing a CRUD JSF page, which would allow user to create (add) rows of data (or delete/cancel the data added) without server hit. I am using some Javascript that would allow to create/delete inputs (right now simple html input text component) all on client side. However, I dont know how do I bind this data to JSF's inputText component. Also I would need to bind this data to an ArrayList of String. I am working on IRAD 7, so I guess that limits some of the open source JSF library, if they are available out there. I would appreciate any help.
    THanks.

    I think the standard JSF solution would be not to do the create/delete of inputs on the client side, but to do it on the server side.
    If that is not your cup of tea, I think that the standard components will not be sufficient. So you are looking at either not binding the inputs to a component and just getting the values via the request parameters or creating a custom component capable of dealing with this.

  • How can i load file into database from client-side to server-side

    i want to upload file from client-side to server-side, i use the following code to load blob into database.
    if the file is in the server-side, it can work, but if it in the client-side, it said that the system cannot find the file. i think it only will search the file is in the server-side or not, it will not search the client-side.
    how can i solve it without upload the file to the server first, then load it into database??
    try
    ResultSet rset = null;
    PreparedStatement pstmt =
    conn.prepareStatement ("insert into docs values (? , EMPTY_BLOB())");
    pstmt.setInt (1, docId);
    pstmt.execute ();
    // Open the destination blob:
    pstmt.setInt (1, docId);
    rset = pstmt.executeQuery (
    "SELECT content FROM docs WHERE id = ? FOR UPDATE");
    BLOB dest_lob = null;
    if (rset.next()) {
    dest_lob = ((OracleResultSet)rset).getBLOB (1);
    // Declare a file handler for the input file
    File binaryFile = new File (fileName);
    FileInputStream istream = new FileInputStream (binaryFile);
    // Create an OutputStram object to write the BLOB as a stream
    OutputStream ostream = dest_lob.getBinaryOutputStream();
    // Create a tempory buffer
    byte[] buffer = new byte[1024];
    int length = 0;
    // Use the read() method to read the file to the byte
    // array buffer, then use the write() method to write it to
    // the BLOB.
    while ((length = istream.read(buffer)) != -1)
    ostream.write(buffer, 0, length);
    pstmt.close();
    // Close all streams and file handles:
    istream.close();
    ostream.flush();
    ostream.close();
    //dest_lob.close();
    // Commit the transaction:
    conn.commit();
    conn.close();
    } catch (SQLException e) {

    Hi,
    Without some more details of the configuration, its difficult to know
    what's happening here. For example, what do you mean by client side
    and server side, and where are you running the upload Java application?
    If you always run the application on the database server system, but can't
    open the file on a different machine, then it sounds like a file protection
    problem that isn't really connected with the database at all. That is to
    say, if the new FileInputStream (binaryFile) statement fails, then its not
    really a database problem, but a file protection issue. On the other hand,
    I can't explain what's happening if you run the program on the same machine
    as the document file (client machine), but you can't write the data to the
    server, assuming the JDBC connection string is set correctly to connect to
    the appropriate database server.
    If you can provide some more information, we'll try to help.
    Simon
    null

  • Converting XML and XSL into HTML

    Hello!
    I'm designing a servlet class that merges an xml file and xsl file into html that will be sent to the client. But I don't understand how the (sparsely documented) javax.xml.transform.dom package works. An exception is generated for a missing "version" tag, when I've included one that has worked on client-side xml/xsl pages before. If it matters, I'm using Apache Tomcat/JDK 1.4.
    Here's the code:package mypackage.servlet.xml;
    import java.io.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.xml.transform.*;
    import javax.xml.transform.dom.*;
    import javax.xml.parsers.*;
    import org.w3c.dom.*;
    import org.xml.sax.*;
    public class XML2HTMLServlet extends HttpServlet {
         public void doGet(HttpServletRequest request, HttpServletResponse response)
          throws IOException, ServletException {
              response.setContentType("text/html");
              PrintWriter writer = response.getWriter();
              try {
                   openFile("D:/Webdev/xml2html/data.xml", "D:/Webdev/xml2html/style.xsl", writer);
              } catch (Exception e) {
                   e.printStackTrace(writer);
         private void openFile(String xmlPath, String xslPath, PrintWriter writer)
          throws IOException, ParserConfigurationException, SAXException,
          TransformerConfigurationException, TransformerException {
              File xmlFile = new File(xmlPath);
              File xslFile = new File(xslPath);
              TransformerFactory tFact = TransformerFactory.newInstance();
              DocumentBuilderFactory dbFact = DocumentBuilderFactory.newInstance();
              DocumentBuilder builder = dbFact.newDocumentBuilder();
              Document xmlDoc = builder.parse(xmlFile);
              Document xslDoc = builder.parse(xslFile);
              Node xmlDocNode = (Node)xmlDoc;
              Node xslDocNode = (Node)xslDoc;
              DOMSource xmlSrc = new DOMSource(xmlDocNode);
              DOMSource xslSrc = new DOMSource(xslDocNode);
              DOMResult htmlResult = new DOMResult();
              Transformer transformer = tFact.newTransformer(xslSrc);  // the exception occurs here!
    When it runs, it complains:
    javax.xml.transform.TransformerConfigurationException:
    javax.xml.transform.TransformerConfigurationException:
    javax.xml.transform.TransformerException:
    javax.xml.transform.TransformerException: stylesheet requires attribute: version at
    org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:767) at
    mypackage.servlet.xml.XML2HTMLServlet.openFile(XML2HTMLServlet.java:49) at
    ...etc...etc...
    data.xml contains:
    <?xml version="1.0"?>
    <document type="lecture">
         <title>Test Data</title>
         <section>
              <name>A New Section</name>
         </section>
    </document>
    style.xsl contains:
    <?xml version="1.0"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/">
         <html>
              <head>
                   <title><xsl:value-of select="document/title"/></title>
              </head>
              <body>
                   <xsl:apply-templates select="document/section"/>
              </body>
         </html>
    </xsl:template>
    <xsl:template match="section">
         <div><i>Section</i><br/><xsl:value-of select="name"/></div>
    </xsl:template>
    </xsl:stylesheet>I'm not sure the method calls above are what I want, so here's the client-side equivalent in Internet Explorer 5.0:
    function createStyledXMLDocument(xmlUrl, xslUrl) {
         var xmlDocument = new ActiveXObject("Microsoft.XMLDOM");
         xmlDocument.load(xmlUrl);
         var xslDocument = new ActiveXObject("Microsoft.XMLDOM");
         xslDocument.load(xslUrl);
         return xmlDocument.transformNode(xslDocument);
    }Any help would be greatly appreciated.

    Hi!
    I found the immediate answer with
    dbFact.setNamespaceAware(true);As for parser, I'm just using the default JDK install. But I'd like to hear more on Xalan. Is it independent open source? How does Xalan compare to whatever is default in JDK?
    Thanks

  • Formating XSL fragments

    I've created an xsl fragment to display RSS news feeds on my
    webpages. I have no problems inserting these into my PHP pages, but
    I am having trouble formatting them.
    I'm trying to create a box of fixed dimension (e.g. 200
    pixels wide by 300 high) which will auto scroll to show the rest of
    the repeating xsl. I can create a box using CSS, but I can't insert
    the xsl fragment into it (see
    here). If I try and do it
    the other way round (i.e. wrap the CSS formatting around the xsl
    fragment I get an error message.
    Help!

    There's a tutorial on creating client-side XSLT pages here: http://www.adobe.com/devnet/dreamweaver/articles/display_xml_data.html.
    I'm not sure if it will work with a template. Unfortunately, XSLT is a mind-bender that tends to do serious damage to the average brain. That's why most people use server-side technology to deal with XML.
    You mention that XSL isn't supported on your PHP server. What about SimpleXML? That's standard in all PHP 5 installations. Don't say your server is still running PHP 4. Support for PHP 4 was dropped nearly two years ago.

  • How to convert pdf into html?

    Hi,
    I am an amateur ASP developer. I want to create a pdf viewer like http://www.scribd.com. But I want to convert PDF into HTML on the server and then display it to the client. I want to convert into HTML so that it can be browsed from mobile devices also. And I need the text to be searched client side.
    Can anyone help me? Give me any direction or hint on how to achieve this or where to start? Have anyone done this before?

    Irosenth,
    Thank you very much for your kind reply.
    Well, can you give me a clue from where to start? Is there any server component? or can ASP.NET help? Or from where I can get some information on converting PDF into html on server side?
    Look, everybody was a starter sometime. I want to do this.

  • Auth via client SSL cert problem

    web server:iPlanet-WebServer-Enterprise/6.0SP2 B11/13/2001 00:49
    Am trying to setup ACL's to allow only certain clients access to web server via client side certificates.
    The LDAP entry does NOT have a "uid" attribute for the user's entry.
    Snooping show me that the LDAP server is returning the correct LDAP entry. Web server says "get_auth_user_ssl: unable to map cert to LDAP entry. Reason: ldap entry is missing the 'uid' attribute value"
    ACL files looks like
    version 3.0;
    acl "default";
    authenticate (user, group) {
    prompt = "foobar";
    method = "ssl";
    allow (read, list, execute,info) user = "*happy*" ;
    allow (write, delete) user = "all";
    Client cert CN looks like
    CN=happy.fmr.com test happy.fmr.com, OU=B2B, OU=Applications, O=FMR Co
    rp., C=US
    Any suggestions on how to allow only a user whose client CN contains a certain word? Also anyway to increse the debug level in the error logs, I know 6.1 can do more but we are limited to using 6.0
    Thanks
    Ashish

    Hi Faisal -- thanks for your reply. We had an offline chat where you said:
    >>>>>>>>
    These are the steps that u can follow
    Configure Weblogic Server for 2-way SSL
    mydomain> Servers> myserver>Keystores & SSL > Advanced Options
    Hostname Verification: None
    Two Way Client Cert Behavior: Client Certs Requested but not enforced
    mydomain> Domain Wide Security Settings> Realms> myrealm> Authentication Providers> DefaultIdentityAsserter
    Trusted Client Principals: provide CN of the Client Certificate
    Types: X509
    Details:
    Use Default User Name Mapper: Checked
    Default User Name Mapper Attribute Type: CN
    Base64Decoding Required: Checked
    Go the security realm and create a user wih the username as CN of the certificate
    Dont forget to Import the client cert's root CA in the trust store of WLS.
    If you still face issues, enable SSL Debug, securityATN debug and mail me the log file.
    <<<<<<
    I think there are a few minor config differences and I may have a different version of WLS to you -- the DefaultIdentityAsserter did not contain some of the fields you refer to. Instead I have an LDAPX509IdentityAsserter at the top of the Providers list, and I have made the changes there. My Providers list is:
    - LDAPX509IdentityAsserter
    - ActiveDirectory
    - DefaultAuthentictor
    - DefaultIdentityAsserter
    I suspect you might be thinking I don't have two-way SSL working at all, but I do, and that's not my question. I can successfully validate a client based on SSL certificate so all the trust stores etc are correct. My question is what happens when there is no client certificate presented by the client -- I want it to fall through to Basic authentication. The ActiveDirectory provider has a Control Flag="SUFFICIENT" setting and I was expecting the X.509 one to have a similar flag, but it doesn't. What controls whether the X.509 provider is REQUIRED/REQUISITE/SUFFICIENT/OPTIONAL in the chain, like the Active Directory one?
    Thanks for your time.
    -- Ben.

  • Client side Information via Web

    Anyone have any experience in accessing client side information
    via Web Forms. I need to pull user info from their machine vice
    the server, which is actually running the form.
    null

    Jeffrey Porter (guest) wrote:
    : I'm looking for information on how to construct the link
    between
    : the web server and the database such that the client is not
    : required to establish the database link. Everything is server
    : side with the client passing in values via web submits and
    : information returned via constructed HTML. I think the reason
    : this is all constructed this way is to fit into the JAVA
    security
    : model for web based application processes. I have constructed
    : the JDBCODBC bridging with the client making the dattabase
    : connection but now I want the connection shifted from the
    client
    : to the server.
    (1) In your system there are 3 nodes. The first one is the web
    client running a browser posting HTTP request to your web server.
    Your web server is a server to the web client but also a client
    to your Oracle database server. From the web client browser you
    cannot communicate directly with the Oracle server directly
    through JDBC. Your CGI scripts (you have not specified what web
    scripting tool you are using) written in Java may communicate
    with your Oracle database using the JDBC drivers available in
    your $ORACLE_HOME/jdbc/lib/classes111.zip file.
    (2) You do not need any JDBC-ODBC bridge to access Oracle
    databases. You should use the Oracle JDBC drivers.
    NM
    null

  • Client Side in Java...only html?

    Is the Client Side in the Java architecture only a Thin Client...i.e. an HTML Client.....or can it be a Windows Client...i.e. a non HTML thick Client...
    C++ allows one to develop apps using Windows Clients....Thick Clients..using Windows SDK, widgets etc...as well as thick logic
    Am I right in assuming that the Primary user interface in the Java world is HTML....that would necessarily mean that all apps have to be viewed with Browsers...
    regards
    steve

    Uh, no. Java programs can do (pretty much) any C++ program can do. Application servers are typically themselves built of Java, except for some OS-specific calls which they take care of via JNI. I have a thin XML-RPC server (no GUI) running my home-control system and a GUI-based client of that server running on my workstation as a stand-alone program.
    Java does provide some HTML-based implementations, such as Applets (mini-Java programs "embedded" in web-pages), JSPs and Servlets (dynamic server-side programs which communicate via HTML with browsers, just like ASP does).

  • How to use KeyChain API from client-side HTML scripting in Safari on iPad?

    I have a requirement where I need to add client-side scripting in an HTML page to be supported by Safari on iPad that creates a private / public key pair and that creates a CSR (Certificate Signing Request) in PKCS#10 or SPKAC format that can be sent to a certification authority server using form HTTP/POST that will then return the generated certificate.
    I initially thought that I could simply use the HTML 5 tag <keygen> which can do exactly what I need, but unfortunately this tag is not at all supported on mobile Apple devices like iPad or iPhone, so I have to look for another solution.
    I have noticed that the KeyChain tool should be available on iPad using the documented API, but I have no idea based on the documentation whether the API can be called from client-side HTML scripting on iPad.
    Question : is it technically possible using the functionalities and API's exposed on an iPad to implement what I just described in HTML client-side scripting? If so, do you have some links with useful information that can help me on my way?

    I have a requirement where I need to add client-side scripting in an HTML page to be supported by Safari on iPad that creates a private / public key pair and that creates a CSR (Certificate Signing Request) in PKCS#10 or SPKAC format that can be sent to a certification authority server using form HTTP/POST that will then return the generated certificate.
    I initially thought that I could simply use the HTML 5 tag <keygen> which can do exactly what I need, but unfortunately this tag is not at all supported on mobile Apple devices like iPad or iPhone, so I have to look for another solution.
    I have noticed that the KeyChain tool should be available on iPad using the documented API, but I have no idea based on the documentation whether the API can be called from client-side HTML scripting on iPad.
    Question : is it technically possible using the functionalities and API's exposed on an iPad to implement what I just described in HTML client-side scripting? If so, do you have some links with useful information that can help me on my way?

  • Load data from File on Client side (via Sqlplus)

    Server OS: RedHat, Oracle 10g rel 2.
    I am trying to load data from OS .txt files to clob field.
    I am able to do this successfully using:
    Oracle DIRECTORY
    BFILE
    DBMS_LOB.loadclobfromfile packageIssue is: this only works if my files and DIR are on database server.
    Is it not possible "load clob from file" from client side, files being on client and exec command via SQLPlus. Is there any other option to load data from client side.
    Thanks for any help.

    Options:
    1) Search for OraDAV
    2) Learn about Application Express.

  • Transforming xml file with different elements into HTML

    hi all !
    i have an xml object that has been generated from database using java. the xml file has numerous elements that have been merged into single file. all elements have been got from different table :-
    <?xml version = '1.0' ?>
    <ROWSET>
    <ROW id= "1">
    <EMPID>1</EMPID>
    <EMPADDRESS>H 3 STREET 4</EMPADDRESS>
    <EMPPHONE>98764653</EMPPHONE>
    </ROW>
    <ROW id="2">
    <EMPID>5</EMPID>
    <EMPQUAL>GRADE 12</EMPQUAL>
    <EMPGRADE>A</EMPGRADE>
    </ROW>
    </ROWSET>
    (its just a sample data, might not be wel formed)
    as it shows that each element "ROW" has data corresponding to different employee and with different details. actually these elemnt are the updates in an employee profile that have to be communicated to a distant located database. what i need is a tranformation into HTML so that the recieving user can view this file as html with relative headings of corresponding tables.
    (the schema at both ends is exact replica)
    any help in this regards would be obliging.

    thank you bro!
    the xml file has been created by importing multiple files resulted from XSU into a master file in java. we are running a web based project in a distributed environment. so i would need to make this page appear in a web browser with ACCEPT and REJECT command buttons as the receiver is the approving agent. what all i have thought of so far is to create a style sheet with templates of all heading of each table from where the data is coming from and then run a check on what table the data is from and place that specific heading on the entry. the style sheet would be placed at both ends so only the xml file will be transported and transformation would be done auto.
    i hope it works. but am not sure wether its the right approach or not.

  • Xmltype.transform and xsl:output method="html"

    hi, 9.2.0.4 winxp,
    i wonder whether xmltype.transform regards any output instructions in the stylesheet. i requested any of xml, html and text and always got the same result?
    any ideas or hints to more info?
    regards peter

    Sorry for jumping in on this thread, but I have a question regarding you reply. I have an XSL stylesheet that preforms XML to HTML conversion. Everything works correctly with the exception of those HTML tags that are not weel formed. Using your example if I have something like:
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="html"/>
    <input type="text" name="{NAME}" size="{DISPLAY_LENGTH}" maxlength="{LENGTH}"></input>
    </xsl:stylesheet>
    It would render HTML in the format of
    <HTML>
    <input type="text" name="in1" size="10" maxlength="20"/>
    </HTML>
    While IE can handle this Netscape can not. Is there anyway to generate completely cross browser complient HTML with XSL?
    Thanks!

  • Transform EVENT_DATA into HTML message

    Hi!
    I am trying the following:
    From Interconnect we receive an event message containing the common view message in xml format in the EVENT_DATA section of the event.
    I want to use an XML transformation to transform the message into HTML and have a department confirm the contents of the message.
    To do this, I used XML transformation to generate a new event type attribute with the XHTML contents of the message.
    How can I attach this to a message?
    Jeroen van Veldhuizen

    After your XML Transform Activity you could transition to a function activity that performs a setitemattr to populate an item attribute with the contents of the 'NewDocument' Message attribute, then transition to a notification activity that has a message attribute that refers to the item attribute set from the function activity.

  • Form2email - cgi2email question (client side only forms sent via email?)

    I am being asked to design a standard questionnaire form.
    They want
    the answers to the form be emailed.
    However, they host their own pages on a microsoft-based
    server that
    has no perl library, VB library, etc.
    Is there a way to do a form and generate an email totally on
    the
    client side with no server based application needed
    whatsoever?
    Thanks,
    -Dan

    You can create a simple mailto: link on the form that will
    invoke the client
    mail program but it is not that reliable. However if they are
    hosting using
    IIS it does have built in mail capability via CDO using an
    ASP page, or it
    can be set up to run ASP.Net with its mail handling scripts.
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "Canned Heat" <[email protected]> wrote in message
    news:[email protected]..
    >I am being asked to design a standard questionnaire form.
    They want
    > the answers to the form be emailed.
    >
    > However, they host their own pages on a microsoft-based
    server that
    > has no perl library, VB library, etc.
    >
    > Is there a way to do a form and generate an email
    totally on the
    > client side with no server based application needed
    whatsoever?
    >
    > Thanks,
    > -Dan
    >

Maybe you are looking for

  • Applications Roles in FMW (Enterprise Manager) OBIEE11g

    Hi, Please specify, how to migrate new created Application roles in production from Test @Enterprise Manager (FMW). Regards Rahul

  • My iMovie keeps crashins unexpectedly.

    I open iMovie and when I click on a project file it crashes.  What do I do?  I have the crash log if someone wants to see it.

  • This book has been returned.  Loan not on record

    I've used Adobe Dig Ed on a Windows XP computer for years with no problems.  I recently switched over to Windows 8.1, and reinstalled Adobe DE, and went through the authorization step for the computer.  Then I downloaded two books from the library, a

  • Pie Chart Slice Label Percentage + Label

    Hi, i'm newbie of Publisher 11. I've a problem. I've created a DataSet and a report containing a pie chart using wizard of Publisher as written at following link: http://allaboutobiee.blogspot.it/2012/04/working-with-bi-publisher-11g-part3.html My ch

  • Using third party plug-ins

    Hi. How do I use third party plug-ins. I've just installed SSL LMC-1 component, but i can't find in the insert pop-up menu on the Logic channel strip.