Re: Tool to create XSLT templates




Francesc001 <francesc001@xxxxxxxxxxx> wrote in
<b74f9c0e-a46c-4d7e-9bcb-bae1ad485534@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>:
On 5 feb, 16:08, Martin Honnen <mahotr...@xxxxxxxx> wrote:
But XSLT transforms a tree, usually created by parsing
XML, to XML or HTML or plain text. I don't see how you
would apply templates to plain text. You would need to
write a parser first for your plain text format to emit
XML but then you would not need XSLT any longer.

I will create an XML document with a simple tree, like
this....

<MyXMLDoc>
<Parameter>1234</Parameter>
<Data>Here it is string to process</Data>
</MyXMLDoc>

I need a XSLT who take <Data> and split its fields to a
new XML file. I look for a tool for creating this XSLT.

The tool you're looking for is commonly called "brain" and
humans are typically supplied with one at birth. If you
have lost or misplaced yours, contact your vendor's
customer support centre for a replacement.

On a more serious note, XSLT is not designed for string
processing. This might be bearable with XSLT2, but still a
curious design choice.

--
When all you have is a transformation engine, everything
looks like a tree.
.



Relevant Pages

  • Re: Tool to create XSLT templates
    ... curious design choice. ... XSLT 2 and XPath F & O provide powerful text- ... XML, to XML or HTML or plain text. ...
    (comp.text.xml)
  • Re: Tool to create XSLT templates
    ... HTML or plain text. ... You would need to write a parser first for your plain text format ... I will create an XML document with a simple tree, ... I need a XSLT who take and split its fields to a new XML file. ...
    (comp.text.xml)
  • Re: Are Services an improvement?
    ... > Isn't SMF actually based on XML description files? ... And with the disadvantage that it looks like plain text but is not ... have a whack at setting up & configuring services in OS X where you have ...
    (comp.unix.solaris)
  • Re: Are Services an improvement?
    ... > Isn't SMF actually based on XML description files? ... And with the disadvantage that it looks like plain text but is not ... have a whack at setting up & configuring services in OS X where you have ...
    (comp.sys.sun.admin)
  • Re: XML-based object orientated pre-Assembler
    ... > graphical-representation tools to display a finnished ASM program, ... Graphs!!! ... XML, you say? ... yeah...that's those plain text files littered with ...
    (alt.lang.asm)