Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Allowing mis-matched tags (non-well-formed XML)

From: "Andy Dingley" <dingbat@----------.--->
To: NULL
Date: 4/3/2007 7:19:00 AM

On 3 Apr, 14:03, nadaha...@gmail.com wrote:

> Is there a simple workaround without
> duplicating the entire body contents across both condition bodies.

You need to keep your XSL source well-formed and valid.

Duplicate the <body> start tag

Use <xsl:attribute name="..." value="..." /> within your tests.

You might even use <xsl:attribute name="..." > before your tests and
then just return the values for these attributes from within the tests
(check the whitespace though). I assume that you#re generating HTML
here and your "attributes" are something like "class" or "title" where
you're using the same attribute each time, but with diffferent values.

Perhaps best of all though is to set up a variable simply and cleanly
beforehand, then use it in the start tag:

<body class="{$classNames}" >




transparent
Print
Mail
Like It
Disclaimer
.

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.

.
.

transparent

transparent