Skip to content

Commit

Permalink
CRLF forcing
Browse files Browse the repository at this point in the history
  • Loading branch information
kubycsolutions committed Mar 24, 2024
1 parent 77aa724 commit 5d9e511
Show file tree
Hide file tree
Showing 14 changed files with 1,100 additions and 1,100 deletions.
18 changes: 9 additions & 9 deletions stylebook/style/loader.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0"?>

<!-- CVS $Revision: 1.1 $ $Date: 1999/12/01 14:26:14 $ -->

<loader>
<processor name="xslt">
<parameter name="stylesheet" value="sbk:/style/stylesheets/book2project.xsl"/>
</processor>
</loader>
<?xml version="1.0"?>

<!-- CVS $Revision: 1.1 $ $Date: 1999/12/01 14:26:14 $ -->

<loader>
<processor name="xslt">
<parameter name="stylesheet" value="sbk:/style/stylesheets/book2project.xsl"/>
</processor>
</loader>
42 changes: 21 additions & 21 deletions stylebook/style/resources/script.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
rolloverImagesOn=new Array();
rolloverImagesOff=new Array();

function rolloverOn(name) {
if(rolloverImagesOn[name]){
document.images[name].src=rolloverImagesOn[name].src;
}
}

function rolloverOff(name) {
if(rolloverImagesOff[name]){
document.images[name].src=rolloverImagesOff[name].src;
}
}

function rolloverLoad(name,on,off) {
rolloverImagesOn[name]=new Image();
rolloverImagesOn[name].src=on;
rolloverImagesOff[name]=new Image();
rolloverImagesOff[name].src=off;
}
rolloverImagesOn=new Array();
rolloverImagesOff=new Array();

function rolloverOn(name) {
if(rolloverImagesOn[name]){
document.images[name].src=rolloverImagesOn[name].src;
}
}

function rolloverOff(name) {
if(rolloverImagesOff[name]){
document.images[name].src=rolloverImagesOff[name].src;
}
}

function rolloverLoad(name,on,off) {
rolloverImagesOn[name]=new Image();
rolloverImagesOn[name].src=on;
rolloverImagesOff[name]=new Image();
rolloverImagesOff[name].src=off;
}
56 changes: 28 additions & 28 deletions stylebook/style/stylesheets/any2header.xsl
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
<?xml version="1.0"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<xsl:param name="label"/>

<xsl:template match="/">
<image width="456" height="35" bgcolor="0086b2">
<xsl:apply-templates/>
</image>
</xsl:template>

<xsl:template match="s1|faqs|changes">
<xsl:variable name="title">
<xsl:if test="string-length(@title)=0">
<xsl:value-of select="$label"/>
</xsl:if>
<xsl:if test="string-length(@title)>0">
<xsl:value-of select="@title"/>
</xsl:if>
</xsl:variable>

<text font="Arial" size="29" x="454" y="8" halign="right" valign="top" color="004080"
text="{$title}"/>
<text font="Arial" size="29" x="452" y="6" halign="right" valign="top" color="ffffff"
text="{$title}"/>
</xsl:template>

<?xml version="1.0"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<xsl:param name="label"/>

<xsl:template match="/">
<image width="456" height="35" bgcolor="0086b2">
<xsl:apply-templates/>
</image>
</xsl:template>

<xsl:template match="s1|faqs|changes">
<xsl:variable name="title">
<xsl:if test="string-length(@title)=0">
<xsl:value-of select="$label"/>
</xsl:if>
<xsl:if test="string-length(@title)>0">
<xsl:value-of select="@title"/>
</xsl:if>
</xsl:variable>

<text font="Arial" size="29" x="454" y="8" halign="right" valign="top" color="004080"
text="{$title}"/>
<text font="Arial" size="29" x="452" y="6" halign="right" valign="top" color="ffffff"
text="{$title}"/>
</xsl:template>

</xsl:stylesheet>
40 changes: 20 additions & 20 deletions stylebook/style/stylesheets/any2project.xsl
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
<?xml version="1.0"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<xsl:param name="label"/>

<xsl:template match="/">
<project>
<xsl:apply-templates/>
</project>
</xsl:template>

<xsl:template match="img">
<resource source="{@src}" target="images/{@src}"/>
</xsl:template>

<xsl:template match="node()">
<xsl:apply-templates/>
</xsl:template>

<?xml version="1.0"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<xsl:param name="label"/>

<xsl:template match="/">
<project>
<xsl:apply-templates/>
</project>
</xsl:template>

<xsl:template match="img">
<resource source="{@src}" target="images/{@src}"/>
</xsl:template>

<xsl:template match="node()">
<xsl:apply-templates/>
</xsl:template>

</xsl:stylesheet>
66 changes: 33 additions & 33 deletions stylebook/style/stylesheets/book2group.xsl
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
<?xml version="1.0"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<xsl:param name="id"/>

<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>

<xsl:template match="book">
<group title="{group[attribute::id=$id]/@label}">
<xsl:apply-templates select="group[attribute::id=$id]/entry"/>
</group>
</xsl:template>

<xsl:template match="entry">
<entry id="{@id}" title="{document(concat('sbk:/sources/',@source))/faqs/@title}">
<xsl:apply-templates select="document(concat('sbk:/sources/',@source))/faqs/faq"/>
</entry>
</xsl:template>

<xsl:template match="faq">
<voice>
<xsl:if test="string-length(@title)=0">
<xsl:value-of select="q"/>
</xsl:if>
<xsl:if test="string-length(@title)>0">
<xsl:value-of select="@title"/>
</xsl:if>
</voice>
</xsl:template>

<?xml version="1.0"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<xsl:param name="id"/>

<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>

<xsl:template match="book">
<group title="{group[attribute::id=$id]/@label}">
<xsl:apply-templates select="group[attribute::id=$id]/entry"/>
</group>
</xsl:template>

<xsl:template match="entry">
<entry id="{@id}" title="{document(concat('sbk:/sources/',@source))/faqs/@title}">
<xsl:apply-templates select="document(concat('sbk:/sources/',@source))/faqs/faq"/>
</entry>
</xsl:template>

<xsl:template match="faq">
<voice>
<xsl:if test="string-length(@title)=0">
<xsl:value-of select="q"/>
</xsl:if>
<xsl:if test="string-length(@title)>0">
<xsl:value-of select="@title"/>
</xsl:if>
</voice>
</xsl:template>

</xsl:stylesheet>
Loading

0 comments on commit 5d9e511

Please sign in to comment.