Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old August 12th, 2008, 02:15 PM
Badbetty
Guest
 
Posts: n/a
Default 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
  #2  
Old August 14th, 2008, 12:35 PM
TOUDIdel
Guest
 
Posts: n/a
Default Re: XSL, XSLT frustration


Uzytkownik "Badbetty" <bch@genie.co.uknapisal w wiadomosci
news:52337ace-7dcc-4250-845e-aa7ac9bea180@x41g2000hsb.googlegroups.com...
Quote:
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


  #3  
Old August 15th, 2008, 11:45 AM
Ken Starks
Guest
 
Posts: n/a
Default Re: XSL, XSLT frustration

Badbetty wrote:
Quote:
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.
  #4  
Old August 17th, 2008, 11:25 AM
Peter Flynn
Guest
 
Posts: n/a
Default Re: XSL, XSLT frustration

Ken Starks wrote:
Quote:
Badbetty wrote:
Quote:
>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.
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/
  #5  
Old August 17th, 2008, 10:55 PM
Ken Starks
Guest
 
Posts: n/a
Default Re: XSL, XSLT frustration

Peter Flynn wrote:
Quote:
Ken Starks wrote:
Quote:
>Badbetty wrote:
Quote:
>>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.
>
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.
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles