Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: Multiple output types and embedded documentation

From: "Pawson, David" <DPawson@----------->
To:
Date: 7/3/2000 10:05:00 AM
Warren Hedley 


Presumably, using this format, you would swap out the namespace
of either out_1 or out_2 and replace it with the xsl namespace, to 
select the actual output wanted?

If I'm right, this would be a 'weave' solution.
For documentation you'd run a stylesheet to pull the doc:
elements?

>If people are interested, it might be worth trying to work out what
>functionality is required, and produce a set of readily available
>stylesheets to do that intermediate step.

Questions:

1. How do you 'disable' output from the undesired namespaces
    when not in use.
2. I don't understand the 'intermediate step' idea above.

Regards, DaveP



>We've had a bit of discussion recently on embedding documentation
>within XSLT stylesheets that can then be extracted easily. In
>addition to this, I have stylesheets which are largely identical
>in logical structure, but produce different output depending on the
>target format. Maintaining these has always been a pain. I'm now
>thinking about making the entire thing a two stage process - this
>is probably best explained with an example. Here's my documented,
>multiple target, NOT FUNCTIONING, stylesheet.
>
><xsl:stylesheet xmlns:xsl="logic commands"
>                xmlns:doc="doc format"
>                xmlns:out_1="output type 1 (latex)"
>                xmlns:out_2="output type 2 (html)">
>
><xsl:template match="/">
>  <doc:h1>Root Element</doc:h1>
>  <doc:p>My root element doesn't really do anything useful.</doc:p>
>
>  <xsl:for-each select="*">
>    <out_1:value-of select="concat('\alltt{', ., '}')" />
>    <out_2:element name="code">
>      <out_2:value-of select="." />
>    </out_2:element>
>  </xsl:for-each>
></xsl:template>
>
></xsl:stylesheet>
>
>To then extract either documentation, or working stylesheets that
>produce the output formats that I'm looking for, I apply more
>general stylesheets.
>
>* Does anyone like this idea?
>* Has anyone already developed a solution along these lines?
>* Does anyone have a better suggestion?
>
>If people are interested, it might be worth trying to work out what
>functionality is required, and produce a set of readily available
>stylesheets to do that intermediate step.


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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