Exit a loop from custom xslt

My custom xslt is as follows which I am using in my map:
<?xml version="1.0" encoding="utf-16"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:var="http://schemas.microsoft.com/BizTalk/2003/var"
                exclude-result-prefixes="msxsl var s0 userCSharp" version="1.0" xmlns:s0="http://Students.Student.SourceSchema"
                xmlns:ns0="http://Students.Student.DestinationSchema"
                xmlns:userCSharp="http://schemas.microsoft.com/BizTalk/2003/userCSharp">
  <xsl:output omit-xml-declaration="yes" method="xml" version="1.0" />
  <xsl:template match="/">
    <xsl:apply-templates select="/s0:Students" />
  </xsl:template>
  <xsl:template match="/s0:Students">
    <ns0:DestinationDetails>
      <xsl:for-each select="StudentTransactions">
        <xsl:if test="FName='H'">
          <xsl:variable name="var:v104" select="ID"/>
          <xsl:for-each select="/s0:Students/StudentTransactions[FName='D' and ID_Detail=$var:v104]">
            <xsl:variable name="Detail_String" select="string(GL_String/text())"/>
            <xsl:if test="$Detail_String!=''">
              <Details>
                <HeaderSegment>
                </HeaderSegment>
              </Details>
              </xsl:if>
          </xsl:for-each>
        </xsl:if>
      </xsl:for-each>
    </ns0:DestinationDetails>
  </xsl:template>
  <msxsl:script language="C#" implements-prefix="userCSharp">
    <![CDATA[
public string StringConcat(string param0)
   return param0;
]]>
  </msxsl:script>
</xsl:stylesheet>
I want to break the following loop : 
<xsl:for-each select="/s0:Students/StudentTransactions[FName='D' and ID_Detail=$var:v104]">
when  <xsl:if test="$Detail_String!=''"> condition is true.
Any kind of  help would be appreciated.
Prakash

Got your point. The counter is not incrementing because, varialbes are immutable in XSLT, i.e. they can't be changed. I think what you need to do is use the position(). With the
resultset of For-each, using position()=1 in <xsl:if test="position() =1 , you would just access the first record of the resultset
from for-each
If my understanding of your problem is correct, then the following XSLT shall work for you.
<?xml version="1.0" encoding="utf-16"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:var="http://schemas.microsoft.com/BizTalk/2003/var" exclude-result-prefixes="msxsl var s0 userCSharp" version="1.0" xmlns:s0="http://CallTemplate_Increment.StudentSchema" xmlns:ns0="http://CallTemplate_Increment.DestinationStudentSchema" xmlns:userCSharp="http://schemas.microsoft.com/BizTalk/2003/userCSharp">
<xsl:output omit-xml-declaration="yes" method="xml" version="1.0" />
<xsl:template match="/">
<xsl:apply-templates select="/s0:Students" />
</xsl:template>
<xsl:template match="/s0:Students">
<ns0:DestinationDetails>
<xsl:for-each select="StudentTransactions">
<xsl:if test="FName='H'">
<xsl:variable name="var:v104" select="ID"/>
<xsl:variable name="count" select="0"/>
<xsl:for-each select="/s0:Students/StudentTransactions[FName='D' and ID_Detail=$var:v104]">
<xsl:variable name="Detail_String" select="string(GL_String/text())"/>
<!--<xsl:if test="$Detail_String!='' and $count=0">-->
<xsl:if test="position() =1 and $Detail_String!=''" >
<xsl:variable name="var:v1" select="userCSharp:StringConcat(string(FName/text()) , string(LName/text()))" />
<Details>
<ID>
<xsl:value-of select="ID/text()" />
</ID>
<FullName>
<xsl:value-of select="$var:v1" />
</FullName>
<Cost>
<xsl:value-of select="Cost/text()" />
</Cost>
</Details>
<!--<xsl:value-of select="$count + 1"/>-->
</xsl:if>
</xsl:for-each>
</xsl:if>
</xsl:for-each>
</ns0:DestinationDetails>
</xsl:template>
<msxsl:script language="C#" implements-prefix="userCSharp">
<![CDATA[
public string StringConcat(string param0, string param1)
return param0 + param1;
]]>
</msxsl:script>
</xsl:stylesheet>
If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

