xml data islands

  • I have an xsl file to format an xml file with data. In the xsl file I have some text that I would like write in french, english, spanish, etc. Can I solve this problem with an xml data islands? I know do it if the data island xml file have only one language.

    If the data island is like this:

    <texts>

    <text idm="0">

    <t1>hello</t1>

    <t2>bye</t2>

    </text>

    <text idm="1">

    <t1>alo</t1>

    <t2>aurrevoir</t2>

    </text>

    ...

    </texts>

    how can I do it?

  • This was removed by the editor as SPAM

  • I am not quite sure what you try to accomplish. Why do you need the data island to process xml file?. Just use xsl stylesheet to display content of the xml file.

    On the other hand if you want to include xml document as a part of the other xml document or dynamic xml place the reference to your data island (xml you want to include in the main document) in your xsl document.

    Exemple:

    <xsl:template match="PgBdy">

    <div id="DivPgBdy">

    <xsl:apply-templates select="List"/>

    </div>

    <xml id="myDataIsland" src="MyDataIsland.xml"/>

    </xsl:template>

  • Try the site http://www.topxml.com/. Your bound to get some idea!

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply