I know I can do this::
<xsl:if test="ms:Person/ms:Name/@ms:first">
<xsl:if test="ms:Person/ms:Name/@ms:last">
</xsl:if>
</xsl:if>
BUT I would like to do this::
<xsl:if test="ms:Person/ms:Name/@ms:first" or test="ms:Person/ms:Name/@ms:last">
Is there a way to user and/or operators
Currently it not looking like it can be done. I got the comments in the output, but the way the html comments work, if there is any comment at all being copied over, the --> will stop all previous <!--. Does anybody have a solution? Please help!
Greg
I guess I'm looking for an echo type command that would allow xsl:copy-of to run but comment out the output.
echo "<!--"
<xsl:copy-of select="$varRoot"></xsl:copy-of>
echo "-->"
How do you pull off the "echo" in XSL?
My desired result...
<!--
<ms:Resource attribute1="asdf" attibute2="qwerty"...
I am transforming an XML doc from Schema A to Schema B. These are two established standards, Schema A being newer. Schema A actually has more built in elements and can house more detailed information than Schema B, which is fine. THey try to describe the same thing. however, to not lose data...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.