Similar Messages

  • Error while using custom xslt: Cannot find the script or external object that implements prefix 'ScriptNS0'.

    Hi,
    We had a complex map. Because of some requirement, we used custom xslt on this map. Somehow at runtime that custom xslt is giving below error:
    Cannot find the script or external object that implements prefix 'ScriptNS0'.
    I checked below links, it seems this is a bug in Biztalk 2010/Visual stuio 2010.
    http://sandroaspbiztalkblog.wordpress.com/2012/07/29/biztalk-mapper-patterns-calling-an-external-assembly-from-custom-xslt-in-biztalk-server-2010/
    The above link suggest to add a xml element in the .btm file. I tried that as well but no luck. Can anyone suggest me reason and solution for this?
    Thanks, Girish R. Patil.

    When using the Custom XSLT option, you have to maintain the Extension Xml yourself, just as you would for inline custom Xslt that calls external Assemblies.
    Docs:
    http://msdn.microsoft.com/en-us/library/aa547368.aspx
    Sample:
    http://blog.vertica.dk/2013/03/20/using-custom-xslt-in-biztalk/

  • How to use macro to pull data from custom infotype?

    Hi all,
    Is rp_provide_from_last p9004 space pn-begda pn-endda. works?
    i am getting all zeros .
    is using macros possible pull data from custom infotype? or only select?
    Regards
    sas
    For LDB PNPCE
    get peras:

    Hi,
    Try the following Macro it will solve out your problem,
    DEFINE rp_provide_from_last.
      rp_found = '0'.
      clear: rp_tabix.
      loop at &1.
        if &2 ne space.
          check &1-subty eq &2.
        endif.
        if &1-begda le &4 and &1-endda ge &4.
          rp_found = '1'.
          exit.
        endif.
        if &1-begda le &4 and &1-endda ge &3.
          rp_tabix = sy-tabix.
        endif.
      endloop.
      if rp_found eq '0'.
        if rp_tabix ne 0 .
          rp_found = '1'.
          read table &1 index rp_tabix.
        else.
          clear: &1.
        endif.
      endif.
    END-OF-DEFINITION.
    rp_provide_from_last <p????> space <begda> <endda>.
    Best Regards,
    Faisal

  • Hi all.When pressed play and make some changes in loop (eg fade in fade out) are very slow to implement, and also the loops from the library are very slow to play, corrects the somewhat self so is the Logic??

    hi all.When pressed play and make some changes in loop (eg fade in fade out) are very slow to implement, and also the loops from the library are very slow to play, corrects the somewhat self so is the Logic??

    Hey there Logic Pro21,
    It sounds like you are seeing some odd performance issues with Logic Pro X. I recommend these troubleshooting steps specifically from the following article to help troubleshoot what is happening:
    Logic Pro X: Troubleshooting basics
    http://support.apple.com/kb/HT5859
    Verify that your computer meets the system requirements for Logic Pro X
    See Logic Pro X Technical Specifications.
    Test using the computer's built-in audio hardware
    If you use external audio hardware, try setting Logic Pro X to use the built-in audio hardware on your computer. Choose Logic Pro X > Preferences > Audio from the main menu and click the Devices tab. Choose the built in audio hardware from the Input Device and Output Device pop-up menus. If the issue is resolved using built-in audio, refer to the manufacturer of your audio interface.
    Start Logic with a different project template
    Sometimes project files can become damaged, causing unexpected behavior in Logic. If you use a template, damage to the template can cause unexpected results with any project subsequently created from it. To create a completely fresh project choose File > New from Template and select Empty Project in the template selector window. Test to see if the issue is resolved in the new project.
    Sometimes, issues with the data in a project can be repaired. Open an affected project and open the Project Information window with the Project Information key command. Click Reorganize Memory to attempt to repair the project. When you reorganize memory, the current project is checked for any signs of damage, structural problems, and unused blocks. If any unused blocks are found, you will be able to remove these, and repair the project. Project memory is also reorganized automatically after saving or opening a project.
    Delete the user preferences
    You can resolve many issues by restoring Logic Pro X back to its original settings. This will not impact your media files. To reset your Logic Pro X user preference settings to their original state, do the following:
    In the Finder, choose Go to Folder from the Go menu.
    Type ~/Library/Preferences in the "Go to the folder" field.
    Press the Go button.
    Remove the com.apple.logic10.plist file from the Preferences folder. Note that if you have programmed any custom key commands, this will reset them to the defaults. You may wish to export your custom key command as a preset before performing this step. See the Logic Pro X User Manual for details on how to do this. If you are having trouble with a control surface in Logic Pro X, then you may also wish to delete the com.apple.logic.pro.cs file from the preferences folder.
    If you have upgraded from an earlier version of Logic Pro, you should also remove~/Library/Preferences/Logic/com.apple.logic.pro.
    Restart the computer.
    Isolate an issue by using another user account
    For more information see Isolating an issue by using another user account.
    Reinstall Logic Pro X
    Another approach you might consider is reinstalling Logic Pro X. To do this effectively, you need to remove the application, then reinstall Logic Pro X. You don't have to remove everything that was installed with Logic Pro X. Follow the steps below to completely reinstall a fresh copy of Logic Pro X.
    In the Finder, choose Applications from the Go menu.
    Locate the Logic Pro X application and drag it to the trash.
    Open the Mac App Store
    Click the Purchases button in the Mac App Store toolbar.
    Sign in to the Mac App Store using the Apple ID you first used to purchase Logic Pro X.
    Look for Logic Pro X in the list of purchased applications in the App Store. If you don't see Logic Pro X in the list, make sure it's not hidden. See Mac App Store: Hiding and unhiding purchases for more information.
    Click Install to download and install Logic Pro X.
    Thank you for using Apple Support Communities.
    Cheers,
    Sterling

  • How to find the user exits and BADIS from SPRO

    Hi all,
    please let us know how to find the User exits or BADIS for an application from SPRO.
    Regards,
    Madhavi

    Hi Varisetty,
    Finding user exits and BAdis from SPRO can be cumbsersome. In most instances you know the standard SAP program and want to check (find) an exit called in the flow of the transaction. You can do this as follows:
    For User Exit:
    Put "/h" in the command box (to start debugging)
    Execute your transaction
    When you enter debugging - put a breakpoint at statement
    CALL CUSTOMER-FUNCTION
    the control will stop at all calls to User Exits
    For BAdi (it's simpler)
    Go to class CL_EXITHANDLER in SE24
    Enter method GET_INSTANCE
    Put a breakpoint in this method
    Run your standard transaction - control will stop at all BAdis called within the flow since this method is used to check BAdi implementations before invoking them
    Also, if you want to find enhancements by package - go to SE80, enter the package and check function groups starting with X - those contain function exits (conventional user exits). For BAdis in a package, there is normally a separate tree node (under the package) for Enhancements hence clearly identifiable.
    Cheers,
    Adi

  • Copy mode of payment from customer master data to sales order,

    Hi Gurus,
    Hope all is fine.
    I have a small doubt. If we want to transfer the mode of payment from customer master data to sales order, do we have to use Exit- MV45AFZZ.
    Can't we transfer the data without the exit?

    Hi,
    I have tested this in sand box.Thought the customer master is having payment method ( payer ) ,It is not copying from customer master to sales order but if you maintain manually in sales order ,it is copying into billing document level.FYI see below snap shot.
    Note:If you want it from customer master into sales order,may be you need to take help of abaper on this.
    BR's,
    Naren

  • Text from customer master to delivery header

    Hi Experts,
    Here we have a requirement, Text what we maintain in the customer master (like Shipping point address) text need to be trigger at Delivery header,
    1) Is it possible in standard text determinaction or we need to go for any user exits?
    2) If we want to use user exits what are the user exits we have to copy the data from customer master to delivery header.
    NOTE: Client doesnt want to use the text from sales order or scheduling agrements.
    Please help me to fill the requirement .
    best regards,
    chiranjeevi

    Hi Chiranjeevi,
    It is possible to achieve this with standard text determination procedure itself.
    Goto transaction VOTXN and in the "Delivery --> Header" create a new access sequence with the Customer Master Text IDs (like the ID which contains the Shipping Point address) from which the text is to be selected. Once done, create or make use of an existing text determination procedure available under Delivery Header and then assign the access sequence to the Delivery Header Text ID into which the Customer Master text is to be copied. Maintain additional settings as necessary. This will ensure that the text from customer master is directly copied over to the delivery header.
    There are many documents already available (search in Google) to explain the text determination process if you need help with the same.
    Regards,
    Som

  • Payment terms based on specific dist.channel, division and Plant but not from customer master.

    Dear All
    I have a requirement,
    Generally payments terms from customer master will flow to sales order. but here my requirement is to get a different payment terms based on specific distribution channel, division, customer  and plant those are there in sales order but not from customer master. is there any user exit or functional module to fulfill this requirement, or any other suggestion appreciated.
    Thanks,
    Reddy

    This Problem you can solve without user exit too.
    The Customer master data itself can solve the problem.
    You can maitain diffrent Payment Term as per the sales area (Dist.Ch+Div+S.org) of customer master.
    and each sales are wise u can change the plant also.
    You just need to set your logic with the combination of sales are and plant. And need to assign which payment term should determine to sales order.
    If you are rasing sales order with X sales area relavent to that payment term will trigger.
    Hope above logic will work, otherwise you can go with user exit.

  • CALLING CUSTOME ROUTINE IN VOFM FROM CUSTOMIZED SCREEN INME21N

    Hi Experts,
    I need to update KBETR and KWERT values present in 'Conditions Tab' in Purchase Order (ME21N/ME22N).
    I have created a new customer tab in which we enter amount field and  percentage filed. When user enters some value in this and clicks on 'Conditions Tab', calculation has to be done and the calculated value has to be appeared across a specific condition type.as i am new to abap  i dont know how to create routine and pass data to routine in vofm from customised tab in me21n .
    can anyone tell me how to pass data from custome screen in ME21N to VOFM routine.
                                                                                                                                                                          Thank's in advance

    In transactions SMOD and CMOD, press F4
    - SMOD - in the F4 select "Information System", in the pop-up window there is a "Component Name" in the "Additional Selection" block,
    - CMOD - in the F4 select "Information System", in the pop-up window there is a "Exit Name" in the "Additional Selection" block,
    First time you may have to change the initial display of the F4 from standard to All selection variant via the expand icon or shift-F7 (or via user settings)
    Regards,
    Raymond

  • Pulling Over/Under delivery Tolerances from Customer Master into CMIR

    Is it possible to pull the over/under delivery tolerance values from the customer master info the CMIR?  I don't understand why the delivery priority flows from the cusotmer master to the CMIR but the Over/Under Tolerances do not.  I've looked at SAPMV10A ... it looks like I might be able to use an enhancement spot to add the necessary logic but I've not used this type of user exit and I'm not sure if there is a better solution (like some configuration that I'm missing ???)  Any advice would be appreciated.  Thanks!

    Hi Mallisa,
    I tried creating a CMIR record and both Delivery Priority and Over/Under Delivery tolerance were copied in CMIR record from Customer Master.
    BR,
    Anshul Chohan

  • Orchestration Variable in Custom XSLT in Biztalk Map

    Hi,
    I have a custom xslt for mapping HL7 messages to CRM fields.
    For one field, I 'll get the data from DB so it is stored in my orchestration variable. How can I use that variable in my custom xslt file? Thanks.
    Regards,
    Lakshmi

    Hi Laxme,
    As far I know, there is no way you can access Orchestration variable in custom XSLT.
    Workaround : you can create a intermediate message with a field and assign the variable value (the data from DB) to it and later use message assignment to assign this value to the field which you want to the mesage which you created using custom
    xslt.
    Maheshkumar
    S Tiwari|User
    Page|Blog|BizTalk
    2013: Inserting RawXML (Whole Incoming XML Message) in SQL database

  • Error Dummy items from Customizing have to be excluded @ Liquidity Planner

    Dear Experts,
    I want to try Liquidity Planner Calculation, using FLQAD,
    when in selection screen i aready insert :
    - Paying Company Code
    - 1st Derivation Step : Query Sequence
    - 1st Derivation Step : Exit Module
    - 2st Derivation Step : Buffer Item
    - 2st Derivation Step : Exit Module
    - Test Run
    - Detail List
    so when Execute / F8, i get error message "Dummy items from Customizing have to be excluded"
    please help me.
    thx you.

    You get this error if the liquidity items in FLQC2/FLQC13 and buffer item field of flqad selection screen are same.
    Buffer item refers to liquidity items assigned to vendor/customer recon accounts.
    To avoid this error donot use liquidity items from FLQC2/FLQC13 in FLQAD buffer item.

  • Set a container element inside class to exit a loop

    Hi,
    I want to set a container element inside a class to exit a loop.
    The element is marked as import/export parameter and the binding from the task to the container exists as well.
    The loop has a condition  &finish& = X but I cannot exit the loop. Looks like the value gets never updated in the container.
    When i am using a container operation to set the element its working but i want to do this out of my method in the class.
    Is it not possible to change a container element inside a loop without using a container operation?
    Thanks,
    Christoph

    Hi,
    Using the container operation is a good method to solve the problem. But if you intend to do that in the method coding itself then you will have to have it as the export parameter of the method. You can view all the import and export parameters of a method by going to the Business Object Builder (SWO1) and then choose the method and click on the "Parameters" Button. Once you are done with the interface of the method use that method in the workflow builder as a task and in the binding there are two rows. One for the import that occurs just below the container elements and the export parameters appear below the import in a separate window. Make sure you have the binding set there too as this is where you can transfer the container elements back to the workflow container from the task container and it should work. Maybe you are missing that in the binding.
    Hope it helps,
    Sudhi

  • Using Custom XSLT File for html output file

    Hi all
    I have probably rather a silly question but I have not found a solution yet.
    I would like to use a custom XSLT file, which I already have and is working, within a Biztalk Map. The custom XSLT is generating a html file out of an xml file. However I'm not able to succeed so far because I have probably some issues in defining the correct
    target schema. 
    The output that I get at the moment is just a duplicate of the input, probably because I have used the schema for source and target.
    So my question is, how do I create a html file out of an xml with a custom XSLT file?
    Sorry if this is a nooby question but I couldn't find an answer.

    Hi Jerome,
    Sorry, your question is not very clear. "I would like to use a custom XSLT file, which I already have and is working, within a BizTalk Map. The custom XSLT is generating a html file out of an xml file" -  You have an XSLT which you use for map and how
    its generating a HTML file? Are you using something like this?
    Changing an XML Response to an HTML output using a Map
    If your requirement is to output the html file from the received XML file using XSLT, then use a custom pipeline at send port like XSLT Transform Component and provide the XST which would change the XML to HTML. Here is an example of an XST which I have
    used in the past, which converts the received OrderResponse XML to nicely formatted HTML.
    <?xml version="1.0" encoding="utf-8"?>
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://biztalk.orderapp.schemas.OrderResponse">
    <xsl:template match="/">
    <html>
    <body>
    <TABLE BORDER="0" cellspacing="2" cellpadding="2" width="90%">
    <xsl:apply-templates select="/ns0:OrderResponse"/>
    </TABLE>
    </body>
    </html>
    </xsl:template>
    <xsl:template match="/ns0:OrderResponse">
    <TR>
    <TD colspan="8" align="center">
    <H1>Order Confirmation</H1>
    </TD>
    </TR>
    <TR>
    <TD colspan="2">
    <B>Order no : </B>
    </TD>
    <TD colspan="6" align="left">
    <xsl:value-of select="ns0:OrderHeader/ns0:OrderNumber/text()"/>
    </TD>
    </TR>
    <TR>
    <TD colspan="2">
    <B>Supplier : </B>
    </TD>
    <TD colspan="6" align="left">
    <xsl:value-of select="ns0:SupplierDetails/ns0:SupplierName/text()"/>
    </TD>
    </TR>
    <TR>
    <TD colspan="2">
    <B>Supplier Order no : </B>
    </TD>
    <TD colspan="6" align="left">
    <xsl:value-of select="ns0:SupplierDetails/ns0:SupplierOrderNumber/text()"/>
    </TD>
    </TR>
    <TR>
    <TD colspan="2">
    <B>Account no : </B>
    </TD>
    <TD colspan="6" align="left">
    <xsl:value-of select="ns0:OrderHeader/ns0:CustomerAccountNumber/text()"/>
    </TD>
    </TR>
    <TR>
    <TD colspan="2">
    <B>Order date : </B>
    </TD>
    <TD colspan="6" align="left">
    <xsl:value-of select="ns0:OrderHeader/ns0:OriginalOrderCreationDate/text()"/>
    </TD>
    </TR>
    <TR>
    <TD colspan="2">
    <B>Delivery date : </B>
    </TD>
    <TD colspan="6" align="left">
    <xsl:value-of select="ns0:OrderHeader/ns0:DeliveryDate/text()"/>
    </TD>
    </TR>
    <TR>
    <TD colspan="2">
    <B>Order Status : </B>
    </TD>
    <TD colspan="6" align="left">
    <xsl:value-of select="ns0:OrderHeader/ns0:OrderStatus/text()"/>
    </TD>
    </TR>
    <TR>
    <TD colspan="8">
    <BR></BR>
    </TD>
    </TR>
    <TR>
    <TD valign="top">
    <B>Line</B>
    </TD>
    <TD valign="top">
    <B>Code</B>
    </TD>
    <TD valign="top">
    <B>UOM</B>
    </TD>
    <TD valign="top">
    <B>
    Avail<BR></BR>Qty
    </B>
    </TD>
    <TD valign="top">
    <B>
    Line<BR></BR>Price
    </B>
    </TD>
    <TD valign="top">
    <B>
    Line<BR></BR>Status
    </B>
    </TD>
    </TR>
    <xsl:for-each select="ns0:LineItems">
    <xsl:for-each select="ns0:LineItem">
    <TR>
    <TD valign="top">
    <xsl:value-of select="ns0:LineNumber/text()"/>
    </TD>
    <TD valign="top">
    <xsl:value-of select="ns0:ProductCode/text()"/>
    </TD>
    <TD valign="top">
    <xsl:value-of select="ns0:UnitOfMeasure/text()"/>
    </TD>
    <TD valign="top">
    <xsl:value-of select="ns0:Quantity/text()"/>
    </TD>
    <TD valign="top">
    <xsl:value-of select="ns0:UnitPrice/text()" />
    </TD>
    <TD valign="top">
    <xsl:value-of select="ns0:LineStatus/text()" />
    </TD>
    </TR>
    </xsl:for-each>
    </xsl:for-each>
    <TR>
    <TD colspan="8">
    <BR></BR>
    </TD>
    </TR>
    </xsl:template>
    </xsl:stylesheet>
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • XML-webpart, XML-list query and custom XSLT

    I am managing some lists on SharePoint 2007. And I need to present different parts of my lists using the XML-query (XMLDATA=TRUE) URL for the list.
    The XML from the URL is fine, and I am able to save the XML as a file and used custom XSLT to present the list as needed...locally.
    The Saved XML-file is however static, and subsequent changes to the content of the list in SharePoint will not be reflected.
    I am currently attempting to load the XML directly from the "XMLDATA=TRUE" URL via the "link" form in the XML WebPart. But for some reason I get "Failed to apply XSLT to the content." for this operation.
    I was worried for a while that for some reason the XSLT was buggy. But testing the following offline works fine:
    ./msxsl.exe -xw -o  list.html list.xml list.xslt
    Where "list.xml" is the XML-file displayed and saved from the (XMLDATA=TRUE) URL for the list.
    -To attempt a debug on XSLT issues I even entered a bare XSLT in the WebPart:
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/">
    </xsl:template>
    </xsl:stylesheet>
    But sadly this does not seem to have any effect on the Error-message displayed.
    I would appreciate very much if someone somewhere had a hint on where to go from here.
    /Mikael

    Well...it seems the obvious slipped my mind I'll close the question.
    I guess it's a bit far fetched to ask SharePoint to serve the URL as an XML-file if the result of the call to the URL is not an XML-file itself.
    But I am still working for a fix somehow.
    It seems I have to dig into the Sphagetti code of Sharepoint to create a single page using a customer Master to hold the XML-file via ASPX...
    Seems a bit cumbersome...but it may just work.

Maybe you are looking for