Transformation - exclude-result-prefixes   doesn't prevent prefix 'xsl'

Hi all fellow sufferers.
I am generating an xsl document (yes, xsl) and to do that I do the following create element :
<xsl:element name="xsl:value-of">
        <xsl:attribute name="select"><xsl:value-of select="$varval"/></xsl:attribute>
</xsl:element>which basically works, however it does leave behind this damn prefix all through the generated xsl code, eg
<p class="P1">
    <xsl:value-of xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select="/PatientRecord/Demographics/name/@label"/>
</p>Thing is, I am using the exclude-result-prefixes directive in the stylesheet tag, .... (although, to be honest, I was surprised I would have this problem in just creating an xsl:value-of node!!)
Is there something else I should be doing to prevent this? Why is the annoying prefix being generated anyway! ?
please? someone?
thanks!

Hi,
Yes, I agree that my knowledge is probably inadequate. However, I can't help but wonder if I am not being misunderstood!
Let me explain one more time... (before I go off and by a good book.).
First, in the XSL document DOING the transformation, I had this tag at the root.
<xsl:stylesheet version="1.0"      xmlns:xsl="http://www.w3.org/1999/XSL/Transform">As you can see, this is correctly declaring the namespace, xsl.
If then I try to generate a xsl tag using this XSL document, I get what I have previously shown you.
<xsl:value-of xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select="/PatientRecord/Demographics/insurance"/>It was only when I first tried this and got those annoying (though perfectly legal) xmlns:xsl="http://www.w3.org/1999/XSL/Transform" attributes in the end result of my xsl:value-of tags, that I started playing around with the exclude-result-prefixes directive.
Now, I agree that I am getting well-formed XML, but yes, I don't want the bulk of the extra redundant attributes in my end result.
Surely there must be a way to generate XSL tags without them including these xmlns:xsl attributes? As the end document WILL have the xsl namespace declared!
Is there a way to declare a namespace for the result document perhaps?
The transforming XSL document already has one.
Thanks for your help.

