Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder
    Join Date
    Sep 2002
    Posts
    143
    Thanks
    0
    Thanked 0 Times in 0 Posts

    create new xml string with xsl

    is there any way to create new xml (string)
    from existing xml string with xsl ?

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    well yeah, trivially:

    Code:
    <xsl:text><new_tag/></xsl:text>
    or

    Code:
    <xsl:text>&lt;</xsl:text><xsl:value-of select="tag_name"/><xsl:text>&gt;</xsl:text>

  • #3
    Regular Coder
    Join Date
    Sep 2002
    Posts
    143
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hi
    can i save this string to file with xsl?

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I don't think so - AFAIK you can't do file-system stuff with it. XSL is designed to generate visual or other output, rather than to create or write to files in the sense you mean.

    What's your host language? ASP and PHP could both accomplish that task.

    btw - in the previous example I posted, I don't think the entities are actually necessary. You can use normal < > inside <xsl:text> just as you would if generating HTML
    Last edited by brothercake; 12-30-2002 at 12:07 AM.

  • #5
    Regular Coder
    Join Date
    Sep 2002
    Posts
    143
    Thanks
    0
    Thanked 0 Times in 0 Posts
    ok i get it
    but i have one more question about outputing vaild xml struct
    if i format with xsl one xml to construct new xml how can i make it
    display in IE 5.5+ like it display normal xml file
    this : tree view look ...?
    and not just blank page .
    thanks

  • #6
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    someone else asked that in this thread


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •