19f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson/* 29f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * Licensed to the Apache Software Foundation (ASF) under one 39f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * or more contributor license agreements. See the NOTICE file 49f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * distributed with this work for additional information 59f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * regarding copyright ownership. The ASF licenses this file 69f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * to you under the Apache License, Version 2.0 (the "License"); 79f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * you may not use this file except in compliance with the License. 89f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * You may obtain a copy of the License at 99f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * 109f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * http://www.apache.org/licenses/LICENSE-2.0 119f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * 129f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * Unless required by applicable law or agreed to in writing, software 139f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * distributed under the License is distributed on an "AS IS" BASIS, 149f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 159f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * See the License for the specific language governing permissions and 169f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * limitations under the License. 179f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson */ 189f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson/* 199f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * $Id: ElemUse.java 476466 2006-11-18 08:22:31Z minchau $ 209f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson */ 219f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilsonpackage org.apache.xalan.templates; 229f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 239f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilsonimport java.util.Vector; 249f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 259f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilsonimport javax.xml.transform.TransformerException; 269f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 279f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilsonimport org.apache.xalan.res.XSLMessages; 289f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilsonimport org.apache.xalan.res.XSLTErrorResources; 299f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilsonimport org.apache.xalan.transformer.TransformerImpl; 309f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilsonimport org.apache.xml.utils.QName; 319f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 329f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson/** 339f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * Implement xsl:use. 349f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * This acts as a superclass for ElemCopy, ElemAttributeSet, 359f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * ElemElement, and ElemLiteralResult, on order to implement 369f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * shared behavior the use-attribute-sets attribute. 379f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * @see <a href="http://www.w3.org/TR/xslt#attribute-sets">attribute-sets in XSLT Specification</a> 389f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * @xsl.usage advanced 399f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson */ 409f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilsonpublic class ElemUse extends ElemTemplateElement 419f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson{ 429f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson static final long serialVersionUID = 5830057200289299736L; 439f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 449f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson /** 459f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * The value of the "use-attribute-sets" attribute. 469f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * @serial 479f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson */ 489f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson private QName m_attributeSetsNames[] = null; 499f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 509f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson /** 519f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * Set the "use-attribute-sets" attribute. 529f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * Attribute sets are used by specifying a use-attribute-sets 539f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * attribute on xsl:element, xsl:copy (see [7.5 Copying]) or 549f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * xsl:attribute-set elements. The value of the use-attribute-sets 559f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * attribute is a whitespace-separated list of names of attribute 569f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * sets. Each name is specified as a QName, which is expanded as 579f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * described in [2.4 Qualified Names]. 589f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * 599f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * @param v The value to set for the "use-attribute-sets" attribute. 609f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson */ 619f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson public void setUseAttributeSets(Vector v) 629f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson { 639f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 649f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson int n = v.size(); 659f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 669f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson m_attributeSetsNames = new QName[n]; 679f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 689f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson for (int i = 0; i < n; i++) 699f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson { 709f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson m_attributeSetsNames[i] = (QName) v.elementAt(i); 719f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson } 729f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson } 739f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 749f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson /** 759f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * Set the "use-attribute-sets" attribute. 769f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * Attribute sets are used by specifying a use-attribute-sets 779f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * attribute on xsl:element, xsl:copy (see [7.5 Copying]) or 789f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * xsl:attribute-set elements. The value of the use-attribute-sets 799f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * attribute is a whitespace-separated list of names of attribute 809f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * sets. Each name is specified as a QName, which is expanded as 819f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * described in [2.4 Qualified Names]. 829f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * 839f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * @param v The value to set for the "use-attribute-sets" attribute. 849f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson */ 859f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson public void setUseAttributeSets(QName[] v) 869f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson { 879f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson m_attributeSetsNames = v; 889f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson } 899f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 909f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson /** 919f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * Get the "use-attribute-sets" attribute. 929f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * Attribute sets are used by specifying a use-attribute-sets 939f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * attribute on xsl:element, xsl:copy (see [7.5 Copying]) or 949f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * xsl:attribute-set elements, or a xsl:use-attribute-sets attribute on 959f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * Literal Result Elements. 969f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * The value of the use-attribute-sets 979f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * attribute is a whitespace-separated list of names of attribute 989f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * sets. Each name is specified as a QName, which is expanded as 999f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * described in [2.4 Qualified Names]. 1009f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * 1019f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * @return The value of the "use-attribute-sets" attribute. 1029f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson */ 1039f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson public QName[] getUseAttributeSets() 1049f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson { 1059f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson return m_attributeSetsNames; 1069f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson } 1079f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 1089f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson /** 1099f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * Add the attributes from the named attribute sets to the attribute list. 1109f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * TODO: Error handling for: "It is an error if there are two attribute sets 1119f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * with the same expanded-name and with equal import precedence and that both 1129f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * contain the same attribute unless there is a definition of the attribute 1139f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * set with higher import precedence that also contains the attribute." 1149f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * 1159f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * @param transformer non-null reference to the the current transform-time state. 1169f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * @param stylesheet The owning root stylesheet 1179f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * 1189f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * @throws TransformerException 1199f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson */ 1209f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson public void applyAttrSets( 1219f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson TransformerImpl transformer, StylesheetRoot stylesheet) 1229f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson throws TransformerException 1239f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson { 1249f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson applyAttrSets(transformer, stylesheet, m_attributeSetsNames); 1259f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson } 1269f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 1279f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson /** 1289f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * Add the attributes from the named attribute sets to the attribute list. 1299f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * TODO: Error handling for: "It is an error if there are two attribute sets 1309f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * with the same expanded-name and with equal import precedence and that both 1319f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * contain the same attribute unless there is a definition of the attribute 1329f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * set with higher import precedence that also contains the attribute." 1339f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * 1349f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * @param transformer non-null reference to the the current transform-time state. 1359f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * @param stylesheet The owning root stylesheet 1369f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * @param attributeSetsNames List of attribute sets names to apply 1379f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * 1389f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * @throws TransformerException 1399f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson */ 1409f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson private void applyAttrSets( 1419f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson TransformerImpl transformer, StylesheetRoot stylesheet, QName attributeSetsNames[]) 1429f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson throws TransformerException 1439f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson { 1449f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 1459f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson if (null != attributeSetsNames) 1469f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson { 1479f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson int nNames = attributeSetsNames.length; 1489f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 1499f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson for (int i = 0; i < nNames; i++) 1509f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson { 1519f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson QName qname = attributeSetsNames[i]; 1529f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson java.util.List attrSets = stylesheet.getAttributeSetComposed(qname); 1539f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 1549f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson if (null != attrSets) 1559f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson { 1569f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson int nSets = attrSets.size(); 1579f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 1589f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson // Highest priority attribute set will be at the top, 1599f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson // so process it last. 1609f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson for (int k = nSets-1; k >= 0 ; k--) 1619f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson { 1629f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson ElemAttributeSet attrSet = 1639f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson (ElemAttributeSet) attrSets.get(k); 1649f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 1659f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson attrSet.execute(transformer); 1669f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson } 1679f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson } 1689f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson else 1699f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson { 1709f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson throw new TransformerException( 1719f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson XSLMessages.createMessage(XSLTErrorResources.ER_NO_ATTRIB_SET, 1729f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson new Object[] {qname}),this); 1739f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson } 1749f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson } 1759f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson } 1769f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson } 1779f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 1789f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson /** 1799f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * Copy attributes specified by use-attribute-sets to the result tree. 1809f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * Specifying a use-attribute-sets attribute is equivalent to adding 1819f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * xsl:attribute elements for each of the attributes in each of the 1829f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * named attribute sets to the beginning of the content of the element 1839f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * with the use-attribute-sets attribute, in the same order in which 1849f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * the names of the attribute sets are specified in the use-attribute-sets 1859f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * attribute. It is an error if use of use-attribute-sets attributes 1869f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * on xsl:attribute-set elements causes an attribute set to directly 1879f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * or indirectly use itself. 1889f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * 1899f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * @param transformer non-null reference to the the current transform-time state. 1909f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * 1919f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson * @throws TransformerException 1929f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson */ 1939f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson public void execute( 1949f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson TransformerImpl transformer) 1959f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson throws TransformerException 1969f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson { 1979f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 1989f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson if (null != m_attributeSetsNames) 1999f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson { 2009f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson applyAttrSets(transformer, getStylesheetRoot(), 2019f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson m_attributeSetsNames); 2029f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson } 2039f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson 2049f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson } 2059f8118474e9513f7a5b7d2a05e4a0fb15d1a6569Jesse Wilson} 206