Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: [xsl] Reading in non-XML file.

From: "Michael Kay" <mike@------------>
To:
Date: 12/1/2006 4:18:00 PM
You could try passing in the content of the file as a string parameter, or
you could write a URIResolver that reads the non-XML file and puts it in an
XML wrapper. Or you could just write an extension function.

Michael Kay 
http://www.saxonica.com/

> -----Original Message-----
> From: James Cummings [mailto:cummings.james@xxxxxxxxx] 
> Sent: 01 December 2006 15:34
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] Reading in non-XML file.
> 
> In XSLT1 is there a fairly straight-forward way of reading in 
> a non-XML file and then sending it as part of the output?
> 
> Say I have a file foo.txt containing:
> =====
> Foo
> foo
> blort
> =====
> and an XML file containing
> =====
> <a>
>   <b/>
> </a>
> =====
> 
> What I want to end up with is:
> 
> =====
> <a>
> <b-new>
> Foo
> foo
> blort
> <b-new>
> </a>
> =====
> 
> Basically, I think I'm asking for unparsed-text() for XSLT1?  
> Is there maybe an EXSLT extension or similar to do this?
> 
> thanks for any suggestions,
> -James
> 
> --
> James Cummings, Cummings dot James at GMail dot com


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent