Subject: Re: [xsl] Transforming XML copied via XSLT From: "Imsieke, Gerrit, le-tex" <gerrit.imsieke@xxxxxxxxx> Date: Wed, 27 Jan 2010 22:31:42 +0100 |
---test.xsl--------- <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:html="http://www.w3.org/1999/xhtml" version="2.0" exclude-result-prefixes="html">
<xsl:template name="main"> <outer> <xsl:apply-templates select="document('test.html')" /> </outer> </xsl:template>
<xsl:template match="html:html"> <xsl:apply-templates select="html:body/*" /> </xsl:template>
<xsl:template match="html:p"> <inner> <xsl:apply-templates /> </inner> </xsl:template>
</xsl:stylesheet> ---/test.xsl---------
you will get this result -------------- <?xml version="1.0" encoding="UTF-8"?> <outer> <inner>included</inner> </outer> --------------
On Wed, 2010-01-27 at 14:21 -0500, List Owner wrote:...It would be far easier to answer your question if you supplied examples of:
1. your source XML 2. the target of the transform (in this case, the HTML you want) 3. the code you have, so we can see why you aren't getting the results you want.
You seem to have supplied source XML, but we don't know from your message exactly what you want to transform it into.
I suggest re-posting your question with some additional information.
-- Tommie
...Essentially, I have this: <menu> <sandwiches> <html:h1>Sandwiches</html:h1> <xsl:copy-of style="document('http://mysite.com/food')"> </sandwiches> </menu>
Please bear with my experimenting. The copied XML data needs to be transformed into links and form<input> but I don't know if that can be done here. Can someone point me in the right direction, tips, hints and all that?
This is a different question needing different answers. You must think my last thread applies here but it does not.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Transforming XML copied v, List Owner | Thread | Re: [xsl] Transforming XML copied v, Rob Belics |
Re: [xsl] Transforming XML copied v, List Owner | Date | Re: [xsl] Transforming XML copied v, Rob Belics |
Month |