Xslt (Fragment)

whats the alternative to xslt (Fragment)

It depends what you want to do. The XSLT (Fragment) was part of the deprecated PHP server behaviors that have been removed from Dreamweaver. The underlying code was quite complex because it supported both PHP 4 and PHP 5, which handled XSLT in very different ways.
XSLT remains an official W3C specification, and you can use the PHP 5 XSL extension to transform XML documents. Dreamweaver has code hints for both XSLT and the PHP 5 XSL extension, but you're on your own as far as coding is concerned. XSLT is a rather esoteric language. I can use it for simple tasks, but not for more complex ones.
If you want to manipulate XML with PHP, you might want to check out a couple of my courses on lynda.com: Watch the Online Video Course Up and Running with PHP SimpleXML and Watch the Online Video Course Up and Running with the Standard PHP Library. They're not free, but you can get a 10-day free trial.

Similar Messages

  • XSLT Fragment question

    I am using an XSLT fragment in order to display an RSS feed on a webpage. The problem is that there is a large space at the top of my fragment. I would like to get rid of this space. Anyone know how to do this?

    Alright, I will try to post the code up here soon.
    On a side note, my RSS feeds post the time in a format with +0000 at the end. How can I localize the time in the feed?

  • XSLT Fragment - Help Needed

    Hi,
    I am trying to display data on a webpage from an RSS feed using a XSLT Fragment.
    I have managed to get it to work and display all the results, what I need to know is there any way I can limit the number of results shown on a page and add paging?
    Thanks

    Apologies, but, it seems i did not indicate the complete message structure for the document I am testing.
    Order (root)
    OrderHeader (1st parent segment)
    OrderNumber (child fields - 1st)
    Order.. (child fields - 2nd)
    Order...(child fields - 2nd)
    OrderDetail (1st parent segment)
    <fields under this segment were already mentioned from previous threads>
    OrderSummary (1st parent segment)
    NumOfLines (child fields - 1st)
    TotalAmount (child fields - 1st)
    Under Order, there are also OrderHeader and OrderSummary parent segment, other than OrderDetail, in which we focus our code.
    I've tried your code, but, the segments OrderHeader and OrderSummary and child fields under it were not appearing on my output.
    But it seems, I've already generated the correct code.
    Here it is,
    <?xml version="1.0" encoding="utf-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
         <xsl:output method="xml" version="1.0" media-type="xml" encoding="UTF-8" indent="yes"/>
         <xsl:template match="@*|node()">
              <xsl:copy>
                   <xsl:apply-templates select="@*|node()"/>
              </xsl:copy>
         <xsl:template match="/Order/OrderDetail/ListOfItemDetail/ItemDetail/BaseItemDetail/ItemIdentifiers/PartNumbers/BuyerPartNumber">
              <xsl:for-each select=".">
                   <BuyerPartNumber>
                        <PartNum>
                             <PartID>
                                  <xsl:value-of select="../ManufacturerPartNumber/PartID"/>
                             </PartID>
                        </PartNum>
                   </BuyerPartNumber>
              </xsl:for-each>
         </xsl:template>
    </xsl:stylesheet>
    I believe, the code you've suggested last time will accomodate only OrderDetail parent segment. Is this correct?
    Thanks!

  • Create XSLT Fragment

    Hi,
    I am creating an xslt fragment - File > New > XSLT
    fragment. I then select attach remote file on the internet and I
    have put the following url:-
    http://weblogs.macromedia.com/dev_center/index.rdf
    In the Bindings panel it says that it cannot locate tor parse
    the xml source.
    I would be grateful for any help.
    Many thanks,
    Polly Anna

    I have a default installation - i.e. I have not changed any
    settings
    regarding the XSLT settings (if one can even do that!
    I'm really unsure as to why the problem would arise.
    Maybe it would be worth your while contacting Adobe to see if
    someone there
    might be able to help?
    Sorry I can't be of more help!
    Cheers,
    Rob
    http://robgt.com/ [Tutorials and
    Extensions]
    Firebox stuff:
    http://robgt.com/firebox
    Skype stuff:
    http://robgt.com/skype
    Dell stuff:
    http://robgt.com/dell
    SatNav stuff:
    http://robgt.com/satnav

  • XSLT fragment: More than one?

    I am trying to build a page with tree feeds. I have made tree
    XSLT fragments, but when i put the second one one the page, i get
    the 500 error message.
    Is it possible to have more than one, and if the answer is
    yes. What am I doing wrong?
    Regards,
    Børre

    Hello John,
    What you can do it combine the result set from these two variables into one single element based on a new custom xsd which is the combination of these two elements. Aftet doing this you can achieve the req with one transformation. Below is the sample combined xsd based on the two result sets, in this case the two result sets are from two db adapters(data from 2 tables).
    <?xml version="1.0" encoding="windows-1252" ?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns="http://www.example.org"
    xmlns:db1="http://xmlns.oracle.com/pcbpel/adapter/db/top/dbadapter1"
    xmlns:db2="http://xmlns.oracle.com/pcbpel/adapter/db/top/dbadapter2"
    targetNamespace="http://www.example.org"
    elementFormDefault="qualified">
    <xs:import namespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/dbadapter1
    " schemaLocation="dbadapter1_table.xsd"/>
    <xs:import namespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/dbadapter2"
    schemaLocation="dbadapter2_table.xsd"/>
    <xs:element name="CompositeElement">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="CompTableElement">
    <xs:complexType>
         <xs:sequence>
              <xs:element ref="db1:root_element_from_db_adapter_1"/>
    <xs:element name="FormulaDetail">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="db2:root_element_from_db_adapter_2"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
         </xs:sequence>
         </xs:complexType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    After you create this xsd, create an element of this type and use this as a source in your transformation.
    Hope this helps
    Ram

  • Proper XSLT Fragment creation with blog post?

    I have been trying to establish individual rss feeds from Word Press posts into divs on dynamic php pages.
    So far I have created Dreamweaver 4 XSLT Fragment pages with an address to a remote blog on the internet. When creating the XSLT Fragment I have been entering the following addressing:
    http://xxxxx.com/blog/?feed=rss2
    The page is saved with .xsl. I then create a php dynamic page and add a div into which I bring the .xsl using Dreamweaver's Server Behavior 'XSLT Transformation'. My aim is to only have the text of that particular post from Word Press and thats it.
    When I view the php page in a browser I do see the last post on the blog but for the life of me I can not figure out how to bring in other prior posts. So far I have tried the following address changes after creating new categories in Word Press such as the category 'bio':
    http://xxxxx.com/blog/?feed=rss2&cat=bio
    I get the same results, the last post and thats it.
    Any help would be greatly appreciated. I am using MYSQL and php.
    Regards,
    Tony

    Project Management is part if the Business Center Users Only area and not everyone can access this space so I would avoid publishing there.
    It would be best to contact the space editors or moderators for SAP Portfolio and Project Management (SAP RPM, cProjects) and cFolders: click the people tab in the space to see who they are.
    Otherwise, if you're not sure, you have the option to create a personal blog: Create a Personal Blog

  • RSS feed in XSLT fragment

    I have used David Powers book as a guide to set up RSS feed
    content in PHP.
    Works fine but having one problem in showing html as text.
    <ul><li>
    Shown on this page on right iFrame -
    http://www.golftrailusa.com/listcourse.php

    JBWebWorks wrote:
    > I have used David Powers book as a guide to set up RSS
    feed content in PHP.
    > Works fine but having one problem in showing html as
    text.
    Try this:
    <p><xsl:value-of select="Product_Description"
    disable-output-escaping="yes"/></p>
    David Powers
    Adobe Community Expert, Dreamweaver
    http://foundationphp.com

  • Formatting a date in XSLT

    I am working with an XSLT fragment in dreamweaver and all
    seems to be working fine except when it comes to the date field in
    the XML it is transforming. It looks like dreamweaver has no
    options in it for formatting a date. Looking on the web it appears
    that XSLT doesn't have a function for that except if you are
    running XSLT 2.0??
    my XML looks like
    <pubDate>Wed, 04 Apr 2007 04:00:00
    +0100</pubDate>
    Can anyone help me just show only this part, "Wed, 04 Apr
    2007"
    thanks
    chris

    >I am working with an XSLT fragment in dreamweaver and all
    seems to be
    >working
    > fine except when it comes to the date field in the XML
    it is transforming.
    > It
    > looks like dreamweaver has no options in it for
    formatting a date. Looking
    > on
    > the web it appears that XSLT doesn't have a function for
    that except if
    > you are
    > running XSLT 2.0??
    Correct.
    > my XML looks like
    > <pubDate>Wed, 04 Apr 2007 04:00:00
    +0100</pubDate>
    > Can anyone help me just show only this part, "Wed, 04
    Apr 2007"
    With XSLT, this should work:
    <xsl:value-of select="substring(pubDate,1,16)"
    order="descending" />
    The substring function variables are:
    substring(node, postition of start character in string, total
    number of
    characters to include)
    It's akin to a TRIM string statement in server-side
    programming languages.
    -Darrel

  • XSLT Validation Question

    Well I'm diving into XSLT for the first time.  I've gotten the RSS feed to display just fine, but my problem is with the XHTML 1.0 strict validation and it could just be DW.
    What I have is a XSLT fragment file, saved as .xsl, with the feed.  I then used the server behaviors to add the fragment to my primary PHP document.  It seems that when DW adds this code into a PHP document it adds a script to the document and then includes the xsl file where I place it on the page.  However, the beginning of the XSL file shows:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    That is the line that the validator says won't validate because the only place it is allowed is at the beginning of the file but since DW is including the xsl fragment file in the middle of a file it won't validate.  Is the XSL fragment document still valid without that code at the top of it?

    Maybe this helps?
    http://www.objectsbydesign.com/projects/xslt/xhtml.html
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • Dreamweaver error on inserting an XSLT repeat region

    I am getting a Dreamweaver JavaScript error message when
    attempting to insert an XSLT Repeat Region under certain
    circumstances in Dreamweaver 8.0.2 for Windows. I have posted a
    full description on
    David
    Powers's friends of ED forum, but I wanted to report it here as
    well for confirmation.
    When creating a Repeat Region in an XSLT fragment, the
    following error message appears:
    While executing objetTag in XSLT_ForEach.htm, the following
    JavaScript error(s) occurred: At line 502 of the file "C:\Program
    Files\Macromedia\Dreamweaver
    8\Configuration\Objects\Server\serverObjectsCommon.js": Type Error:
    dwscripts.getBalancedSelection is not a function
    This error is entirely reproducible,
    but not if any PHP file has been open at any point since the
    XSLT fragment was opened.
    To illustrate:
    0) If Dreamweaver is running, exit completely.
    1) Start Dreamweaver.
    2) Create a new XSLT fragment, or open an existing one.
    3) In design view, place a field from an XML source into your
    fragment, select it, and then try to create an XSLT repeat region.
    The error message described above appears. Dismiss the error
    dialog, but keep the XSLT fragment document open.
    4) Create a new PHP document (or open an existing one), then
    close it.
    5) Back in your XSLT fragment, try again to create the repeat
    region. Now it works.
    If you open the PHP document
    before creating the XSLT fragment, you still get the error
    -- even if you leave the PHP document open. If you open the PHP
    document
    after you open the XSLT fragment, you do not get the error
    -- even if you close the PHP document before you create the XSLT
    repeat region.
    It looks like
    the key is to touch a PHP document at some point
    after the XSLT fragment is opened. So that is the
    workaround. My guess is that one of the included internal
    JavaScript scripts is not being sourced until a PHP document is
    opened, but this is probably not intended behavior.
    -jon

    quote:
    Originally posted by:
    Newsgroup User David Powers
    The only way that I know of is to disable all extensions,
    make sure that
    Dreamweaver is working correctly, and then enable extensions
    one by one
    until the error occurs again. You have then found the guilty
    party. You
    could also try it the other way round - disabling extensions
    one by one
    until it works OK. If you have recently installed a new
    extension, that
    may be the one to test first.
    Another thing you can try is this:
    You can try this to see if it solves your problem:
    Close Dreamweaver.
    Find C:\Documents and Settings\<username>\Application
    Data\Macromedia\Dreamweaver
    8\Configuration\WinFileCache-*.dat
    Delete the file (it's in a hidden folder, so you need to have
    enabled
    the option to see hidden files and folders).
    Restart DW. See if your problem has gone away.
    Thanks, David.
    Actually, what I was looking for was a way to trace what
    Dreamweaver is doing behind the scenes -- what scripts it is
    loading, and what errors those scripts throw. I had already tried
    uninstalling all my extensions and deleting my entire user
    configuration directory (not just the WinFileCache file), to no
    avail. I also tried running the "Repair" program from the Studio
    installation, but the problem persisted.
    So I resorted to uninstalling and reinstalling Dreamweaver
    from scratch from the original Studio 8 CD.
    Amazingly, even before I applied the 8.0.2 (or 8.0.1) update or
    installed any hotfixes or extensions, the same error message
    appeared.
    Before reinstalling, I took care to delete my user
    configuration directory (actually, I deleted the entire
    C:\Documents and Settings\{Username}\Application
    Settings\Macromedia\Dreamweaver 8/ tree. I took care to
    uninstall Dreamweaver 8 completely using the uninstall program, and
    I confirmed that the
    C:\Program Files\Macromedia\Dreamweaver 8\ directory was
    gone before reinstalling. In the outside chance that there was a
    problem with my install CD itself, I even tried installing twice --
    once from the install-image Studio 8 CD I downloaded from the
    Macromedia Store after upgrading from MX 2004, and once from the
    official Studio 8 CD I ordered by mail afterwards.
    So it's not my installation, it's not the hotfix, and it's
    not any of the extensions I've installed. It's a bona-fide bug.
    (What I can't figure out is why David was not able to reproduce
    it.)
    Next?
    -jon

  • DW 8.0.2 hot fix ref 207225 broke with php 5.2.6

    DW hotfix 8.0.2 which fixed the following issue (in php
    5.1.4),
    After upgrading to php 5.2.6 I am receiving the same mm xsl
    transform error
    I have had to downgrade my php to 5.2.5
    Please can this be investigated.
    XSL Transformation server behavior doesn't work with PHP
    5.1.4An XSLT fragment embedded in a PHP page using the XSL
    Transformation server behavior triggers the following
    MM_XSLTransform error when processed by a PHP 5.1.4 server:
    MM_XSLTransform error.
    http://newsrss.mysite.com/rss/rss.xml
    is not a valid XML document.
    Non-static method DOMDocument::loadXML() should not be called
    statically, assuming $this from incompatible context in file
    http://newsrss.mysite.com/rss/rss.xml.
    The error message incorrectly reports that the XML data
    source is not a valid XML document. The same page displays
    successfully when processed by a PHP 5.1.2 server. This problem
    occurs in Dreamweaver 8.0, 8.0.1 and 8.0.2 and is due to the use of
    a static function call that was newly deprecated in PHP 5.1.4.
    (Ref. 207225)

    bikeman01 wrote:
    > As I said the problem was fixed up to php 5.2.5. Going
    to php 5.2.6. has
    > broken this again. I don't know what has changed in php
    5.2.6 that might cause
    > this.
    >
    > Are you able to confirm this problem in php 5.2.6?
    No. I have installed PHP 5.2.6 on a different machine, and
    tested the
    XSL Transformation server behavior. It works exactly the same
    as in 5.2.5.
    > If confirmed, what is the process for raising a bug and
    will Adobe fix it?
    I cannot confirm the problem, so there's nothing I can see
    for Adobe to
    fix. However, the correct channel for reporting bugs is
    through the form
    at the following address:
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    Even if a problem can be identified, it's highly unlikely
    that Adobe
    would issue an updated version of the 8.0.2 hotfix. The
    hotfix worked
    perfectly with the version of PHP that was current at the
    time. Since
    then, CS3 has been released, and CS4 is being officially
    announced next
    Tuesday. If a fix is required (and I don't believe one is),
    the normal
    policy is to supply it for the current version of
    Dreamweaver, not one
    that is no longer on sale.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • MM_XSLTransform.class.php br / vs br

    Hi, I manged to fix a bug in the MM_XSLTransform.class.php server behavior as noted from David Powers book "The Essential Guide to DW..." this was to stop the error "XML Parsing Error: XML declaration allowed only at the start of the document" It worked and that validation error stopped.
    But I ran into another bug that stripped out my forward slashes to close the tag on the line break tags <br />, <br> thereby rendering non valid xhtml code So...
    I found an solution for that
    The only way to output a <br/> as <br/> will be to change the method to "xml" not "html" in the xslt fragment. It worked!
    But wait the "XML Parsing Error: XML declaration allowed only at the start of the document" error is back when I validate it
    Am I digging a hole for myself? Is there a better method or technique to rendering line breaks in my xslt file, that will make valid xhtml.
    Thanks in advance.
    IsleA-Row2_Seat7

    I have fianlly found the error I was encountering The omit-xml-declaration="yes" was missing
    <xsl:output method="xml" encoding="UTF-8" omit-xml-declaration="yes"/>

  • RSS Feeds on a webpage

    Hi DW people am trana have feeds from many different sources included on pages in the website that I am working on.
    What I want to achieve: I am looking to have one row with three columns that display the feed headlines in a 220px by 220px div container (you know all those headlines with pics). So am also trana make each container display like 5 headlines each from one source(usually feeds providers have more than one headline sometimes up to 20)
    So far I have created an XSLT Fragment and I have an XML data source binded to it. The thing is when it is displayed in the browser I have no control over it ie it just lists out all the feeds in several rows from the top of the page to the bottom. Then when I tried giving it some style to make it align in a row they just overlap one on top of the other.
    When I tried including the Fragment on my dynamic page DW automatically created MM_XSLTransform.class.php file and attached it to my page. I dont want to bore anyone but I have issues with this particular MM_XSLTransform.class.php file. I have tried including some functions of my own in it so as to give it more capabilty but really its a very long story...
    I have also experimented with Spry but then without the XSL style it just gives the raw data as output in the browser. When I tried having the XSL style along with the Spry it gives several errors at the start of the page like so:
    ( ! ) Deprecated: Function set_magic_quotes_runtime() is deprecated in C:\wamp\www\parseXMLs\includes\MM_XSLTransform\MM_XSLTransform.class.php on line 208
    ( ! ) Deprecated: Function set_magic_quotes_runtime() is deprecated in C:\wamp\www\parseXMLs\includes\MM_XSLTransform\MM_XSLTransform.class.php on line 215
    at the bottom list out the feeds!!!!
    The error appears on several lines (listing them all out here wont make sense).
    Am using DW CS4 on a windows 7 OS..
    Pls DW people I need some help with this one.. Speedy and valid response appreciated

    Oh my ...
    U really did this for me ?... I appreciate it SIR ... U even put my screen name up on the site.. Wow now I feel popular.. Thank u for all the hard work that u put into this. I really appreciate it..
    Where did the images go? And they do not link to the full story...
    U know wat this is my code.. I hope it gives a clear picture of wat I have been battling wt. See Below
    On page where feeds are to appear:
    <?php
    //XMLXSL Transformation class
    require_once('MM_XSLTransform.class.php');
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <style type="text/css">
    a:link{
        font-weight:100;
        color: #009;
        font-size:16px;
    a:link img{
        border:none;
    a:hover{
        font-size:17px;
        text-decoration:none;
        color: #966;
    a:visited{
        text-decoration: none;
        font-size:15px;
    a:visited:hover{
        font-size:17px;
        text-decoration:none;
        color: #963;
    #footer {
        padding: 0 10px;
        background:#DDDDDD;
    #footer #contentTickerarea1{
        overflow:hidden;
        margin: 10px auto;
    #contentTickerarea1 #headline1{
        margin-left:10px;
        float:left;
        width:200px;
        height:150px;
    #contentTickerarea1 #headline2{
        margin-left:10px;
        float:left;
        width:200px;
        height:150px;
    #contentTickerarea1 #headline3{
        margin-left:10px;
        float:left;
        width:200px;
        height:150px;
    #contentTickerarea1 #headline4{
        margin-left:10px;
        float:left;
        width:200px;
        height:150px;
    #footer #contentTickerarea2{
        overflow:hidden;
        margin: 10px auto;
    #contentTickerarea2 #headline5{
        margin-left:10px;
        float:left;
        width:200px;
        height:150px;
    #contentTickerarea2 #headline6{
        margin-left:10px;
        float:left;
        width:200px;
        height:150px;
    #contentTickerarea2 #headline7{
        margin-left:10px;
        float:left;
        width:200px;
        height:150px;
    #contentTickerarea2 #headline8{
        margin-left:10px;
        float:left;
        width:200px;
        height:150px;
    #footer #related{
        margin:15px auto;
    #footer #Botads{
        margin: 10px auto;
    #Botads #boxAds{
        overflow:hidden;
        margin: 5px auto;
    #boxAds #botAd1{
        margin-left:10px;
        float:left;
        width:200px;
        height:150px;
    #boxAds #botAd2{
        margin-left:10px;
        float:left;
        width:200px;
        height:150px;
    #boxAds #botAd3{
        margin-left:10px;
        float:left;
        width:200px;
        height:150px;
    #boxAds #botAd4{
        margin-left:10px;
        float:left;
        width:200px;
        height:150px;
    #botbannerSpace{
        margin: 5px auto;
        width:600px;
        height:100px;
    #footer #siteStats{
        margin: 10px auto;
        height: 60px;
    #footer #Botlinks{
        text-align:center;
        margin: 10px auto;
        height: 60px;
    #footer #Botlogo{
        margin: 0 2px;
    #Botlogo img{
        width:100%;
    #footer #BotsocialMedialinks{
        margin:0;
        padding: 1px;
        height:25px;
    #footer #copyInfo{
        overflow:hidden;
    #copyInfo .copy{
        float:left;
    #copyInfo .poweredBy{
        float:right;
    </style>
    </head>
    <body>
    <div id="footer">
    motorsports Headlines
      <?php
    $mm_xsl = new MM_XSLTransform();
    $mm_xsl->setXML("../XML Files/RSS Feeds/XSLT/newsdocinfo treeGoogle.xml");
    $mm_xsl->setXSL("../XML Files/RSS Feeds/XSLT/headlines.xsl");
    echo $mm_xsl->Transform();
    ?>
    <div id="contentTickerarea2">
    <div id="headline5">
    <!--End of #headline5--></div>
    <div id="headline6">
    <!--End of #headline6--></div>
    <div id="headline7">
    <!--End of #headline7--></div>
    <div id="headline8">
    <!--End of #headline8--></div>
    <!--End of #contentTickerarea2--></div>
    <div id="related">
    related
    <!--End of #related--></div>
    <div id="Botads">
    <div id="boxAds">
    <div id="botAd1">
    <!--End of #botAd1--></div>
    <div id="botAd2">
    <!--End of #botAd2--></div>
    <div id="botAd3">
    <!--End of #botAd3--></div>
    <div id="botAd4">
    <!--End of #botAd4--></div>
    <!--End of #boxAds--></div>
    <div id="botbannerSpace">
    <!--End of #botbannerSpace--></div>
    <!--End of #Botads--></div>
    <div id="siteStats">
    <!--End of #siteStats--></div>
    <div id="Botlinks">
    <!--End of #Botlinks--></div>
    <div id="Botlogo">
    <!--End of #Botlogo--></div>
    <div id="BotsocialMedialinks">
    <!--End of #BotsocialMedialinks--></div>
    <div id="copyInfo">
    <div class="copy">
    <!--End of copy--></div>
    <div class="poweredBy">
    Powered by
    <!--End of poweredBy--></div>
    <!--End of #copyInfo--></div>
    <!-- end #footer --></div>
    </body>
    </html>
    the XSLT Fragment(created with help from DW), here I use an XML Source from google I saved it to my PC so I dont always have to be on the internet to work wt it :
    <?xml version="1.0" encoding="utf-8"?><!-- DWXMLSource="newsdocinfo treeGoogle.xml" -->
    <!DOCTYPE xsl:stylesheet  [
        <!ENTITY nbsp   "&#160;">
        <!ENTITY copy   "&#169;">
        <!ENTITY reg    "&#174;">
        <!ENTITY trade  "&#8482;">
        <!ENTITY mdash  "&#8212;">
        <!ENTITY ldquo  "&#8220;">
        <!ENTITY rdquo  "&#8221;">
        <!ENTITY pound  "&#163;">
        <!ENTITY yen    "&#165;">
        <!ENTITY euro   "&#8364;">
    ]>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="html" encoding="utf-8"/>
    <xsl:template match="/">
    <div id="contentTickerarea1">
    <xsl:for-each select="rss/channel/item">
    <div id="headline1">
    <xsl:value-of select="description" disable-output-escaping="yes"/>
    <!--End of #headline1--></div>
    </xsl:for-each>
    <!--End of #contentTickerarea1--></div>
    </xsl:template>
    </xsl:stylesheet>
    According to the help docs of DW .. It is always good to put the style of the fragment on the dynamic page itself to avoiding giving the servers a hard time.. Incase you asking just how I created the fragment: New->XSLT Fragment-> DW then presents you wt d option of using a local source file or using one from the net.. whichever u choose the schema of the source appears in the Bindings panel...
    Then to add this Fragment on the dynamic page.. U open the page in DW.. click Server Behaviors->click the + then click XSL Transformation...
    Phew.... Thats a lot of info aint it?
    Run my code as it is and see wat happens ... u might have to get ur own source to work wt..
    On the dynamic page when u do as I have explained above DW creates a link to the MM_XSLTransform.class.php file ...
    I hope all of this helps SIR
    Message was edited by: HJWJ

  • XML entity

    This has probably been done to death but my google mojo has
    deserted me!
    I am creating an xslt fragment and the code is as follows:-
    <?xml version="1.0" encoding="utf-8"?><!--
    DWXMLSource="../xml/gt-tourlist.xml" -->
    <!DOCTYPE xsl:stylesheet [
    <!ENTITY nbsp "&#160;">
    <!ENTITY copy "&#169;">
    <!ENTITY reg "&#174;">
    <!ENTITY trade "&#8482;">
    <!ENTITY mdash "&#8212;">
    <!ENTITY ldquo "&#8220;">
    <!ENTITY rdquo "&#8221;">
    <!ENTITY pound "&#163;">
    <!ENTITY yen "&#165;">
    <!ENTITY euro "&#8364;">
    ]>
    <xsl:stylesheet version="1.0"
    xmlns:xsl="
    http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="html" encoding="utf-8"/>
    <xsl:template match="/">
    <p><xsl:value-of
    select="response/category/title"/>
    <br />
    <xsl:value-of
    select="response/category/description"/></p>
    <p>
    <xsl:for-each select="response/tours/tour">
    <a
    href="tour-info.asp?tour={@id}&amp;tourcat={title}"><xsl:value-of
    select="title"/></a><br />
    <xsl:value-of select="short_description"
    disable-output-escaping="yes"/>
    <xsl:value-of select="thumbnail"/> <br />
    <br />
    <br />
    </xsl:for-each>
    </p>
    </xsl:template>
    </xsl:stylesheet>
    The code validates fine and is as far as I can correct.
    However it
    doesn't like the part containing the entities which bugs out
    the page.
    If I remove this the page works fine.
    My problem is I need to correctly display text in English,
    French,
    German and Spanish which all have the own chartacter
    idiosyncracys.
    Can anyone pont out what I'm missing - it's driving me nuts!
    TIA!
    Buzby
    "There's nothing more dangerous than a resourceful idiot"

    hmm not still have the same problem. It worked until I checked
    it in to Version control system. so any suggestions R still
    welcome. (perhaps it uses file information somehow?)
    Robert Hede (guest) wrote:
    : Thanks for the attention.
    : I'v now solved the problem by copying the existing connection
    to
    : a new one. This I added to the the session control which gives
    : me an new xml file for the new connection (and this time it
    : worked ::-)
    : regards
    : rob
    : Robert Hede (guest) wrote:
    : : >>or you can simply re-create the workspace and project in
    the
    : : >>new directory
    : : That is what I did. First I just tried copying and when this
    : : did'n work I created a new workspace and project.
    : : Then I added the projectfiles.
    : : But still it keeps overwriting the old XML file each time I
    : make
    : : a small change like adding a new resultset. Hmmm.
    : : Regards
    : : Rob
    : : mark tomlinson (guest) wrote:
    : : : Yes, the workspace and projects contain path information.
    : You
    : : can
    : : : try editing them to alter this or you can simply re-create
    : the
    : : : workspace and project in the new directory.
    null

  • Set_magic_quotes_runtime is deprecated

    I used DWCS3 to produce an XSLT Fragment which pulls in an RSS Feed.  I keep getting error messages on my live server telling me:
    An error occurred in script '/home/mydomain/includes/MM_XSLTransform/MM_XSLTransform.class.php' on line 187:
    <br />Function set_magic_quotes_runtime() is deprecated
    Is there a new XSLTransform.class available that does not use this deprecated function?
    Any suggestions would be most appreciated.

    You are sure to find an answer here http://forums.adobe.com/search.jspa?resultTypes=DOCUMENT&resultTypes=MESSAGE&resultTypes=C OMMUNITY&resultTypes=TASK&resultTypes=PROJECT&resultTypes=SOCIAL_GROUP&resultTypes=COMMENT &peopleEnabled=true&q=MM_XSLTransform+error+in+PHP+page
    But why not try a Spry solution instead, have a look here http://pleysier.com.au/rss_example/
    Gramps

Maybe you are looking for

  • How can I safely and securely get files from my mac.

    I want something like LogMeIn Pro but for free. ther is a free version it DOES support mac BUT not gettong files. I want to be able to securely get files from my mac from school or anywhere whitout paying!! I HAVE had a look on google, no help.

  • Hard Drive is dead - deciding what to do next

    Hi all, My computer is a 12 inch Powerbook G4. My hard drive is dead. Here's what happened. Night before last my powerbook was freezing randomly. In retrospect the HDD was making some clicking noises but not consistently. Following morning it freezes

  • Extreme vs Express Card/34

    Hi. Driving around town to test out Airport Extreme on my MBP, I found several hotspots, including T-Mobile at a Starbucks. I didn't connect as I only wanted to see what's out there. My question is what purpose does the expansion slot for an Express

  • Dateien auf USB-Stick

    Hallo Adobe Experten, ich habe folgendes Problem: Ich arbeite immer mal wieder in der Firma an einem PC, auf dem die Creative Suite Master CS4 installiert ist. Ich selbst arbeite nicht mit den Programmen, habe aber ein Problem mit den Eigenheiten....

  • Message / Broadcast to other Developers for an Application?

    Hi All, In Apex 4.1.1, is there any way you can leave a broadcast message that would be visible to other developers when they login to a space and click 'Edit' on an application? I have been asked to work in an app that has an unknown number of other