Need help with text() processing in XSL

Hello,
I have an xml that contains such text in my xml:
before<a>inside</a>after
and an xsl that transforms it to HTML (a cut for xsl):
<xsl:template match="a">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="text()">
<xsl:value-of disable-output-escaping="yes" select="."/>
</xsl:template>
The result is: inside before after
but I need: before inside after
It seems it happens 'cause of this: http://www.w3.org/TR/xslt#conflict
but I cannot find a way to solve this problem :(
I had tried to use priority in xsl:template, but it didn't help :(
Thanks a lot.

DrClap
here are xml and xsl.
That's not a real xml and xsl, but they might describe the idea and problem. I hope I miss nothing.
P.S. I cannot control xml, that's why I cannot use: <xsl:text> in xml.
Thank you!
xml:
<?xml version="1.0" encoding="UTF-8"?>
<root>
<title>Page title</title>
<page>
Location: <red>http://host</red>
</page>
</root>
xsl:
<?xml version='1.0' encoding='ISO-8859-1'?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:fox="http://xml.apache.org/fop/extensions"
exclude-result-prefixes="fo">
<xsl:template match="root">
<html>
<head>
<title>
<xsl:apply-templates select="title"/>
</title>
</head>
<body>
<xsl:apply-templates select="page"/>
</body>
</html>
</xsl:template>
<xsl:template match="page">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="title">
[Test]: <xsl:apply-templates/>
</xsl:template>
<xsl:template match="red">
<xsl:element name="span"><xsl:attribute name="style">color:red</xsl:attribute><xsl:apply-templates/></xsl:element>
</xsl:template>
<xsl:template match="text()">
<xsl:value-of disable-output-escaping="yes" select="."/>
</xsl:template>
</xsl:stylesheet>

Similar Messages

  • I need help with the processes running a media server.

    Hi there!   I need some help with the following log please.  The processes listed I am assuming are the current processes being used from my MacBook Pro to the media server?  Is that correct?  Are these common processes?
    Incident Identifier: EC931B64-E141-4C64-B428-427DF014C7E8
    CrashReporter Key:   b16be41bf16206d8f231e7e71676ab2a9c4dd25e
    Hardware Model:      iPhone4,1
    OS Version:          iPhone OS 5.0.1 (9A405)
    Kernel Version:      Darwin Kernel Version 11.0.0: Tue Nov  1 20:34:16 PDT 2011; root:xnu-1878.4.46~1/RELEASE_ARM_S5L8940X
    Date:                2012-08-24 16:06:18 -0400
    Time since snapshot: 152 ms
    Free pages:        1195
    Wired pages:       88383
    Purgeable pages:   0
    Largest process:   mediaserverd
    Processes
             Name                 UUID                    Count resident pages
                 atc <2271ed33ec773eeb9f381bf1baac9dee>     390
           securityd <e31a714c227a3d1c98ef8aacd44d91ee>     243
             assetsd <281396d3e7d831fbb6a5374157663dbc>    1370
          MobileMail <7064f2baf3f23db987bc8ec99855fe53>    1438 (jettisoned)
            mstreamd <cbe9881735043a389e7cdad3b5bcf5ce>    1099 (jettisoned)
              Camera <88291709452932ac9cbd0f1c06902214>    3105 (active)
         dataaccessd <b4f61f117ee635c48329af8572733d30>    1760
         MobilePhone <fe38c6944a053c9187b41ee50aa151b0>    5549
            networkd <6ee7a78e56073f6e8db4c2cc3265fdb4>     170
          aosnotifyd <58089d732ab43bbea0aec4a6f812f446>     320
            BTServer <e03baab8e0103188979ce54b87591065>     261
          aggregated <68a25a1690cb372096543a46abed14d7>     337
                apsd <e4b6e6e4f31e36f79815747ecbf52907>     291
       fairplayd.N94 <2c0105776e393b39ba95edffaf3bdd17>     294
           fseventsd <78af02202422321885dfc85c24534b0e>     170
                iapd <3ee7f82879033b4fb93b9cf1f4ecae29>     366
             imagent <8e2042f2ec9e3af9ba400f031f1bbfa7>     416
       mDNSResponder <b75f43f012ad3d9ea172d37491994e22>     265
        mediaremoted <b9fa7d1381013c2fa90ea134ff905f59>     258
        mediaserverd <478e5e8345c83be5ba1868906813bb75>    6774
                 ubd <7eaf0b0ca5b83afabecb0dfaa38c7a19>     389
               wifid <e176ab123beb3000bdb89e020612c1d6>     284
           locationd <91c84ab19dd03e4ab1b4cc30178ab1c0>     831
              powerd <25ddef6b52e4385b819e777dd2eeed3c>     167
           lockdownd <a68aa1526ef13a9bb4426bb71ffc1e3c>     250
          CommCenter <51922c9a50e73fe3badccaa4b1b1123b>     781
             syslogd <dd3766bcb1213e91b66283635db09773>     107
         SpringBoard <7506c20d86da3f1dbe9bf38f8bda253d>    5673 (active)
             configd <3430c0025ed13f56800a329b7254d2ae>     418
             notifyd <3793fabace3a385687b3c29c1fa1fcac>     252
      UserEventAgent <6e1cabc1ec6d372c90a6bdeaa7b258fa>     433
             launchd <cc35dd7a872334319ed028e6bbeae081>     133
    **End**
    Thanks a bunch!!!

    COULD NOT OF BEEN BOUGHT BRANDNEW IN 2011** apologies

  • New to After Effects - need help with text manipulation!

    Hi all, I'm new to AE and this forum and I'm looking for some advice. I've been asked by the boss at work to create a short video clip, around 10-15 seconds, where text is displayed on the screen (3 words), after the few seconds, I want a 'forging' noise to happen and the final word in the text to be changed to another word and have a metallic effect applied, similar to the effect in this tutorial:
    Create Hot Metallic Text in After Effects - After Effects - macProVideo.com Hub
    Will this be difficult to do and do you guys think a complete beginner like myself can do it? I've got a lot of experience with the likes of PS, so I'm not too shy with Adobe software.
    Thanks,
    John

    johnster1991 wrote:
    Thanks for the advice, I appreciate it. So will it be difficult to have one word of text come onto the screen and overlay on top of the existing text, as if it's crashing over it? Any ideas on the steps I would use to do this? Thanks
    As you begin your career of using AE, you will change your vocabulary. Overlay will be replaced with spatial references like in front or behind.
    Designing text with surface styles like chrome or metal is not difficult. You can even import them from Photoshop if you have some PS chops or friends who can do it quickly.
    TEXT ONE can be easily replaced with TEXT TWO in any of dozens of different ways but to drop TWO in front of ONE is easy, you're just setting position keyframes. The finesse of animation, though, lies in the illusion of motion, exaggeration, overshooting and recoil. Your TWO could fall and squish and rebound and bounce or it could raise a dust cloud as it hits or it could make the camera wiggle. These are the things that separate simple key framing from animation and motion graphics.

  • Need help with batch processing picture packages

    Hi, I am having trouble batch processing picture packages is CS2.  (Windows).
    I have hundreds of images that need to be processed into picture packages and would love to find a speedier way to do this.
    I know how to create an action.  I know how to batch process from this action.  I also know how to create picture packages, but I cannot get the final result I am after - please read on....
    I have seperated all the images into their seperate folders for each style of picture package required.
    I can create an action for the picture package required and then do a batch process on the particular folder, but this leaves all the picture packages open on the desktop - as when you chose the close and save in the batch process - this only closes and saves the original image - the picture package has been created as a new document and is on the desktop still open - named Picture Package 1, Picture Package 2 - etc etc.
    I hope I am making some kind of sense here... (??!!)
    What I would like to happen is that the picture package will be saved over the original file (or to a new folder) with the original file name of the original image or maybe even with an adjustment to file name (e.g - orignal file name sc1234.jpeg - new file name sc1234packA.jpeg)
    So is this possible to do??  I'm thinking there must be a way.... i'm sure there are many group photographers out there who come across this everyday??
    Otherwise I have to save each picture package manually to original file name (via searching though files to match the original image to the picture package....) Very time consuming.
    Thanks for your help (in anticipation)...
    Jodie

    hmm - thanks for that - sounds like I will have to try and find some info and assistance regarding the scripting - it may be something I need to look into at a later time in the future....
    At the moment though I will have to plod along with this method I guess!
    Thanks for your assistance...
    Jodie

  • Beginner - Need Help with Text

    I can't seem to get text in a table cell to do what I want.
    For instance, I can't use the 'tab' button as I would do in
    Microsoft Word - is this something that is not possible in
    Dreamweaver (8)? To compensate for that, I tried to just use the
    space bar to seperate things but that doesn't work either - seems
    like I can only insert one space and that's all. I've tried the
    'align' buttons, but that moves ALL of the text rather than the
    desired line.
    EX) Currently: Name School Dates
    EX) Desired: Name School Dates
    Can somone please help me?

    Wow - okay. You're first mistake is thinking that Dreamweaver
    will act as
    Microsoft Word. Period.
    That's never the case, nor will it ever be the case. You need
    to close down
    Dreamweaver, and start by reading some basic tutorials on
    HTML and CSS. A
    good place to start -
    http://w3schools.com
    Also, I'd reccomend picking up some books on the subjects as
    well. For CSS
    I'd reccomend anything by Eric Meyer. To answer your
    question, though it
    will seem useless as you probably aren't sure what to do with
    the answer is
    to give your paragraph tags a text-indent definition of a few
    pixels inside
    your CSS.
    HTH, take care,
    Shane H
    [email protected]
    http://www.avenuedesigners.com
    =============================================
    Back for 2007, close-up magic:
    http://deceptivemagic.com
    Web dev articles, photography, and more:
    http://sourtea.com
    =============================================
    Proud GAWDS member
    http://www.gawds.org/showmember.php?memberid=1495
    Delivering accessible websites to all ...
    =============================================
    "mpax91" <[email protected]> wrote in
    message
    news:eufcj9$lld$[email protected]..
    >I can't seem to get text in a table cell to do what I
    want. For instance,
    >I
    > can't use the 'tab' button as I would do in Microsoft
    Word - is this
    > something
    > that is not possible in Dreamweaver (8)? To compensate
    for that, I tried
    > to
    > just use the space bar to seperate things but that
    doesn't work either -
    > seems
    > like I can only insert one space and that's all. I've
    tried the 'align'
    > buttons, but that moves ALL of the text rather than the
    desired line.
    >
    > Can somone please help me?
    >

  • Need help with construction process. . .

    Hi All
    I put a post on here about 2 months ago regarding exporting
    a PSD, and using the HTML that Photoshop generated. All the kind
    people on here quickly pointed me into the direction of learning
    coding rather than letting something produce it for me. So i did. .
    But i have a new problem - there are lots of tutorials out
    there for how to code HTML and CSS, but none that show you the
    correct process for producing sites.
    The current site i am on has a background that i made in PS
    and just exported as a image. It has a content section (blank black
    box) and the background (grunge grey stuff) all in one image. Now
    when i take this into DW, i add it as the background for the body
    of the site. I center it, and no-repeat the image. I test it and
    all is good.
    SO i start to add my navigation, which is just text links,
    not buttons. I add it on top of the area where i want it to be -
    BUT - when i resize the browser, the background stays centered but
    the links stay where they are.
    What i want is for the links to move with the changing size
    of the browser - HOW?
    Also, is this the correct 'working ethic' for a site? To have
    the content areas as part of the background and just position parts
    on top of the site so that they look like they are in the correct
    areas?
    I guess basically, i have a background image that is centered
    with no repeat. I want the site to be centered, AS WELL as the
    links. I would like them to all stay in relation to each other when
    a browser changes size. Where am i going wrong? In the HTML or CSS?
    Sorry if i have explained it in a bad way, i'm just trying so
    hard to learn the right way of doing things.
    Many Thanks In Advance
    JP

    Did you follow this link (and subsequent ones)?
    Taking a Fireworks comp to a CSS-based layout in Dreamweaver
    http://www.adobe.com/devnet/fireworks/articles/web_standards_layouts_pt1.html
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "thewakeplace.com" <[email protected]> wrote
    in message
    news:[email protected]...
    > Hi All
    >
    > I put a post on here about 2 months ago regarding
    exporting a PSD, and
    > using
    > the HTML that Photoshop generated. All the kind people
    on here quickly
    > pointed
    > me into the direction of learning coding rather than
    letting something
    > produce
    > it for me. So i did. . . .
    > But i have a new problem - there are lots of tutorials
    out there for how
    > to
    > code HTML and CSS, but none that show you the correct
    process for
    > producing
    > sites.
    >
    > The current site i am on has a background that i made in
    PS and just
    > exported
    > as a image. It has a content section (blank black box)
    and the background
    > (grunge grey stuff) all in one image. Now when i take
    this into DW, i add
    > it as
    > the background for the body of the site. I center it,
    and no-repeat the
    > image.
    > I test it and all is good.
    > SO i start to add my navigation, which is just text
    links, not buttons. I
    > add
    > it on top of the area where i want it to be - BUT - when
    i resize the
    > browser,
    > the background stays centered but the links stay where
    they are.
    > What i want is for the links to move with the changing
    size of the
    > browser -
    > HOW?
    >
    > Also, is this the correct 'working ethic' for a site? To
    have the content
    > areas as part of the background and just position parts
    on top of the site
    > so
    > that they look like they are in the correct areas?
    >
    > I guess basically, i have a background image that is
    centered with no
    > repeat.
    > I want the site to be centered, AS WELL as the links. I
    would like them to
    > all
    > stay in relation to each other when a browser changes
    size. Where am i
    > going
    > wrong? In the HTML or CSS?
    >
    > Sorry if i have explained it in a bad way, i'm just
    trying so hard to
    > learn
    > the right way of doing things.
    >
    > Many Thanks In Advance
    >
    > JP
    >

  • Need help with Post Process Event

    Hi all:
    I need to implement user login generation thru a post process event. I read lots of posts about this and followed the steps described. So this is what I did:
    - Created a java class that implements PostProcessHandler and implemented the execute method. I added in both execute methods (EventResult and BulkEventResult) a statement to log message to a tmp file.
    - Created the plugin.xml
    - create a zip file with class and plugin.xml.
    - Put zip file in plugins directory.
    - Registered the plugin.
    - Created the EventHandler.xml file to define the postprocess event on User Entity CREATE operation.
    - Imported the Event metadata.
    Everything went well. Until I ran a reconciliation, and nothing is being called.
    Am I missing any steps?? I read that people successfully implemented this. Is there something I should do for lib folder or classpath...
    I cannot figure this out..
    Thank you

    I think this is what I am missing.
    I created my EventHandlers.xml in a temp folder with a space name:
    The temp folder: /tmp
    and under tmp folder I have the following:
    /metadata/user/custom/CustomPostProcessEvent/EventHandlers.xml
    I am going to change the EventHandlers.xml location:
    keep /tmp directory but
    Remove the metadata tree
    and create /db/EventHandlers.xml
    I will let you know...
    Thanks again for your feedback. It is very appreciated..

  • Migrating from Red Brick database to Oracle 11g -Need help with the process

    Hi,
    I am on this new project were we are migrating from IBM Red Brick Data Warehouse to Oracle 11g. We have a very tight time line. I was hoping if any of you have done this migration before and are willing to share their experience. Any help would be greatly appreciated. I would like to get a brief idea about how to go about the process.
    Thanks in advance!

    Hello,
    that is a matter of supply and demand, and as the demand to migrate Red Brick to Oracle RDBMS is very low, Oracle never included Red Brick into the migration tools.
    If you search in the forums for Red Brick, you will not find much more than this one from the year 2006:
    Re: Migration from rebrick 6.0.3 to Oracle 9i
    Options:
    In general we have the following options:
    1. Oracle Migration Workbench
    2. SQL Developer Migration Workbench
    3. Generic Connectivity
    4. SQL*Loader
    Regarding your dedicated foreign database, option 1 and 2 fail as those tools
    do not work against Red Brick DB.
    Generic Connectivity would be an option if you have an ODBC driver to this database.
    In this dedicated case, you can then set up generic connectivity (= a database
    link to the foreign database using odbc).
    The Oracle database we support generic connectivity can reside on Windows,
    Solaris, HP-UX, AIX and Linux.
    If the Oracle database is on any other platform, you might migrate to a
    database on this platform, then export the migrated DB and then load it into
    the real target db.
    Generic Connectivity will allow you to perform a SQL*Plus copy of tables; this
    means you can create tables like they are defined in your source and transfer
    the data to the Oracle db; but no procedures, triggers or anything coded can be
    transferred.
    Last option (4) is that you generate "flat files". This means ASCII-SPOOL
    Files and then import them using SQL*Loader. As far as I know there is no
    existing SQL*Loader sample file for Red Brick databases exports and you need to
    write them on your own.
    I recommend to read also the following note in My Oracle Support:
    Note 233876.1: Options for Connecting to Foreign Data Stores and Non-Oracle Databases
    Best regards
    Wolfgang

  • I have a problem with linking media. I need help with the process

    I can't seem to locate the media off my external or dropbox. I have the project file opened it's just offline and won't let me go back to locate it.

    You need to ask in the forum for the program you are using
    This forum is about the Cloud as a delivery process, not about using individual programs
    If you start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • Need help with BW Process chain issue

    Hi Gurus,
    I had made a copy of the existing process chain so that I can work on the changes. Its a metachain and I tried to copy a sub chain.
    But at a later point of time, I have realized that the process chain had got into a  nested loop in the meta chain, for the sub chain, I had copied. How do I rectify it?
    Kindly suggest

    hi,
    use the bottom up approach.
    Looking at the attached file it has many PCs.
    Just note down all list of all PC and then do the copy of individual PCs, later you can copy the complete meta chain.
    If you want give one more chance and try to copy meta chain again.
    Thank-You.
    Regards,
    VB

  • Need help with parallel process in background; not able to call FM in bgnd

    Hello,
      I am trying since 2 days to solve the issue of parallel process in background without using FPP.
    For which I want to call function module of class method in new task but to be processed by background process and not dialog.
    I searched so many websites but everyone has suggesteed to 'call function in background task' . But the fact is the processing of function happens by dailog process even in this case.
    I want to loop at table and call FM or class method inside each loop.
    Kindly suggest me how can I call function or class method in new task in everycall and prcoess it in background.
    thanks

    Balaji,
    Is the name of the button between single or double quotes?
    Regards,
    Dan
    Blog: http://DanielMcGhan.us/
    Work: http://SkillBuilders.com/

  • Need help with deauthorization process for  Adobe Digital Editions

    How do I get the Adobe Digital Editions or rather the Adobe Support to deauthorize all computers associated with the ebook I have been trying to open?

    http://forums.adobe.com/community/adobe_digital_editions

  • Need help with a simple process with FTP Adapter and File Adapter

    I am trying out a simple BPEL process that gets a file in opaque mode from a FTP server using a FTP adapter and writes it to the local file system using a File Adapter. However, the file written is always empty (zero bytes). I then tried out the FTPDebatching sample using the same FTP server JNDI name and this work fine surprisingly. I also verified by looking at the FTP server logs that my process actually does hit the FTP server and seems to list the files based on the filtering condition - but it does not issue any GET or RETR commands to actually get the files. I am suspecting that the problem could be in the Receive, Assign or Invoke activities, but I am not able identify what it is.
    I can provide additional info such as the contents of my bpel and wsdl files if needed.
    Would appreciate if someone can help me with this at the earliest.
    Thanks
    Jay

    persiandude wrote:
    Topic: Need help with if, else, and which statements and loops.
    How would I display 60 < temp. <= 85 in java
    System.out.println("60 < temp. <= 85 in java");
    another question is how do I ask a question like want to try again (y/n) after a output and asking that everytime I type in yes after a output and terminate when saying No.Sun's [basic Java tutorial|http://java.sun.com/docs/books/tutorial/]
    Sun's [New To Java Center|http://java.sun.com/learning/new2java/index.html].Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    [http://javaalmanac.com|http://javaalmanac.com]. A couple dozen code examples that supplement [The Java Developers Almanac|http://www.amazon.com/exec/obidos/tg/detail/-/0201752808?v=glance].
    jGuru. A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch. To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    Bruce Eckel's [Thinking in Java|http://mindview.net/Books/DownloadSites] (Available online.)
    Joshua Bloch's [Effective Java|http://www.amazon.com/Effective-Java-2nd-Joshua-Bloch/dp/0321356683/ref=pd_bbs_1?ie=UTF8&s=books&qid=1214349768&sr=8-1]
    Bert Bates and Kathy Sierra's [Head First Java|http://www.amazon.com/exec/obidos/tg/detail/-/0596004656?v=glance].
    James Gosling's [The Java Programming Language|http://www.bookpool.com/sm/0321349806].

  • I need help with my text tone and I have ring tone. no text tone for the 4s.

    I need help with my text tone. I have ring tone no text tone. I have a 4s.

        Hi Sarar2333!  Let's get your text tones working again!
    Here's a link with instructions how to enable and change your alert sounds for your text/notification settings on your iPhone 4S: http://vz.to/1stiF8a.  You can ensure text tones are enabled by selecting a tone in the "Text Tone" setting.  Let me know how that works out for you.  Thanks!
    AnthonyTa_VZW
    Follow us on Twitter @VZWSupport

  • I need help with my wifi text. I can't use them

    I need help with my iPhone 4. I can't text since. I get wifi in my house ?

    What is the make & model of the wireless router that you are trying to extend with the WN3000RP? Can any other wireless clients connect to the extended network, just not your iMac?

Maybe you are looking for