|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Autogenerated XSL and the html namespace
Hi,
When we make schemas, we add the default displaystyle
as a attribute to the element, like:
<ElementType name="chapterTitle" ExtOption:Formatting="display: font-family:
univers helvetica sans-serif; font-weight: bold; font-size: x-large; ">
<description>Chapter Title</description>
</ElementType>
Now, parsing out the displayinfo to a CSS file is quite easy, but
how do I put it into a XSL file?
I was thinking in terms of:
<xsl:template match="/">
<xsl:for-each select="//*">
<span class="{xsl:name-of-tag}"><xsl:value-of select="*" /></span>
</xsl:for-each>
</xsl:template>
Furthermore, when using the html: namespace I obviously
wan't to just use the html tag for that instance, but I
have problems with that also...
<xsl:template match="everything-in-html-namespace">
<xsl:for-each item>
<htmlTag><xsl:value-of select="*" /></htmlTag>
</xsl:for-each>
</xsl:template>
(I know syntax is wrong, but I tried to make it describing)
I am a total newbie on XSL, and the more I read the less I know :)
Hope someone can give me some hints on how to solve this.
Regards
Stefan
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








