 |
 |
 |
Dmitry Nogin wrote:
> Sorry, could you please be so kind to tell me more about "serialize XML into
> text yourself in XSLT". What does it mean?
>
> I've got something like this:
>
> - cut here --------------------------------------------
> <edit id="Name" width="100">
> <toolTip>Displays the <B>name</B> of <I>this</I> object.</toolTip>
> </edit>
> - cut here --------------------------------------------
>
> And I'd like to produce something like this:
>
> - cut here --------------------------------------------
> m_edtName.Create(100, "Displays the <B>name</B> of <I>this</I> object.");
> - cut here --------------------------------------------
>
Like this:
<xsl:output method="text" />
<xsl:template match="edit">
<xsl:text>m_edt</xsl:text>
<xsl:value-of select="@id" />
<xsl:text>.Create(</xsl:text>
<xsl:value-of select="@width" />
<xsl:text>, "</xsl:text>
<xsl:apply-templates />
<xsl:text>");</xsl:text>
</xsl:template>
<xsl:template match="B | I">
<xsl:text><</xsl:text>
<xsl:value-of select="local-name()" />
<xsl:text>></xsl:text>
<xsl:apply-templates />
<xsl:text></</xsl:text>
<xsl:value-of select="local-name()" />
<xsl:text>></xsl:text>
</xsl:template>
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
|
 | 

|  |
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.
|  |
| |
 |
 |
 |