Similar Messages

  • ParserException: XMLParser: Prefix 'xsl' is not mapped to a namespace

    Hi
    although I do not think this is an XI problem.. I hope that somebody with more XSLT experience that I might be able to help.
    I have a rather simple XSLT that is used to convert an EXCEL XML document into another XML format.  The XSL that I have worked when I tested it via standalone SAXON or MSXML transformation.
    But using the SAP product it gives me the error Prefix 'xsl' is not mapped to a namespace.
    Here is the top part of the XSL
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
    xmlns:sp="urn:schemas-microsoft-com:office:spreadsheet"
    xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
    xmlns:of="urn:schemas-microsoft-com:office:office">
    <xsl:output method = "xml"  version="1.0" encoding="ISO-8859-1" omit-xml-declaration="no" standalone="no" indent="yes"  />
       <xsl:template match="/">
         <dvabatch>
              <xsl:apply-templates select = "//of:DocumentProperties" />
         </dvabatch>
       </xsl:template>
    .... and so on.....
    and the top part of the XML source
    <?xml version="1.0"?>
    <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
    xmlns:o="urn:schemas-microsoft-com:office:office"
    xmlns:x="urn:schemas-microsoft-com:office:excel"
    xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
    xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
    xmlns:html="http://www.w3.org/TR/REC-html40">
    <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
      <Author>Peter Munt</Author>
      <LastAuthor>muntp</LastAuthor>
      <LastPrinted>2006-01-30T23:53:27Z</LastPrinted>
      <Created>2003-02-06T18:19:41Z</Created>
      <LastSaved>2006-03-01T03:59:11Z</LastSaved>
      <Company>DVA</Company>
      <Version>10.2625</Version>
    </DocumentProperties>
    <CustomDocum  ....
    ..... and so on .....

    Hi Peter,
    just for clarification:
    You zipped the XSL File and imported it into a Mapping Archive, then assigned the XSL Mapping to an interface mapping and receive the error in the Message Monitoring?
    Is that the case?
    regards,
    Peter

  • Problem with transform(source, result)

    Dear gurus,
    I have DOM document as source in my java program. The document has data for 1 record insert into a table.
    The insert will be done on the database side with dbms_xmlsave.insertxml(insctx, xmldoc) where xmldoc is my document and has VARCHAR2 type.
    I am looking for the correct syntax at the time when I do
    transformer.transform(source, result);
    so that I can pass 'result' to my database function that will do the insert with dbms_xmlsave.
    Can I have 'result' as of type 'String'?
    Thank you.
    Anatoliy

    Folks,
    Never mind - I found an example, I am using
    Writer outWriter = new StringWriter ( ) ;
    StreamResult outResult = new StreamResult ( outWriter ) ;
    transformer.transform ( source, outResult ) ;
    String strResult = null;
    strResult = outResult.getWriter ( ) .toString ( ) ;
    but now the problem is with the first line of the xml doc which is
    <?xml version = '1.0'?>
    The CallableStatement doesn't like the single quotes! What should I do - get rid of the first line OR change single quote with douable quotes OR may be something else?
    Thank you.
    Anatoliy

  • Syntax of a query rule to exclude results from site collection

    Hi,
    I'm trying to edit a query rule to exclude results from a site collection.
    I'm coping the "Local SharePoint Results" and want to add something like -path=http://server/sites/demo/*
    but somehow it doesn't work. can someone help with the exact syntax (should to write http, "", to write with {} etc.)
    keren tsur

    -SiteId:<guid>
    should work. Or:
    -path:http://server/sites/sitecollection
    Thanks,
    Mikael Svenson
    Search Enthusiast - SharePoint MVP/MCT/MCPD - If you find an answer useful, please up-vote it.
    http://techmikael.blogspot.com/
    Author of Working with FAST Search Server 2010 for SharePoint

  • What is the best alternative to exclude results from a specific site collection

    Hi,
    We want to exclude results from a specific site collection (for example http://server/sites/demo").
    A few ways are being considered:
    1. Copy the Local SharePoint Results Result Source and edit it not to include results from that site collection and then set the new custom result source as default.
    2. Edit the Search Results WP in the "Everything" tab to exclude those results (edit the query there)
    3. Set a query rule on "Local SharePoint Results" to exclude the results from the Demo Site Collection
    What is the best?
    keren tsur

    Hi Keren,
    Modifying the Local result  xlt will give you the most granularity but it is also arguably more challenging because of the "editing code" portion
    On your search page you could append a query string via the search webpart but that may not get granular enough.
    In the past I have used search scopes to exclude items in search results. Depending on the specific requirement it may be a quick and easy way to accomplish your task. it really depends on how ganular you need to get with excluding items from results.
    A search scope can be setup be going to:
    1. Site Actions (of the site collection you want to apply this to)
    2. Click on Site Settings
    3. Under site Collection Administration ( you have to be a site collection admin or farm admin to be able to see this section)
    4. click on "Search Scopes"
    5. Click on New Scope
    6. Name it, fill out any other options you want and click "ok"
    7. Click on your newly created search scope.
    8. click on "new rule"
    9. Fill out the fields based on your requirements and then click "OK"
    10. I believe you will want to wait for a search to index to run before this scope will return any results.
    Please let me know if you have any other questions.
    Good Luck!
    Alex

  • HT1551 My appletv is properly connected to wireless network, everything looks all right but it can't adjust the time and date. As a result it doesn't work.

    My appletv is properly connected to wireless network, everything looks all right but it can't adjust the time and date. As a result it doesn't work.

    Welcome to the Apple Community.
    Assuming this is not the first time you have used your Apple TV
    You might try restarting the Apple TV by removing ALL the cables for 30 seconds.
    Also try restarting the router.
    If the problem persists, try a restore, you may want to try the previous procedures several times before doing this.
    If restoring from the Apple TV doesn't help, try restoring from iTunes using a USB cable.
    If this is a new Apple TV, in addition to trying the above, it may also be that your network router is not allowing access to the timeserver, check that your router allows access over port 123.

  • Pear doesn't find php-xsl

    Hi,
    I wanted to install propel/propel_generator via pear:
    # pacman -S php-xsl
    Warnung: php-xsl-5.3.8-6 ist aktuell -- Reinstalliere
    Löse Abhängigkeiten auf...
    Suche nach Zwischenkonflikten...
    Pakete (1): php-xsl-5.3.8-6
    Gesamtgröße des Downloads: 0,00 MB
    Gesamtgröße der zu installierenden Pakete: 0,05 MB
    Installation fortsetzen? [J/n] j
    (1/1) Überprüfe Paket-Integrität [######################] 100%
    (1/1) Prüfe auf Dateikonflikte [######################] 100%
    (1/1) Aktualisiere php-xsl [######################] 100%
    # pear install -a propel/propel_generator
    propel/propel_generator requires PHP extension "xsl"
    No valid packages found
    install failed
    Somehow pear doesn't find the xsl extension.
    Does somebody know how to solve this problem?

    Had to uncomment "extension xsl.so" in /etc/php/php.ini

  • Gnome-Do result window doesn't appear

    Hi, I've just finished my first Arch installation and there's one last hiccup that's bugging me.
    Whenever I have Metacity composite turned on, the result window in Gnome Do doesn't show up when I press the down arrow, as it should. Even if I mark "Always show results window", the first time I open Do, the results window show up, but from the second on, no luck.
    If I disable composite everything works fine, but it's not because of the classic theme, as I've tried using it with composite on, but the same thing happens. Anyone got this behavior or knows how to fix it?
    Thanks.

    I had Compiz installed and tried it a little bit, but it wasn't working right (no window borders for some reason), and since I had no need for it besides making Gnome Do look better, seemed a bit like overkill so I uninstalled it. I never noticed this bug while I was trying it on... I'll try reinstalling it and making it work right and post back my results.
    Thanks
    [Edit]
    Using Compiz solved the problem, but the OS got a bit slower, even when I disabled pretty much everything I could... nothing unbearable, but noticeable. Besides, the Emerald themes aren't very nice...
    Last edited by Dhekke (2010-11-02 15:41:48)

  • Excluding result of one report in another report.

    Hell Experts,
    We have two DSOs as below:
    DSO1 - Contains Master list of customers
    DSO2 - Transactions of all customer.
    I want a report to show all customers who do not have any transactions.
    So thought of come up with all unique set of customers from DSO2 then read the DSO1 exclude this list (using replacement path), but raised that exclusion is not possible in replacement path.
    Is there a way I can do this in BEx.
    Any thoughts in this regard of great help.
    Regards,

    Hi,
    The soultion for this is using variable with processing type replacement path to be replaced with query results.
    See this link:
    http://help.sap.com/saphelp_NW70EHP1core/helpdata/en/2c/78a03c1178ad2ce10000000a114084/content.htm
    HTH,
    Marek

  • Java transform problem - resulting XML has wrong namespace on imported Node

    I use Document.importNode(Node, String) to import a node from one document into another document. I want to preserve the namespace of the imported node. This works ok if the imported node specifies xmlns, even xmlns="". But if the imported node does not specify a namespace, I would expect the resulting serialized XML to have xmlns="". However, this is not the case. I use javax.xml.transform.Transformer when I serialize the XML. After the transform, the imported node has the namespace of the document it is imported into, which we do not want. So how do I get the imported node to serialize out with xmlns="", even if it's not specified in the source document? I am using javax.xml.transform.* and javax.xml.parsers.DocumentBuilder from Java 1.4.2.
    Example of XML that node is imported into (imported node replaces PayloadPlaceHolder):
    <?xml version="1.0" encoding="UTF-8"?>
    <Envelope envelopeVersion="0.0.0" classificationLevel="Unclassified" xmlns="http://disa.gcss.mil/XMLGateway/Envelope">
    <Header>
    <UID>GM0000001</UID>
    <DateTime>2006-12-05T16:11:50Z</DateTime>
    </Header>
    <Status reason="FAILED" lastTransactionID="9999999999" inReplyTo="ZZZ9999999999">
    <LastMessageUID>ZZZ9999999999</LastMessageUID>
    </Status>
    <Payload>
    <PayloadPlaceHolder>
    </PayloadPlaceHolder>
    </Payload>]
    </Envelope>
    Example of XML with null namespace, test_segment is imported node:
    <?xml version="1.0" encoding="UTF-8"?>
    <test_segment>
    <name>test</name>
    </test_segment>
    Example of result XML with imported node (test_segment):
    <?xml version="1.0" encoding="UTF-8"?>
    <Envelope classificationLevel="Unclassified" envelopeVersion="0.0.0" xmlns="http://disa.gcss.mil/XMLGateway/Envelope">
    <Header>
    <UID>GM0000001</UID>
    <DateTime>2006-12-05T16:11:50Z</DateTime>
    </Header>
    <Status inReplyTo="ZZZ9999999999" lastTransactionID="9999999999" reason="FAILED">
    <LastMessageUID>ZZZ9999999999</LastMessageUID>
    </Status>
    <Payload>
    <test_segment>
    <name>test</name>
    </test_segment>
    </Payload>
    </Envelope>
    Here is the code to build the documents and transform the XML:
         Document document = null;
    Document dataBlockDoc = null;
    ByteArrayInputStream inStream = new ByteArrayInputStream
    (StringUtils.getBytes(xml.toString()));
    try {
    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    dbf.setNamespaceAware( true );
    DocumentBuilder parser = dbf.newDocumentBuilder();
    document =
    parser.parse(
    new InputSource(inStream ) );
    if (dataBlock != null) {
    inStream = new ByteArrayInputStream(StringUtils.getBytes(dataBlock));
    dataBlockDoc = parser.parse(
    new InputSource(inStream ) );
    Element root = document.getDocumentElement();
    Element payload = null;
    NodeList children = root.getChildNodes();
    //get Payload child from envelope document
    for (int i = 0; i < children.getLength(); i++) {
    if (children.item(i).getNodeName().equals("Payload")) {
    payload = (Element)children.item(i);
    break;
    //get the PayloadPlaceHolder
    Element payloadPlaceHolderElement = null;
    children = payload.getChildNodes();
    for (int i = 0; i < children.getLength(); i++) {
    if (children.item(i).getNodeName().equals("PayloadPlaceHolder")) {
    payloadPlaceHolderElement = (Element)children.item(i);
    break;
    Node newPayload = null;
    if (dataBlockDoc != null) {
    Element dataBlockElement = dataBlockDoc.getDocumentElement();
    //make new Payload element to replace old (empty) Payload
    newPayload = document.importNode((Node) dataBlockElement, true);
    payload.replaceChild(newPayload, payloadPlaceHolderElement);
    else
    payload.removeChild(payloadPlaceHolderElement);
    TransformerFactory tf = TransformerFactory.newInstance();
    Transformer nullTransform = tf.newTransformer();
    ByteArrayOutputStream oStream = new ByteArrayOutputStream();
    nullTransform.transform(                    new DOMSource( document ),
         new StreamResult( oStream ) );
    xml = new StringBuffer(oStream.toString());
    Thanks in advance.

    It appears that the problem is that the DOM serializer implementation in JDK 1.4 is not properly handling namespaces. Does anyone know of a workaround or alternate serializers we could use to serialize a DOM tree? I also need it to work with XSLT.
    Thanks.

  • Displaying cursor contents in results grid doesn't work anymore???

    Sql-Developer version 1.2.1 build MAIN-32.13
    It used to work such that the results would show an elipse (...) button which would bring up a grid with the results of the cursor, but it doesn't work now.
    select cursor(select sysdate from dual) from dual
    returns
    {<SYSDATE=19-SEP-07>,}
    Perhaps I'm missing a plugin???

    It looks like the cursor does not support dates. If you use to_char on your date it'll be fine. For example this works:
    SELECT DEPTNO, DNAME, CURSOR (SELECT ENAME
    FROM EMP
    WHERE EMP.DEPTNO = DEPT.DEPTNO)
    FROM DEPT
    WHERE DEPTNO = 10
    Bug logged.
    Regards
    Sue

  • Query result window doesn't show contents of collection types

    Hello,
    I use SQL Developer version 3.1.07.
    When inspecting the result of a query in the query window, for collection types containing object types, the contents of the object types are not shown. So you can see the collection having a number of object types, but the content of each object type is not displayed.
    In version 3.1.05 this worked well, so for object type the content is displayed.
    Could you import this functionality again in 3.1.07?
    Best regards,
    Joop

    Hi Joop,
    Have you tried double clicking on the grid cell? That should open an editor to show the individual member object details. If double clicking does not work in some random area of the grid cell, try (scrolling if necessary first) clicking on the extreme right edge of the cell.
    There is some history behind this change. It started with a performance issue populating the grid for SDO_GEOMETRY objects:
    Re: SQLD 3.1EA -  Fails to render resultset output containing SDO_GEOMETRY
    The performance fix resulted in complaints in this forum against the SQL Developer 3.1 production release and logging another bug:
    SQL Developer 3.0.04 - SDO_GEOM Issues
    As far as I know, there has been no resolution on this issue, so the 3.1.07.42 behavior will probably remain unchanged in the next release. But as one of the posts indicates, you can have multiple SQL Developer versions installed on one machine -- you may want to keep that 3.1.05 early adopter version installed in order to view the object details within collections.
    Regards,
    Gary
    SQL Developer Team

  • Result (SUMCT) doesn't work

    Hi,
    I have created a query and some formulas in it.
    one if this formulas is "Result of KeyFigure1". when I look in the result line for KeyFigure1 I see a different number from the one that is shown in the "Result of KeyFigure1" column.
    Example
    KF1  /  Result KF1
    1  /  9
    2  /  9
    3  /  9
    The result Line for the KF1 column is 6 (of course).
    I spected the query to show 6 in every row in the column "Result KF1", but it didn't.
    does any one knows why???
    thanks for the help.
    Mauricio

    HI,
    I guess the KF1 is being calculated with some formula. If so then the result too is getting calculated with this formula. Now it might be showing the result as summation and that may be because you have selected display result as total in the properties of KF. This setting is just for display purpose and SUMCT takes the actual value.
    I will sugeest you to try the following and see if it works:
    in the KF1 go to the exception aggregation tab and set it to total with reference char as the last characteristic in your query.
    Now try to use SUMCT and check.
    Regds,
    Shashank

  • Safari troubleshooting needed.  All search results are grayed out preventing me from clicking anything on the page.

    Safari Problem:  After doing a search using all three of the search engines the search results are grayed out not allowing me to click on anything on the page.  I also can't use the buttons to the left of the search box.   Please help.

    Go back to your home screen, then double  click your home button to open your multi-task window hold your finger on the Safari icon until it start to wiggle and a red minus sign is in the upper left corner. Tap the red minus sign and completely close Safari, then reopen it.

  • Bizarre highlight/drag result: copies, doesn't move

    when composing a new message or a reply, I highlight some text and then drag it to move it. but when I release the mouse, the text gets copied to where I had dropped it, instead of moving it. this is new behavior, only within the last week or so. cut/paste with the edit menu works as expected.

    I'm experiencing the same problem, but it's somewhat sporadic. Sometimes it works correctly, but mostly it doesn't. I can't say exactly when it began but I'm guessing it's been at least a month.
    It's very aggravating because I've come to use this time-saving feature a lot, but now having to go through the additional step of deleting the original snippet has reversed the time-savings -- and it's very hard to get out of the habit of using it!

Maybe you are looking for

  • Open file in the right folder...

    Hello I don't understand why when I run form builder and try to open file, don't open file in start folder. example if I run from command line c:\frmld.exe sometimes when I open file, the open folder is "c:\" but sometimes is "c:\something else" Than

  • My 2009 IMac is incredibly slow after upgrading to Yosemite.  Here is the

    I'm a reasonably competent computer user I upgraded to Yosemite recently and the computer is so slow I can't stand it. Below is my Etre report. I'd appreciate any advice. I may need techie talk dumbed down EtreCheck version: 2.0.11 (98) Report genera

  • Dump when switching to a different variant

    Hi all, I am a freshman for FPM, and currently I have met a issue when using it. You know I want to switch to a different variant, but when I click the switch button, dump occurs: Dump Info---- Note The followin error text was processed in SD7 the sy

  • Tips required from algorithm practitioners on how to learn algorithms

    Hello, I am trying to improve my programming skills and more particularly my proficiency at algorithms. I decided to start with advanced sorting algorithms such as the quick sort and shell sort. Here is what I did in order to practise: -Working with

  • MSI Gaming App Not Working - Fails to open after install - Want to use OC mode

    Hi, well today I just recovered my GPU from a near fry using MSI Afterburner. Luckily, with help from a moderator on this site, I was able to get it working again. I thought I fried it trying to OC it. I simply want to be able to switch between the m