XSL, XSLT frustration

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Badbetty

    #1

    XSL, XSLT frustration

    Hello Readers

    I need a solution stylesheet that will transform XML to XML. However I
    want the stylesheet to output a complete stylesheet tag too i.e. <?
    xsl:stylesheet version..... ? to the resultant XML document.


    Any ideas please? I hope Ihave explained it all well enough.


    Thank you
    BB
  • TOUDIdel

    #2
    Re: XSL, XSLT frustration


    Uzytkownik "Badbetty" <bch@genie.co.u knapisal w wiadomosci
    news:52337ace-7dcc-4250-845e-aa7ac9bea180@x4 1g2000hsb.googl egroups.com...
    I need a solution stylesheet that will transform XML to XML. However I
    want the stylesheet to output a complete stylesheet tag too i.e. <?
    xsl:stylesheet version..... ? to the resultant XML document.
    Any ideas please? I hope Ihave explained it all well enough.
    Thank you
    BB
    show us what you tried to do. what problem exactly you have?
    --
    td


    Comment

    • Ken Starks

      #3
      Re: XSL, XSLT frustration

      Badbetty wrote:
      Hello Readers
      >
      I need a solution stylesheet that will transform XML to XML. However I
      want the stylesheet to output a complete stylesheet tag too i.e. <?
      xsl:stylesheet version..... ? to the resultant XML document.
      >
      >
      Any ideas please? I hope Ihave explained it all well enough.
      >
      >
      Thank you
      BB
      I expect you want the <xsl:pi>...</xsl:pielement.

      Putting a stylesheet 'processing instruction' (not the same as an
      opening tag) into the XML is not something I would do myself. I
      prefer to allow for different outputs from the same source.

      Comment

      • Peter Flynn

        #4
        Re: XSL, XSLT frustration

        Ken Starks wrote:
        Badbetty wrote:
        >Hello Readers
        >>
        >I need a solution stylesheet that will transform XML to XML. However I
        >want the stylesheet to output a complete stylesheet tag too i.e. <?
        >xsl:styleshe et version..... ? to the resultant XML document.
        >>
        >>
        >Any ideas please? I hope Ihave explained it all well enough.
        >>
        >>
        >Thank you
        >BB
        I expect you want the <xsl:pi>...</xsl:pielement.
        >
        Putting a stylesheet 'processing instruction' (not the same as an
        opening tag) into the XML is not something I would do myself. I
        prefer to allow for different outputs from the same source.
        If you are controlling the document generation, then you will continue
        to allow for this. Adding a stylesheet PI is simply a way to recommend
        to the downstream user "if you want to see this the way I suggest, use
        this stylesheet". You may in many cases be dealing with users who would
        have no clue what to do with an XML file and may just blindly open it in
        a browser, expecting it to do something meaningful...

        ///Peter
        --
        XML FAQ: http://xml.silmaril.ie/

        Comment

        • Ken Starks

          #5
          Re: XSL, XSLT frustration

          Peter Flynn wrote:
          Ken Starks wrote:
          >Badbetty wrote:
          >>Hello Readers
          >>>
          >>I need a solution stylesheet that will transform XML to XML. However I
          >>want the stylesheet to output a complete stylesheet tag too i.e. <?
          >>xsl:styleshee t version..... ? to the resultant XML document.
          >>>
          >>>
          >>Any ideas please? I hope Ihave explained it all well enough.
          >>>
          >>>
          >>Thank you
          >>BB
          >I expect you want the <xsl:pi>...</xsl:pielement.
          >>
          >Putting a stylesheet 'processing instruction' (not the same as an
          >opening tag) into the XML is not something I would do myself. I
          >prefer to allow for different outputs from the same source.
          >
          If you are controlling the document generation, then you will continue
          to allow for this. Adding a stylesheet PI is simply a way to recommend
          to the downstream user "if you want to see this the way I suggest, use
          this stylesheet". You may in many cases be dealing with users who would
          have no clue what to do with an XML file and may just blindly open it in
          a browser, expecting it to do something meaningful...
          >
          ///Peter
          Thanks Peter. Yes, I thought of this about five minutes after sending
          my response. I realised that I include a stylesheet PI quite regularly
          in work for a charitable organisation sometimes work for.

          They do indeed use the filing system not a server, and just click on it.

          Comment

          Working...