User Profile

Collapse

Profile Sidebar

Collapse
coflo
coflo
Last Activity: Sep 4 '08, 03:48 PM
Joined: Aug 5 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • coflo
    replied to replaceing a href in RSS link with xsl regex
    in XML
    Two things that are apparant when using this code.
    1. It gives the error cannot 'xsl:param' cannot be a child of the 'xsl:template' element.

    2. My RSS feed does not look like the feed that you have created. The <description> is not written the way you have displayed it other wise this would have been an easy task. look at the actual RSS feed to see the example: http://www.kyte.tv/channels/rss.html?uri=ch annels/39174...
    See more | Go to post

    Leave a comment:


  • coflo
    replied to replaceing a href in RSS link with xsl regex
    in XML
    Ya i understand the idea, but that is why i posted here.........i have no idea how to select it.....it took me forever, with alot of help......to get the uri and turn it into a variable....i am seeing a more clear way of selecting the image but still can't get it to seem to work....
    See more | Go to post

    Leave a comment:


  • coflo
    replied to replaceing a href in RSS link with xsl regex
    in XML
    Interesting, that would make the most sense, sorry if I have been confusing - its because i wasn't quit sure of the correct way to go about this... by setting that xpath it doesn't seem to retrieve the image - i actually do not get anything an error or any data.

    Perhaps an actual example of how you would implement it in my template would help cause thus far it seems to be nothing. I tried google-ing to see if I could figure out how...
    See more | Go to post

    Leave a comment:


  • coflo
    replied to replaceing a href in RSS link with xsl regex
    in XML
    Ahhh sorry, IT SHOULD OUTPUT HTML as with the rest of my XSL.


    Also I am not trying to replace the href in <TITLE> but in <DESCRIPTION>

    to replace the href in the title with the variable i already have that working, although this is another great solution.

    Rather i am trying to replace the href in the <DESCRIPTION> with the same virable.

    It may be an easier approach...
    See more | Go to post

    Leave a comment:


  • coflo
    replied to pulling and using an uri from an rss encode tag
    in XML
    please take a look at the next step of this project on which I am getting hung up on here: http://bytes.com/forum/thread829025.html
    See more | Go to post

    Leave a comment:


  • coflo
    started a topic replaceing a href in RSS link with xsl regex
    in XML

    replaceing a href in RSS link with xsl regex

    Hello I would like to replace an a href link that is provided in the RSS below with my own link. The link that I am looking to replace is defined in the <description> tag within the RSS. Im guessing I need to use some sort of function in combination with regex.

    I am able to create a regex to find and replace the a href link very easily; however, using regex in combination with a find and replace in XSL i am extremly novice....
    See more | Go to post

  • Ahh!! I got it, took a bit of playing around but thank you so much for your help - here is my final result working!

    Code:
    <xsl:template match="item">
    
    
          
      <xsl:variable name="item_link" select="link"/>
      <xsl:variable name="item_enclosure" select="enclosure/@url"/>
      <xsl:variable name="item_title" select="description"/>
    ...
    See more | Go to post

    Leave a comment:


  • I seem to be getting an error: SAXParseExcepti on: Unterminated entity reference

    it is always pointing to the line that starts with
    Code:
    <xsl:variable name="afterURI" select="substring-after(//enclosure/@url/, '&uri=')"/>
    See more | Go to post

    Leave a comment:


  • coflo
    started a topic pulling and using an uri from an rss encode tag
    in XML

    pulling and using an uri from an rss encode tag

    I am relatively new to XSL transforms so I apologize if my language or verbage is incorrect.

    I am trying to invoke a JS function of a flash player which requires a URI. In order to do this I would like to take the RSS feed, the snippet below, and grab the uri from the <enclosure> tag. You will see that there is a &uri=channel s/39174/186941 inside of the url="" i would like to grab this piece and insert it into my...
    See more | Go to post
    Last edited by jkmyoung; Aug 6 '08, 07:17 PM. Reason: code tags
No activity results to display
Show More
Working...