 |
 |
 |
Martin, thank you very much for your attention.
I'd like to handle properly here any standard HTML content (all the tags
with attributes). Is it possible to easily reproduce the "normal" behaviour
of <xsl:copy-of> element here?
wbr,
dmitry
"Martin Honnen" <mahotrash@y...> wrote in message
news:%23yLx5MkTFHA.3056@T......
> > 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>
|
 | 

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