XSLT question: getting URL of source document?

Discussion in 'XML' started by Marc, Jul 8, 2003.

  1. Marc

    Marc Guest

    Hi,

    I'm doing an XSLT transformation and I'd like to have the output file
    contain a header like, "Automatically formatted from input
    file://xyz.xml."

    Is there any easy way to do this? I am imagining something like:

    <xsl:value of select="url()"/>

    But I don't see anything like this existing.

    Thanks, Marc
     
    Marc, Jul 8, 2003
    #1
    1. Advertising

  2. no, you have to pass the filename as a paramter to the XSLT then output the
    value of the parameter

    Colin


    "Marc" <> wrote in message
    news:...
    > Hi,
    >
    > I'm doing an XSLT transformation and I'd like to have the output file
    > contain a header like, "Automatically formatted from input
    > file://xyz.xml."
    >
    > Is there any easy way to do this? I am imagining something like:
    >
    > <xsl:value of select="url()"/>
    >
    > But I don't see anything like this existing.
    >
    > Thanks, Marc
     
    Colin Mackenzie, Jul 9, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jon paugh
    Replies:
    1
    Views:
    944
  2. Mads Orbesen Troest
    Replies:
    2
    Views:
    831
    Mads Orbesen Troest
    Apr 20, 2004
  3. Replies:
    4
    Views:
    713
  4. Replies:
    18
    Views:
    2,809
    Joseph Kesselman
    Oct 4, 2006
  5. Greg Collins [Microsoft MVP]

    XSLT document() and URL Rewriting via custom 404 error

    Greg Collins [Microsoft MVP], Mar 21, 2007, in forum: ASP .Net
    Replies:
    1
    Views:
    379
    Cowboy \(Gregory A. Beamer\)
    Mar 21, 2007
Loading...

Share This Page